%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-cpio Version: 0.1 Release: 2%{?dist} Summary: A Python module for accessing cpio archives Group: Development/Languages License: LGPL URL: http://developer.berlios.de/projects/python-cpio/ Source0: http://download.berlios.de/python-cpio/python-cpio-0.1.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %description This is a Python module for accessing cpio archives. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING.lib README TODO %{python_sitelib}/cpioarchive.py %{python_sitelib}/cpioarchive.py[co] %changelog * Mon Sep 11 2006 José Matos - 0.1-2 - Rebuild for FC6. * Tue Jan 3 2006 Ignacio Vazquez-Abrams 0.1-1 - Initial RPM release