rpms/pyliblzma/devel no-script-liblzma.patch, NONE, 1.1 pyliblzma.spec, NONE, 1.1 sources, 1.1, 1.2

Seth Vidal skvidal at fedoraproject.org
Mon Jun 28 18:04:56 UTC 2010


Author: skvidal

Update of /cvs/pkgs/rpms/pyliblzma/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv21991

Modified Files:
	sources 
Added Files:
	no-script-liblzma.patch pyliblzma.spec 
Log Message:
first import



no-script-liblzma.patch:
 liblzma.py |    1 -
 1 file changed, 1 deletion(-)

--- NEW FILE no-script-liblzma.patch ---
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)


--- NEW FILE pyliblzma.spec ---
%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:    3%{?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
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
* Fri Jun  4 2010 Seth Vidal <skvidal at fedoraproject.org> - 0.5.3-3
- set perms on lzma.so to 0755 so wonky umasks don't impact it

* Fri May 14 2010 Seth Vidal <skvidal at fedoraproject.org> - 0.5.3-1
- cleanup from upstream spec to fedora-ish style/reqs



Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pyliblzma/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	28 Jun 2010 17:52:39 -0000	1.1
+++ sources	28 Jun 2010 18:04:56 -0000	1.2
@@ -0,0 +1 @@
+500f61116ee1ab4063b49c121786863a  pyliblzma-0.5.3.tar.bz2



More information about the scm-commits mailing list