97 lines
2.7 KiB
RPMSpec
97 lines
2.7 KiB
RPMSpec
%define __python /usr/bin/python2
|
|
%global module_name backports.lzma
|
|
|
|
%{?filter_setup:
|
|
%filter_provides_in %{python_sitearch}.*\.so$
|
|
%filter_setup
|
|
}
|
|
|
|
Name: python2-backports-lzma
|
|
Version: 0.0.14
|
|
Release: 3%{?dist}
|
|
Summary: Backport of Python 3.3's lzma module
|
|
|
|
License: BSD
|
|
URL: https://github.com/peterjc/backports.lzma
|
|
Source0: https://pypi.python.org/packages/source/b/%{module_name}/%{module_name}-%{version}.tar.gz
|
|
Source1: https://raw.github.com/peterjc/backports.lzma/backports.lzma.v0.0.2/LICENSE
|
|
|
|
Requires: python2-backports
|
|
BuildRequires: python2-devel
|
|
BuildRequires: xz-devel
|
|
BuildRequires: python2-nose
|
|
BuildRequires: python2-test
|
|
Provides: python-backports-lzma
|
|
Obsoletes: python-backports-lzma < %{version}-%{release}
|
|
|
|
%description
|
|
This is a backport of the "lzma" module included in Python 3.3 or later by
|
|
Nadeem Vawda and Per Oyvind Karlsen, which provides a Python wrapper for XZ
|
|
Utils (aka LZMA Utils v2) by Igor Pavlov.
|
|
|
|
|
|
%prep
|
|
%setup -qn %{module_name}-%{version}
|
|
cp %{SOURCE1} ./
|
|
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
|
|
%install
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
chmod 755 %{buildroot}%{python_sitearch}/backports/lzma/_lzma.so
|
|
# This file is provided by python-backports
|
|
rm %{buildroot}%{python_sitearch}/backports/__init__.py*
|
|
|
|
|
|
%check
|
|
cp build/lib*/backports/lzma/_lzma.so backports/lzma/
|
|
nosetests-2
|
|
|
|
|
|
%files
|
|
%doc LICENSE
|
|
%{python_sitearch}/*
|
|
|
|
|
|
%changelog
|
|
* Sun Jan 26 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.0.14-3.sme
|
|
- initial import to SME 11
|
|
|
|
* Sun Apr 03 2022 Peter Ajamian <pj@ghettoforge.org> - 0.0.14-2
|
|
- python2- for consistency with other python2 packages in el8
|
|
|
|
* Sun Apr 03 2022 Peter Ajamian <pj@ghettoforge.org> - 0.0.14-1
|
|
- 0.0.14
|
|
- Rebuild for el8
|
|
|
|
* Tue Apr 18 2017 Josh Boyer <jwboyer@redhat.com> - 0.0.2-9
|
|
- Bump and build for all architectures
|
|
|
|
* Tue Dec 16 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.0.2-8
|
|
- Resolves: rhbz#1158538 - delete __init__.py*, now provided by python-backports
|
|
|
|
* Wed May 07 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.0.2-7
|
|
- do not delete __init__.py* because no python-backports package for RHEL-7
|
|
|
|
* Thu Apr 24 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.0.2-6
|
|
- Rebuilt for RHEL-7
|
|
|
|
* Tue Sep 17 2013 Ian Weller <iweller@redhat.com> - 0.0.2-5
|
|
- Fix perms on _lzma.so, again
|
|
|
|
* Tue Aug 20 2013 Ian Weller <iweller@redhat.com> - 0.0.2-4
|
|
- Fix perms on _lzma.so
|
|
- Add LICENSE from upstream
|
|
|
|
* Tue Aug 20 2013 Ian Weller <iweller@redhat.com> - 0.0.2-3
|
|
- Actually fix check section
|
|
|
|
* Tue Aug 20 2013 Ian Weller <iweller@redhat.com> - 0.0.2-2
|
|
- BR: python-backports
|
|
|
|
* Mon Aug 19 2013 Ian Weller <iweller@redhat.com> - 0.0.2-1
|
|
- Initial package build
|