python-zstd: import version 1.5.5.1

This commit is contained in:
Dan Streetman 2024-01-31 13:58:08 -05:00
Родитель 45cc06d0fa
Коммит 381b14d135
6 изменённых файлов: 138 добавлений и 1 удалений

2
SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md сгенерированный

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1820,6 +1820,7 @@
"python-yubico",
"python-zipp",
"python-zmq",
"python-zstd",
"python3-mallard-ducktype",
"python3-pytest-asyncio",
"python3-typed_ast",

Просмотреть файл

@ -0,0 +1,11 @@
--- a/setup.py
+++ b/setup.py
@@ -119,6 +119,8 @@ else:
class ZstdBuildExt( build_ext ):
def build_extensions(self):
+ if 'test' in sys.argv: return
+
c = self.compiler.compiler_type
if c in COPT:
for e in self.extensions:

Просмотреть файл

@ -0,0 +1,6 @@
{
"Signatures": {
"python-zstd-1.5.5.1-test-external.patch": "8d4049d09e9c7302281baccba8014cab9ff60d14a743c1890d882cbc830f2949",
"zstd-1.5.5.1.tar.gz": "1ef980abf0e1e072b028d2d76ef95b476632651c96225cf30b619c6eef625672"
}
}

Просмотреть файл

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

Просмотреть файл

@ -24759,6 +24759,16 @@
}
}
},
{
"component": {
"type": "other",
"other": {
"name": "python-zstd",
"version": "1.5.5.1",
"downloadUrl": "https://files.pythonhosted.org/packages/source/z/zstd/zstd-1.5.5.1.tar.gz"
}
}
},
{
"component": {
"type": "other",