From 48a8cab2d42c6df65fb6c639b165b2bd0c158ef6 Mon Sep 17 00:00:00 2001 From: Ignacio Vazquez-Abrams Date: Mon, 13 Mar 2006 04:56:00 +0000 Subject: [PATCH] auto-import python-cpio-0.1-1 on branch devel from python-cpio-0.1-1.src.rpm --- .cvsignore | 1 + python-cpio.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 45 insertions(+) create mode 100644 python-cpio.spec diff --git a/.cvsignore b/.cvsignore index e69de29..987afee 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +python-cpio-0.1.tar.bz2 diff --git a/python-cpio.spec b/python-cpio.spec new file mode 100644 index 0000000..31eff6a --- /dev/null +++ b/python-cpio.spec @@ -0,0 +1,43 @@ +%{!?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: 1%{?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 +Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") + +%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 +* Tue Jan 3 2006 Ignacio Vazquez-Abrams 0.1-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..61fee71 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +277934c8aa149dfa2714d70a68fe363d python-cpio-0.1.tar.bz2