From da498b0c82780cda6f72357ebb3d9d94234a1a73 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 11 2021 14:22:04 +0000 Subject: Import python-lz4-3.0.2-5.el9 in CloudSIG xena --- diff --git a/.python-lz4.metadata b/.python-lz4.metadata new file mode 100644 index 0000000..a24fe78 --- /dev/null +++ b/.python-lz4.metadata @@ -0,0 +1 @@ +9d38f02c7025431e8832cf36107c5155c4ed75f9 SOURCES/lz4-3.0.2.tar.gz diff --git a/SPECS/python-lz4.spec b/SPECS/python-lz4.spec new file mode 100644 index 0000000..b3a4628 --- /dev/null +++ b/SPECS/python-lz4.spec @@ -0,0 +1,259 @@ +%global srcname lz4 + +Name: python-%{srcname} +Version: 3.0.2 +Release: 5%{?dist} +URL: https://github.com/%{name}/%{name} +Summary: LZ4 Bindings for Python +License: BSD +Source: https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildRequires: lz4-devel +BuildRequires: gcc + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pytest +BuildRequires: python3-pytest-runner +BuildRequires: python3-pkgconfig +BuildRequires: python3-future +# For tests +BuildRequires: python3-psutil +BuildRequires: python3-pytest-cov +# For docs +BuildRequires: python3-sphinx +#BuildRequires: python3-sphinx-bootstrap-theme + +%description +Python bindings for the lz4 compression library. + + +%package -n python3-lz4 +Summary: LZ4 Bindings for Python 3 +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-lz4 +Python 3 bindings for the lz4 compression library. + + +%prep +%autosetup -n %{srcname}-%{version} -p1 + +# Remove bundled lz4 as we're building against system lib +rm lz4libs/lz4*.[ch] + + +%build +%py3_build + + +%install +%py3_install +# Fix permissions on shared objects +find %{buildroot}%{python3_sitearch} -name 'lz4*.so' \ + -exec chmod 0755 {} \; + +# Build HTML docs +#pushd docs +#PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} make html +#popd +#mv docs/_build/html ./html + + +%check +# First we'll just try importing, then run the tests +PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} %{__python3} -c "import lz4" + +%ifnarch aarch64 armv7hl s390x +# Arm builders have insufficient RAM to run the full test suite. So, for now +# we'll disable on those archs until we've broken out the tests to enable a +# subset on low memory machines. +# s390x builder hangs during tests indefinitely +# Skip test_invalid_config_c_5 as it needs much memory +sed -i 's/lz4.stream.LZ4_MAX_INPUT_SIZE]/]/' tests/stream/test_stream_3.py +sed -i '/1 \* _1GB/d' tests/stream/test_stream_3.py +PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} pytest --cov=lz4 --tb=long -x --showlocals -k "not test_invalid_config_c_5 and not test_invalid_config_d_5 and not test_huge" +#%{__python3} setup.py test +%endif + +#pushd docs +#PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} make doctest +#popd + + +%files -n python3-lz4 +%license LICENSE +%doc README.rst +%{python3_sitearch}/lz4* + + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 3.0.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 3.0.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 3.0.2-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Dec 29 2019 Jonathan Underwood - 3.0.2-1 +- Update to version 3.0.2 +- Disable tests on Arm due to insufficient RAM + +* Thu Oct 03 2019 Miro Hrončok - 2.1.2-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 2.1.2-5 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Mar 27 2019 Miro Hrončok - 2.1.2-3 +- Subpackage python2-lz4 has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 2.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 4 2018 Jonathan Underwood - 2.1.2-1 +- Update to version 2.1.2 + +* Thu Aug 9 2018 Jonathan Underwood - 2.1.0-1 +- Update to version 2.1.0 + +* Sat Jul 14 2018 Fedora Release Engineering - 2.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Jul 7 2018 Jonathan Underwood - 2.0.2-1 +- Update to version 2.0.2 + +* Sun Jun 24 2018 Jonathan Underwood - 2.0.1-2 +- Bump release and rebuild for f29-python side tag + +* Thu Jun 21 2018 Jonathan Underwood - 2.0.1-1 +- Update to version 2.0.1 + +* Wed Jun 20 2018 Jonathan Underwood - 2.0.0-2 +- Add BuildRequires for python{2,3}-psutil for tests + +* Wed Jun 20 2018 Jonathan Underwood - 2.0.0-1 +- Update to version 2.0.0 + +* Tue Jun 19 2018 Miro Hrončok - 1.1.0-3 +- Rebuilt for Python 3.7 + +* Sat Apr 28 2018 Jonathan Underwood - 1.1.0-2 +- Add a Requires for python2-future to python2 package (BZ 1571130) + +* Tue Apr 3 2018 Jonathan Underwood - 1.1.0-1 +- Update to version 1.1.0 (fixes BZ#1553856) + +* Tue Apr 3 2018 Jonathan Underwood - 1.0.1-3 +- Update to version 1.0.1 +- Build and package html docs +- Run make doctest during %%check + +* Sun Feb 18 2018 Jonathan Underwood - 1.0.0-2 +- Add a BuildRequires for gcc + +* Sun Feb 18 2018 Jonathan Underwood - 1.0.0-1 +- Update to version 1.0.0 + +* Wed Feb 14 2018 Jonathan Underwood - 0.23.2-1 +- Update to 0.23.2 + +* Sun Feb 11 2018 Jonathan Underwood - 0.23.1-4 +- Rebuild for fixed spec + +* Sun Feb 11 2018 Jonathan Underwood - 0.23.1-3 +- Rebuild for fixed spec + +* Sun Feb 11 2018 Jonathan Underwood - 0.23.1-2 +- Add LICENSE file to packages + +* Sun Feb 11 2018 Jonathan Underwood - 0.23.1-1 +- Update to 0.23.1 +- Update BuildRequires +- Spec file cleanups + +* Fri Feb 09 2018 Fedora Release Engineering - 0.9.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 25 2018 Iryna Shcherbina - 0.9.4-4 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Aug 03 2017 Fedora Release Engineering - 0.9.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.9.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 2 2017 Haïkel Guémar - 0.9.4-1 +- Upstream 0.9.4 +- Fix BR + +* Mon Mar 13 2017 Alan Pevec 0.9.0-1 +- Update to 0.9.0 + +* Sat Feb 11 2017 Fedora Release Engineering - 0.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.8.2-2 +- Rebuild for Python 3.6 + +* Tue Nov 8 2016 Orion Poplawski - 0.8.2-1 +- Update to 0.8.2 +- Enable EPEL7 builds + +* Tue Jul 19 2016 Fedora Release Engineering - 0.8.1-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Wed Apr 27 2016 Jonathan Underwood - 0.8.1-1 +- Update to 0.8.1 +- Use new upstream URL +- Drop upstreamed patch +- Use PyPi source url with hash, for now + +* Sun Feb 28 2016 Jonathan Underwood - 0.7.0-6 +- Spec file cleanup +- Add use of python_provide macro +- Remove python 3 conditional build - always build +- Use standard python packaging build and install macros + +* Thu Feb 04 2016 Fedora Release Engineering - 0.7.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Nov 06 2015 Robert Kuska - 0.7.0-4 +- Rebuilt for Python3.5 rebuild + +* Mon Jun 29 2015 Jonathan Underwood - 0.7.0-3 +- Update patch to build against system libs and add compress_fast method +- Add BR for python[3]-nose +- Run bundled test in %%check + +* Sat Jun 27 2015 Jonathan Underwood - 0.7.0-2 +- Drop unneeded Requires for lz4 +- Remove commented out cruft from spec +- Regenerate setup.py patch to use libraries=["lz4"] +- Remove bundled lz4 code in %%prep + +* Sat Jun 27 2015 Jonathan Underwood - 0.7.0-1 +- Build against system lz4 libs +- Rudimentary check to see if we can import the module + +* Sat Jun 27 2015 Jonathan Underwood - 0.7.0-0.2 +- Include README.rst in python3 package as well + +* Sat Jun 27 2015 Jonathan Underwood - 0.7.0-0.1 +- Fix permissions of shared objects to be 0755 + +* Sat Jun 27 2015 Jonathan Underwood - 0.7.0-0 +- Initial package for Fedora +