Blame SPECS/python-lz4.spec

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