From f3d8acbd3a32f1a1c4261ad97e7cab189903d93c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Jan 19 2008 03:20:14 +0000 Subject: - Incorporate package review feedback from Parag AN (RH bug #226345). --- diff --git a/python-numeric.spec b/python-numeric.spec index 5160e00..4009081 100644 --- a/python-numeric.spec +++ b/python-numeric.spec @@ -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 @@ Patch1: Numeric-24.2-fix-dlamc3.patch ### Build Dependencies ### +BuildRequires: python-setuptools BuildRequires: python2-devel %description @@ -27,11 +30,11 @@ operations. %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 @@ rm -rf $RPM_BUILD_ROOT %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 - 24.2-7 +- Incorporate package review feedback from Parag AN (RH bug #226345). + * Wed Aug 29 2007 Fedora Release Engineering - 24.2-6 - Rebuild for selinux ppc32 issue.