908d1cc
%if !(0%{?fedora} > 12 || 0%{?rhel} > 5)
908d1cc
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
908d1cc
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
908d1cc
%endif
48a8cab
48a8cab
Name:           python-cpio
48a8cab
Version:        0.1
6cdb7d0
Release:        13%{?dist}
48a8cab
Summary:        A Python module for accessing cpio archives
48a8cab
48a8cab
Group:          Development/Languages
ee1d57c
License:        LGPLv2+
48a8cab
URL:            http://developer.berlios.de/projects/python-cpio/
48a8cab
Source0:        http://download.berlios.de/python-cpio/python-cpio-0.1.tar.bz2
48a8cab
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
48a8cab
48a8cab
BuildArch:      noarch
908d1cc
BuildRequires:  python2-devel
48a8cab
48a8cab
%description
48a8cab
This is a Python module for accessing cpio archives.
48a8cab
48a8cab
%prep
48a8cab
%setup -q
48a8cab
48a8cab
%build
48a8cab
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
48a8cab
48a8cab
%install
48a8cab
rm -rf $RPM_BUILD_ROOT
908d1cc
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
48b3833
48a8cab
%clean
48a8cab
rm -rf $RPM_BUILD_ROOT
48a8cab
48a8cab
%files
48a8cab
%defattr(-,root,root,-)
48a8cab
%doc AUTHORS ChangeLog COPYING.lib README TODO
48b3833
%{python_sitelib}/cpioarchive.py*
908d1cc
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
48b3833
%{python_sitelib}/*.egg-info
48b3833
%endif
48b3833
48a8cab
48a8cab
%changelog
6cdb7d0
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-13
6cdb7d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6cdb7d0
cc7f6a3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-12
cc7f6a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cc7f6a3
d54e048
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.1-11
d54e048
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
d54e048
908d1cc
* Thu Jul 8 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1-10
908d1cc
- Update for new python guidelines
908d1cc
- Fix spec so that EPEL-6 will build
908d1cc
41691f5
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-9
41691f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
41691f5
cd230cc
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-8
cd230cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cd230cc
3002853
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1-7
3002853
- Rebuild for Python 2.6
3002853
ee1d57c
* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.1-6
ee1d57c
- fix license tag
ee1d57c
48b3833
* Tue Apr  1 2008 José Matos <jamatos[AT]fc.up.pt> - 0.1-5
48b3833
- Add egg-info for F9+.
48b3833
27400d6
* Tue Aug 28 2007 José Matos <jamatos[AT]fc.up.pt> - 0.1-4
27400d6
- License fix, rebuild for devel (F8).
27400d6
2cc5896
* Tue Dec 12 2006 José Matos <jamatos[AT]fc.up.pt> - 0.1-3
2cc5896
- Rebuild for python 2.5.
2cc5896
9c3cffe
* Mon Sep 11 2006 José Matos <jamatos[AT]fc.up.pt> - 0.1-2
9c3cffe
- Rebuild for FC6.
9c3cffe
48a8cab
* Tue Jan  3 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.1-1
48a8cab
- Initial RPM release