Blame SPECS/pyliblzma.spec

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