Hello community, here is the log from the commit of package python-numpy for openSUSE:Factory checked in at Thu Sep 22 10:58:23 CEST 2011. -------- --- python-numpy/python-numpy.changes 2011-01-31 20:46:02.000000000 +0100 +++ /mounts/work_src_done/STABLE/python-numpy/python-numpy.changes 2011-09-21 15:32:15.000000000 +0200 @@ -1,0 +2,10 @@ +Wed Sep 21 13:04:54 UTC 2011 - saschpe@suse.de + +- Update to version 1.6.1: + * Please see http://downloads.sourceforge.net/project/numpy/NumPy/1.6.1/Changelog +- Spec file cleanup: + * Set license to BSD-3-Clause (SPDX style) + * Removed testsuite from packages + * Removed rpmlintrc file and actually fixed the issues + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- numpy-1.5.1.tar.bz2 python-numpy-rpmlintrc New: ---- numpy-1.6.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-numpy.spec ++++++ --- /var/tmp/diff_new_pack.8GPz5h/_old 2011-09-22 10:58:18.000000000 +0200 +++ /var/tmp/diff_new_pack.8GPz5h/_new 2011-09-22 10:58:18.000000000 +0200 @@ -18,33 +18,33 @@ Name: python-numpy -Summary: NumPy: array processing for numbers, strings, records and objects -License: BSD -Group: Development/Libraries/Python -Version: 1.5.1 -Release: 1 +Version: 1.6.1 +Release: 0 Url: http://sourceforge.net/projects/numpy -Provides: numpy = %version-%release -%if 0%{?fedora_version} == 0 -Provides: python-numeric = %version-%release -%endif -BuildRequires: python-devel >= 2.4 +Summary: NumPy array processing for numbers, strings, records and objects +License: BSD-3-Clause +Group: Development/Libraries/Python +Source: numpy-%{version}.tar.gz +Patch1: numpy-buildfix.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel BuildRequires: lapack BuildRequires: blas %if 0%{?suse_version} BuildRequires: gcc-fortran %py_requires +%if 0%{?suse_version} > 1020 +BuildRequires: fdupes +%endif %else BuildRequires: gcc-gfortran -%{!?py_sitedir: %global py_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif -%if 0%{?suse_version} > 1020 -BuildRequires: fdupes +Provides: numpy = %{version} +%if ! 0%{?fedora_version} +Provides: python-numeric = %{version} +Obsoletes: python-numeric < %{version} %endif -Source: numpy-%{version}.tar.bz2 -Source1: python-numpy-rpmlintrc -Patch1: numpy-buildfix.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description NumPy is a general-purpose array-processing package designed to @@ -58,16 +58,18 @@ There are also basic facilities for discrete fourier transform, basic linear algebra and random number generation. - %package devel -License: BSD Summary: Development files for numpy applications Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: python-devel Requires: lapack Requires: blas +%if 0%{?suse_version} Requires: gcc-fortran +%else +BuildRequires: gcc-gfortran +%endif %description devel This package contains files for developing applications using numpy. @@ -75,62 +77,34 @@ %prep %setup -q -n numpy-%{version} %patch1 -p0 -for i in $(find . -name "*.py"); do - sed -i 's|^.*env python$|#!%{_bindir}/python|g' $i -done +sed -i "1d" numpy/{compat/setup{,scons},distutils/{conv_template,cpuinfo,exec_command,from_template,setup,setupscons,system_info},f2py/{auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,docs/usersguide/setup_example,f2py2e,f90mod_rules,func2subr,__init__,rules,setup,setupscons,use_rules},ma/setup{,scons},matrixlib/setup{,scons},setup,setupscons,testing/print_coercion_tables,testing/setup{,scons}}.py # Fix non-executable scripts %build -env CFLAGS="%{optflags} -fno-strict-aliasing" \ -%{__python} setup.py build +CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build %install -%{__python} setup.py install \ - --root="%{buildroot}" \ - --prefix="%{_prefix}" - -# make rpmlint happy, add executable flag, even if the file -# should be called by another script -# find %{buildroot}%{py_sitedir}/numpy/ -type f -name "*.py" -print0 | xargs -0 chmod +x - -# save space +python setup.py install --root="%{buildroot}" --prefix="%{_prefix}" +rm -rf %{buildroot}%{python_sitearch}/numpy/{,core,distutils,f2py,fft,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite +rm -rf %{buildroot}%{python_sitearch}/numpy/core/lib/libnpymath.a # Don't package static libs %if 0%{?suse_version} > 1020 -%fdupes -s %{buildroot} +%fdupes -s %{buildroot}%{_prefix} %endif -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root) %doc *.txt -%dir %{py_sitedir}/numpy %{_bindir}/* -%if 0%{?sles_version} == 0 -%if 0%{?suse_version} >= 1020 || 0%{?fedora_version} -%{py_sitedir}/*info -%endif -%endif -%{py_sitedir}/numpy/* -%exclude %{py_sitedir}/numpy/*/*/*.c -# %exclude %{py_sitedir}/numpy/*/*/*/*.c -%exclude %{py_sitedir}/numpy/*/*/*/*/*.c -%exclude %{py_sitedir}/numpy/*/*.h -%exclude %{py_sitedir}/numpy/*/*/*.h -%exclude %{py_sitedir}/numpy/*/*/*/*.h -%exclude %{py_sitedir}/numpy/*/*/*/*/*.h -# %exclude %{py_sitedir}/numpy/*/*/*/*.cxx -# %exclude %{py_sitedir}/numpy/*/*/*/*.cpp +%{python_sitearch}/* +%exclude %{python_sitearch}/numpy/*/*/*.c +%exclude %{python_sitearch}/numpy/*/*.h +%exclude %{python_sitearch}/numpy/*/*/*.h +%exclude %{python_sitearch}/numpy/*/*/*/*.h %files devel %defattr(-,root,root) -%{py_sitedir}/numpy/*/*/*.c -# %{py_sitedir}/numpy/*/*/*/*.c -%{py_sitedir}/numpy/*/*/*/*/*.c -%{py_sitedir}/numpy/*/*.h -%{py_sitedir}/numpy/*/*/*.h -%{py_sitedir}/numpy/*/*/*/*.h -%{py_sitedir}/numpy/*/*/*/*/*.h -# %{py_sitedir}/numpy/*/*/*/*.cxx -# %{py_sitedir}/numpy/*/*/*/*.cpp +%{python_sitearch}/numpy/*/*/*.c +%{python_sitearch}/numpy/*/*.h +%{python_sitearch}/numpy/*/*/*.h +%{python_sitearch}/numpy/*/*/*/*.h %changelog ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org