|
|
06bb8a |
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
|
06bb8a |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
06bb8a |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
06bb8a |
%endif
|
|
|
06bb8a |
|
|
|
06bb8a |
|
|
|
06bb8a |
Summary: Python bindings for lzma
|
|
|
06bb8a |
Name: pyliblzma
|
|
|
06bb8a |
Version: 0.5.3
|
|
|
7c7cf0 |
Release: 11%{?dist}
|
|
|
06bb8a |
License: LGPLv3+
|
|
|
06bb8a |
URL: https://launchpad.net/pyliblzma
|
|
|
06bb8a |
Source0: http://pypi.python.org/packages/source/p/pyliblzma/%{name}-%{version}.tar.bz2
|
|
|
06bb8a |
Patch0: no-script-liblzma.patch
|
|
|
06bb8a |
|
|
|
06bb8a |
BuildRequires: xz-devel python-setuptools python2-devel
|
|
|
7c7cf0 |
BuildRequires: python-test
|
|
|
06bb8a |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
06bb8a |
|
|
|
06bb8a |
%description
|
|
|
06bb8a |
PylibLZMA provides a python interface for the liblzma library
|
|
|
06bb8a |
to read and write data that has been compressed or can be decompressed
|
|
|
06bb8a |
by Lasse Collin's lzma utils.
|
|
|
06bb8a |
|
|
|
06bb8a |
%prep
|
|
|
06bb8a |
%setup -qn %{name}-%{version}
|
|
|
06bb8a |
|
|
|
06bb8a |
%patch0 -p1
|
|
|
06bb8a |
|
|
|
06bb8a |
%build
|
|
|
06bb8a |
%{__python} setup.py build
|
|
|
06bb8a |
|
|
|
06bb8a |
%check
|
|
|
06bb8a |
%{__python} setup.py test
|
|
|
06bb8a |
|
|
|
06bb8a |
%install
|
|
|
06bb8a |
rm -rf %{buildroot}
|
|
|
06bb8a |
%{__python} setup.py install --root=%{buildroot}
|
|
|
06bb8a |
|
|
|
06bb8a |
%clean
|
|
|
06bb8a |
rm -rf %{buildroot}
|
|
|
06bb8a |
|
|
|
06bb8a |
%files
|
|
|
06bb8a |
%defattr(-,root,root)
|
|
|
06bb8a |
%doc README THANKS ChangeLog NEWS
|
|
|
06bb8a |
%attr(0755,-,-) %{python_sitearch}/lzma.so
|
|
|
06bb8a |
%{python_sitearch}/liblzma.py*
|
|
|
06bb8a |
%{python_sitearch}/%{name}*.egg-info
|
|
|
06bb8a |
|
|
|
06bb8a |
%changelog
|
|
|
7c7cf0 |
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 0.5.3-11
|
|
|
7c7cf0 |
- Mass rebuild 2014-01-24
|
|
|
7c7cf0 |
|
|
|
7c7cf0 |
* Fri Jan 24 2014 James Antill <james.antill@redhat.com> - 0.5.3-10
|
|
|
7c7cf0 |
- Add python-test Build Requires so %check works again.
|
|
|
7c7cf0 |
- Resolves: rhbz#1044625
|
|
|
7c7cf0 |
|
|
|
7c7cf0 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.3-9
|
|
|
7c7cf0 |
- Mass rebuild 2013-12-27
|
|
|
7c7cf0 |
|
|
|
06bb8a |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-8
|
|
|
06bb8a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
06bb8a |
|
|
|
06bb8a |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-7
|
|
|
06bb8a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
06bb8a |
|
|
|
06bb8a |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-6
|
|
|
06bb8a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
06bb8a |
|
|
|
06bb8a |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-5
|
|
|
06bb8a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
06bb8a |
|
|
|
06bb8a |
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.3-4
|
|
|
06bb8a |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
06bb8a |
|
|
|
06bb8a |
* Fri Jun 4 2010 Seth Vidal <skvidal at fedoraproject.org> - 0.5.3-3
|
|
|
06bb8a |
- set perms on lzma.so to 0755 so wonky umasks don't impact it
|
|
|
06bb8a |
|
|
|
06bb8a |
* Fri May 14 2010 Seth Vidal <skvidal at fedoraproject.org> - 0.5.3-1
|
|
|
06bb8a |
- cleanup from upstream spec to fedora-ish style/reqs
|
|
|
06bb8a |
|