|
|
48a8cab |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
48a8cab |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
48a8cab |
|
|
|
48a8cab |
Name: python-cpio
|
|
|
48a8cab |
Version: 0.1
|
|
|
9c3cffe |
Release: 2%{?dist}
|
|
|
48a8cab |
Summary: A Python module for accessing cpio archives
|
|
|
48a8cab |
|
|
|
48a8cab |
Group: Development/Languages
|
|
|
48a8cab |
License: LGPL
|
|
|
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
|
|
|
48a8cab |
BuildRequires: python-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
|
|
|
48a8cab |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
48a8cab |
|
|
|
48a8cab |
%clean
|
|
|
48a8cab |
rm -rf $RPM_BUILD_ROOT
|
|
|
48a8cab |
|
|
|
48a8cab |
%files
|
|
|
48a8cab |
%defattr(-,root,root,-)
|
|
|
48a8cab |
%doc AUTHORS ChangeLog COPYING.lib README TODO
|
|
|
48a8cab |
%{python_sitelib}/cpioarchive.py
|
|
|
48a8cab |
%{python_sitelib}/cpioarchive.py[co]
|
|
|
48a8cab |
|
|
|
48a8cab |
%changelog
|
|
|
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
|