diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c0b7b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pyliblzma-0.5.3.tar.bz2 diff --git a/.pyliblzma.metadata b/.pyliblzma.metadata new file mode 100644 index 0000000..6151987 --- /dev/null +++ b/.pyliblzma.metadata @@ -0,0 +1 @@ +6240ec6f830f35f4087b8926a95c2074320b7ed5 SOURCES/pyliblzma-0.5.3.tar.bz2 diff --git a/SOURCES/no-script-liblzma.patch b/SOURCES/no-script-liblzma.patch new file mode 100644 index 0000000..611f40d --- /dev/null +++ b/SOURCES/no-script-liblzma.patch @@ -0,0 +1,9 @@ +diff --git a/liblzma.py~ b/liblzma.py +index 36d8047..293193d 100644 +--- a/liblzma.py~ ++++ b/liblzma.py +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + from lzma import * + from warnings import warn + warn("'liblzma' has been renamed to 'lzma'!\n Please update code to import 'lzma'!", DeprecationWarning, stacklevel=1) diff --git a/SPECS/pyliblzma.spec b/SPECS/pyliblzma.spec new file mode 100644 index 0000000..82fa1e5 --- /dev/null +++ b/SPECS/pyliblzma.spec @@ -0,0 +1,81 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + + +Summary: Python bindings for lzma +Name: pyliblzma +Version: 0.5.3 +Release: 11%{?dist} +License: LGPLv3+ +URL: https://launchpad.net/pyliblzma +Source0: http://pypi.python.org/packages/source/p/pyliblzma/%{name}-%{version}.tar.bz2 +Patch0: no-script-liblzma.patch + +BuildRequires: xz-devel python-setuptools python2-devel +BuildRequires: python-test +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot + +%description +PylibLZMA provides a python interface for the liblzma library +to read and write data that has been compressed or can be decompressed +by Lasse Collin's lzma utils. + +%prep +%setup -qn %{name}-%{version} + +%patch0 -p1 + +%build +%{__python} setup.py build + +%check +%{__python} setup.py test + +%install +rm -rf %{buildroot} +%{__python} setup.py install --root=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc README THANKS ChangeLog NEWS +%attr(0755,-,-) %{python_sitearch}/lzma.so +%{python_sitearch}/liblzma.py* +%{python_sitearch}/%{name}*.egg-info + +%changelog +* Tue Jan 28 2014 Daniel Mach - 0.5.3-11 +- Mass rebuild 2014-01-24 + +* Fri Jan 24 2014 James Antill - 0.5.3-10 +- Add python-test Build Requires so %check works again. +- Resolves: rhbz#1044625 + +* Fri Dec 27 2013 Daniel Mach - 0.5.3-9 +- Mass rebuild 2013-12-27 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.5.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 0.5.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.5.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.5.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jul 27 2010 David Malcolm - 0.5.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Fri Jun 4 2010 Seth Vidal - 0.5.3-3 +- set perms on lzma.so to 0755 so wonky umasks don't impact it + +* Fri May 14 2010 Seth Vidal - 0.5.3-1 +- cleanup from upstream spec to fedora-ish style/reqs +