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