rpms/python-cpio/EL-6 python-cpio.spec,1.9,1.10
Toshio くらとみ
toshio at fedoraproject.org
Thu Jul 8 18:25:52 UTC 2010
Author: toshio
Update of /cvs/pkgs/rpms/python-cpio/EL-6
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv2535
Modified Files:
python-cpio.spec
Log Message:
* Thu Jul 8 2010 Toshio Kuratomi <toshio at fedoraproject.org> - 0.1-10
- Update for new python guidelines
- Fix spec so that EPEL-6 will build
Index: python-cpio.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-cpio/EL-6/python-cpio.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- python-cpio.spec 26 Jul 2009 20:15:06 -0000 1.9
+++ python-cpio.spec 8 Jul 2010 18:25:52 -0000 1.10
@@ -1,9 +1,11 @@
-%{!?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)")}
+%if !(0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%endif
Name: python-cpio
Version: 0.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: A Python module for accessing cpio archives
Group: Development/Languages
@@ -13,7 +15,7 @@ Source0: http://download.berlios.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: python-devel
+BuildRequires: python2-devel
%description
This is a Python module for accessing cpio archives.
@@ -26,7 +28,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setu
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
@@ -35,12 +37,16 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING.lib README TODO
%{python_sitelib}/cpioarchive.py*
-%if 0%{?fedora} >= 9
+%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
%{python_sitelib}/*.egg-info
%endif
%changelog
+* Thu Jul 8 2010 Toshio Kuratomi <toshio at fedoraproject.org> - 0.1-10
+- Update for new python guidelines
+- Fix spec so that EPEL-6 will build
+
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
More information about the scm-commits
mailing list