Removed bundles, fixed Cython
This commit is contained in:
+13
-1
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: %{pypi_name}
|
Name: %{pypi_name}
|
||||||
Version: %{pypi_version}
|
Version: %{pypi_version}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Deduplicated, encrypted, authenticated and compressed backups
|
Summary: Deduplicated, encrypted, authenticated and compressed backups
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@@ -15,6 +15,7 @@ Source0: https://files.pythonhosted.org/packages/source/%(c=%{pypi_name};
|
|||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python%{python3_version}dist(setuptools)
|
BuildRequires: python%{python3_version}dist(setuptools)
|
||||||
BuildRequires: python%{python3_version}dist(setuptools-scm) >= 1.7
|
BuildRequires: python%{python3_version}dist(setuptools-scm) >= 1.7
|
||||||
|
BuildRequires: python%{python3_version}dist(cython)
|
||||||
BuildRequires: python%{python3_version}dist(pkgconfig)
|
BuildRequires: python%{python3_version}dist(pkgconfig)
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
BuildRequires: libzstd-devel
|
BuildRequires: libzstd-devel
|
||||||
@@ -50,6 +51,13 @@ Documentation for borgbackup
|
|||||||
%autosetup -n %{pypi_name}-%{pypi_version}
|
%autosetup -n %{pypi_name}-%{pypi_version}
|
||||||
rm -rf %{pypi_name}.egg-info
|
rm -rf %{pypi_name}.egg-info
|
||||||
|
|
||||||
|
# Remove copies of bundled libraries to ensure these don't end up in our
|
||||||
|
# binaries.
|
||||||
|
rm -rf src/borg/algorithms/{lz4,xxh64,zstd}
|
||||||
|
|
||||||
|
# Remove precompiled Cython code to ensure we always built "from source".
|
||||||
|
find src/ -name '*.pyx' | sed -e 's/.pyx/.c/g' | xargs rm -f
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
@@ -77,5 +85,9 @@ rm -rf html/.{doctrees,buildinfo}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 20 2022 Daniel Uvehag <ufven+pkgs@protonmail.com> - 1.2.0-2
|
||||||
|
- Removed bundled algorithms
|
||||||
|
- Removed precompiled Cython files, and added Cython as a dependency
|
||||||
|
|
||||||
* Tue Apr 19 2022 Daniel Uvehag <ufven+pkgs@protonmail.com> - 1.2.0-1
|
* Tue Apr 19 2022 Daniel Uvehag <ufven+pkgs@protonmail.com> - 1.2.0-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|||||||
Reference in New Issue
Block a user