|
rdobuilder |
278a57 |
%global pypi_name zstd
|
|
rdobuilder |
278a57 |
%global min_zstd_version 1.5.0
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
Name: python-%{pypi_name}
|
|
rdobuilder |
278a57 |
Version: 1.5.5.1
|
|
rdobuilder |
278a57 |
Release: 1%{?dist}
|
|
rdobuilder |
278a57 |
Summary: Zstd Bindings for Python
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
# original zstd bits are GPL-2.0-or-later OR BSD-2-Clause
|
|
rdobuilder |
278a57 |
License: BSD-2-Clause AND (GPL-2.0-or-later OR BSD-2-Clause)
|
|
rdobuilder |
278a57 |
URL: https://github.com/sergey-dryabzhinsky/python-zstd
|
|
rdobuilder |
278a57 |
Source: %{pypi_source}
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
# Patches to fix test execution
|
|
rdobuilder |
278a57 |
Patch: python-zstd-1.5.5.1-test-external.patch
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
BuildRequires: gcc
|
|
rdobuilder |
278a57 |
BuildRequires: python3-devel
|
|
rdobuilder |
278a57 |
BuildRequires: python3dist(setuptools)
|
|
rdobuilder |
278a57 |
BuildRequires: pkgconfig(libzstd) >= %{min_zstd_version}
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%description
|
|
rdobuilder |
278a57 |
Simple Python bindings for the Zstd compression library.
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%package -n python3-%{pypi_name}
|
|
rdobuilder |
278a57 |
Summary: %{summary}
|
|
rdobuilder |
278a57 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
rdobuilder |
278a57 |
# The library does not do symbol versioning to fully match automatically on
|
|
rdobuilder |
278a57 |
Requires: libzstd%{?_isa} >= %{min_zstd_version}
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%description -n python3-%{pypi_name}
|
|
rdobuilder |
278a57 |
Simple Python bindings for the Zstd compression library.
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%prep
|
|
rdobuilder |
278a57 |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
rdobuilder |
278a57 |
# Remove bundled egg-info
|
|
rdobuilder |
278a57 |
rm -rf src/%{pypi_name}.egg-info
|
|
rdobuilder |
278a57 |
# Remove precompiled files
|
|
rdobuilder |
278a57 |
find . -name '*.pyc' -delete
|
|
rdobuilder |
278a57 |
# Remove bundled zstd library
|
|
rdobuilder |
278a57 |
rm -rf zstd/
|
|
rdobuilder |
278a57 |
# do not test the version matching, we don't really need exact version of
|
|
rdobuilder |
278a57 |
# zstd here
|
|
rdobuilder |
278a57 |
rm tests/test_version.py
|
|
rdobuilder |
278a57 |
sed -i -e '/tests\.test_version/d' setup.py
|
|
rdobuilder |
278a57 |
sed -i -e '/test_version/d' tests/__init__.py
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%build
|
|
rdobuilder |
278a57 |
%py3_build -- --legacy --external
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%install
|
|
rdobuilder |
278a57 |
%py3_install
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%check
|
|
rdobuilder |
278a57 |
%{__python3} setup.py test
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%files -n python3-%{pypi_name}
|
|
rdobuilder |
278a57 |
%license LICENSE
|
|
rdobuilder |
278a57 |
%doc README.rst
|
|
rdobuilder |
278a57 |
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
rdobuilder |
278a57 |
%{python3_sitearch}/%{pypi_name}*.so
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
%changelog
|
|
rdobuilder |
278a57 |
* Tue Jan 09 2024 Michel Lind <salimma@fedoraproject.org> - 1.5.5.1-1
|
|
rdobuilder |
278a57 |
- Update to 1.5.5.1
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5.1-12
|
|
rdobuilder |
278a57 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.4.5.1-11
|
|
rdobuilder |
278a57 |
- Rebuilt for Python 3.12
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Wed Feb 01 2023 Nikita Popov <npopov@redhat.com> - 1.4.5.1-10
|
|
rdobuilder |
278a57 |
- Port to C99
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5.1-9
|
|
rdobuilder |
278a57 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5.1-8
|
|
rdobuilder |
278a57 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.4.5.1-7
|
|
rdobuilder |
278a57 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5.1-6
|
|
rdobuilder |
278a57 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5.1-5
|
|
rdobuilder |
278a57 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.4.5.1-4
|
|
rdobuilder |
278a57 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5.1-3
|
|
rdobuilder |
278a57 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Mon Sep 21 2020 Joel Capitao <jcapitao@redhat.com> - 1.4.5.1-2
|
|
rdobuilder |
278a57 |
- Edit macro for CentOS interoperability
|
|
rdobuilder |
278a57 |
|
|
rdobuilder |
278a57 |
* Sun Aug 23 2020 Neal Gompa <ngompa13@gmail.com> - 1.4.5.1-1
|
|
rdobuilder |
278a57 |
- Initial package (#1870571)
|