Package init

This commit is contained in:
overweight 2019-09-30 11:14:24 -04:00
commit 9a0a75f5a4
3 changed files with 70 additions and 0 deletions

9
no-script-liblzma.patch Normal file
View File

@ -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)

BIN
pyliblzma-0.5.3.tar.bz2 Normal file

Binary file not shown.

61
pyliblzma.spec Normal file
View File

@ -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<shenyangyang4@huawei.com> - 0.5.3-27
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:move directory of COPYING
* Sat Sep 21 2019 shenyangyang<shenyangyang4@huawei.com> - 0.5.3-26
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise description
* Fri Aug 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.5.3-25
- strenthen spec
* Mon May 19 2008 Per Øyvind Karlsen <peroyvind@mandriva.org> 0.3-1
- initial release