Hello community, here is the log from the commit of package python-numpy for openSUSE:Factory checked in at Fri Mar 5 15:57:53 CET 2010. -------- --- python-numpy/python-numpy.changes 2009-04-08 19:44:50.000000000 +0200 +++ /mounts/work_src_done/STABLE/python-numpy/python-numpy.changes 2010-01-13 17:29:54.000000000 +0100 @@ -1,0 +2,11 @@ +Wed Jan 13 16:29:10 UTC 2010 - lars@linux-schulserver.de + +- use a more generic way to define py_sitedir on all targets + +------------------------------------------------------------------- +Mon Jan 11 14:57:01 UTC 2010 - coolo@novell.com + +- remerge d:l:p version with O:F version + - split -devel package and add support for !suse targets + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- rpmlintrc New: ---- python-numpy-rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-numpy.spec ++++++ --- /var/tmp/diff_new_pack.3b2QCU/_old 2010-03-05 15:57:38.000000000 +0100 +++ /var/tmp/diff_new_pack.3b2QCU/_new 2010-03-05 15:57:38.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-numpy (Version 1.3.0) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,64 +16,117 @@ # -%define modname numpy Name: python-numpy -Url: http://numpy.scipy.org/ -Summary: Array processing for numbers, strings, records and objects -Version: 1.3.0 -Release: 1 -License: BSD 3-Clause +Summary: NumPy: array processing for numbers, strings, records and objects +License: BSD Group: Development/Libraries/Python -Source: %{modname}-%{version}.tar.bz2 -Patch0: numpy-buildfix.patch +Version: 1.3.0 +Release: 2 +Url: http://sourceforge.net/projects/numpy +Provides: numpy = %version-%release +Provides: python-numeric = %version-%release +BuildRequires: python-devel >= 2.4 +BuildRequires: lapack +BuildRequires: blas +%if 0%{?suse_version} +BuildRequires: gcc-fortran +%py_requires +%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 +%endif +Source: numpy-%{version}.tar.bz2 +Source1: python-numpy-rpmlintrc +Patch1: numpy-buildfix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{py_requires} -BuildRequires: python-devel %description -The fundamental package needed for scientific computing with Python is -called NumPy. This package contains: - -* a powerful N-dimensional array object - -* sophisticated (broadcasting) functions - -* basic linear algebra functions - -* basic Fourier transforms - -* sophisticated random number capabilities - -* tools for integrating Fortran code. - -Authors: Todd Miller <jmiller@stsci.edu> Perry Greenfield -<perry@stsci.edu> +NumPy is a general-purpose array-processing package designed to +efficiently manipulate large multi-dimensional arrays of arbitrary +records without sacrificing too much speed for small multi-dimensional +arrays. NumPy is built on the Numeric code base and adds features +introduced by numarray as well as an extended C-API and the ability to +create arrays of arbitrary type which also makes NumPy suitable for +interfacing with general-purpose data-base applications. + +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 +Requires: gcc-fortran -Authors: --------- - Todd Miller <jmiller@stsci.edu> - Perry Greenfield <perry@stsci.edu> +%description devel +This package contains files for developing applications using numpy. %prep -%setup -q -n %{modname}-%{version} -%patch0 +%setup -q -n numpy-%{version} +%patch1 -p0 +for i in $(find . -name "*.py"); do + sed -i 's|^.*env python$|#!%{_bindir}/python|g' $i +done %build -export CFLAGS="%{optflags} -fno-strict-aliasing" -python setup.py build +env CFLAGS="%{optflags} -fno-strict-aliasing" \ +%{__python} setup.py build %install -rm -rf %{buildroot} -python setup.py install --prefix=%{_prefix} --record-rpm=INSTALLED_FILES --root="$RPM_BUILD_ROOT" +%{__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 +%if 0%{?suse_version} > 1020 +%fdupes -s %{buildroot} +%endif %clean rm -rf %{buildroot} -%files -f INSTALLED_FILES +%files +%defattr(-,root,root) +%doc *.txt +%dir %{py_sitedir}/numpy +%{_bindir}/* +%if %suse_version >= 1020 +%{py_sitedir}/*info +%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 + +%files devel %defattr(-,root,root) -%doc COMPATIBILITY LICENSE.txt README.txt THANKS.txt DEV_README.txt +%{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 %changelog ++++++ python-numpy-rpmlintrc ++++++ # OBS error: addFilter("no-packager-tag") # this files have .py ending, but are not designed to be # called directly addFilter("non-executable-script") addFilter(".*devel-file-in-non-devel-package.*/usr/lib.*/python.*") ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org