commit 9a0a75f5a4a3381735108d61866196157f865a2f Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:14:24 2019 -0400 Package init diff --git a/no-script-liblzma.patch b/no-script-liblzma.patch new file mode 100644 index 0000000..611f40d --- /dev/null +++ b/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/pyliblzma-0.5.3.tar.bz2 b/pyliblzma-0.5.3.tar.bz2 new file mode 100644 index 0000000..3491680 Binary files /dev/null and b/pyliblzma-0.5.3.tar.bz2 differ diff --git a/pyliblzma.spec b/pyliblzma.spec new file mode 100644 index 0000000..b7cd571 --- /dev/null +++ b/pyliblzma.spec @@ -0,0 +1,61 @@ +Summary: Python bindings for liblzma +Name: pyliblzma +Version: 0.5.3 +Release: 27 +License: LGPLv3+ +Url: https://launchpad.net/pyliblzma +Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.bz2 + +Patch0: no-script-liblzma.patch + +BuildRequires: python-setuptools xz-devel python-test python-devel + +%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. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +python setup.py build + +%check +python setup.py test + +%install +python setup.py install --root=%{buildroot} + +%files +%defattr(-,root,root) +%doc THANKS ChangeLog +%license COPYING +%{python_sitearch}/liblzma.py* +%attr(0755,root,root) %{python_sitearch}/lzma.so +%{python_sitearch}/%{name}*.egg-info + +%files help +%defattr(-,root,root) +%doc README PKG-INFO NEWS + +%changelog +* Fri Sep 27 2019 shenyangyang - 0.5.3-27 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:move directory of COPYING + +* Sat Sep 21 2019 shenyangyang - 0.5.3-26 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:revise description + +* Fri Aug 16 2019 openEuler Buildteam - 0.5.3-25 +- strenthen spec + +* Mon May 19 2008 Per Øyvind Karlsen 0.3-1 +- initial release