rpms/python-numeric/devel python-numeric.spec,1.14,1.15

Matthew Barnes (mbarnes) fedora-extras-commits at redhat.com
Sat Jan 19 03:20:54 UTC 2008


Author: mbarnes

Update of /cvs/pkgs/rpms/python-numeric/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22571

Modified Files:
	python-numeric.spec 
Log Message:

* Fri Jan 18 2008 Matthew Barnes <mbarnes at redhat.com> - 24.2-7
- Incorporate package review feedback from Parag AN (RH bug #226345).



Index: python-numeric.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-numeric/devel/python-numeric.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- python-numeric.spec	29 Aug 2007 04:56:19 -0000	1.14
+++ python-numeric.spec	19 Jan 2008 03:20:14 -0000	1.15
@@ -1,13 +1,15 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
 ### Abstract ###
 
 Name: python-numeric
 Version: 24.2
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: Python
 Group: Development/Languages
 Summary: Numerical Extension to Python
 URL: http://numpy.sourceforge.net
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u})
 Source: Numeric-%{version}.tar.gz
 
 ### Patches ###
@@ -16,6 +18,7 @@
 
 ### Build Dependencies ###
 
+BuildRequires: python-setuptools
 BuildRequires: python2-devel
 
 %description
@@ -27,11 +30,11 @@
 %patch1 -p1 -b .fix-dlamc3
 
 %build
-env CFLAGS="$RPM_OPT_FLAGS" /usr/bin/python setup.py build
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-/usr/bin/python setup.py install --root=$RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -39,12 +42,13 @@
 %files
 %defattr(-,root,root,-)
 %doc Demo/
-%{_libdir}/python*/site-packages/Numeric.pth
-%{_libdir}/python*/site-packages/Numeric/
-%{_includedir}/python*/
+%{python_sitelib}/*
 %{_includedir}/python*/Numeric/
 
 %changelog
+* Fri Jan 18 2008 Matthew Barnes <mbarnes at redhat.com> - 24.2-7
+- Incorporate package review feedback from Parag AN (RH bug #226345).
+
 * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 24.2-6
 - Rebuild for selinux ppc32 issue.
 




More information about the fedora-extras-commits mailing list