Accepting request 84189 from devel:languages:python

- 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

OBS-URL: https://build.opensuse.org/request/show/84189
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=13
This commit is contained in:
Sascha Peilicke 2011-09-22 08:58:19 +00:00 committed by Git OBS Bridge
parent f413be8ec5
commit 5a8abcad01
5 changed files with 52 additions and 74 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:001ebf9188aff8ec0f3d48baaa6c2b2276304a78f58cdafcf1db0bd4ece8e642
size 1912127

3
numpy-1.6.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:788b1bc712ee566d4b4d62ef99736c5830fa264cbc56f8651ded1e795c755cdd
size 2637779

View File

@ -1,6 +0,0 @@
# 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.*")

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
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
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 23 15:07:08 UTC 2011 - toddrme2178@gmail.com Mon Jan 23 15:07:08 UTC 2011 - toddrme2178@gmail.com

View File

@ -18,33 +18,33 @@
Name: python-numpy Name: python-numpy
Summary: NumPy: array processing for numbers, strings, records and objects Version: 1.6.1
License: BSD Release: 0
Group: Development/Libraries/Python
Version: 1.5.1
Release: 1
Url: http://sourceforge.net/projects/numpy Url: http://sourceforge.net/projects/numpy
Provides: numpy = %version-%release Summary: NumPy array processing for numbers, strings, records and objects
%if 0%{?fedora_version} == 0 License: BSD-3-Clause
Provides: python-numeric = %version-%release Group: Development/Libraries/Python
%endif Source: numpy-%{version}.tar.gz
BuildRequires: python-devel >= 2.4 Patch1: numpy-buildfix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: lapack BuildRequires: lapack
BuildRequires: blas BuildRequires: blas
%if 0%{?suse_version} %if 0%{?suse_version}
BuildRequires: gcc-fortran BuildRequires: gcc-fortran
%py_requires %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 %if 0%{?suse_version} > 1020
BuildRequires: fdupes BuildRequires: fdupes
%endif %endif
Source: numpy-%{version}.tar.bz2 %else
Source1: python-numpy-rpmlintrc BuildRequires: gcc-gfortran
Patch1: numpy-buildfix.patch %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: numpy = %{version}
%if ! 0%{?fedora_version}
Provides: python-numeric = %{version}
Obsoletes: python-numeric < %{version}
%endif
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description %description
NumPy is a general-purpose array-processing package designed to NumPy is a general-purpose array-processing package designed to
@ -58,16 +58,18 @@ interfacing with general-purpose data-base applications.
There are also basic facilities for discrete fourier transform, There are also basic facilities for discrete fourier transform,
basic linear algebra and random number generation. basic linear algebra and random number generation.
%package devel %package devel
License: BSD
Summary: Development files for numpy applications Summary: Development files for numpy applications
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: python-devel Requires: python-devel
Requires: lapack Requires: lapack
Requires: blas Requires: blas
%if 0%{?suse_version}
Requires: gcc-fortran Requires: gcc-fortran
%else
BuildRequires: gcc-gfortran
%endif
%description devel %description devel
This package contains files for developing applications using numpy. This package contains files for developing applications using numpy.
@ -75,62 +77,34 @@ This package contains files for developing applications using numpy.
%prep %prep
%setup -q -n numpy-%{version} %setup -q -n numpy-%{version}
%patch1 -p0 %patch1 -p0
for i in $(find . -name "*.py"); do 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
sed -i 's|^.*env python$|#!%{_bindir}/python|g' $i
done
%build %build
env CFLAGS="%{optflags} -fno-strict-aliasing" \ CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
%{__python} setup.py build
%install %install
%{__python} setup.py install \ python setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
--root="%{buildroot}" \ rm -rf %{buildroot}%{python_sitearch}/numpy/{,core,distutils,f2py,fft,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite
--prefix="%{_prefix}" rm -rf %{buildroot}%{python_sitearch}/numpy/core/lib/libnpymath.a # Don't package static libs
# 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 %if 0%{?suse_version} > 1020
%fdupes -s %{buildroot} %fdupes -s %{buildroot}%{_prefix}
%endif %endif
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc *.txt %doc *.txt
%dir %{py_sitedir}/numpy
%{_bindir}/* %{_bindir}/*
%if 0%{?sles_version} == 0 %{python_sitearch}/*
%if 0%{?suse_version} >= 1020 || 0%{?fedora_version} %exclude %{python_sitearch}/numpy/*/*/*.c
%{py_sitedir}/*info %exclude %{python_sitearch}/numpy/*/*.h
%endif %exclude %{python_sitearch}/numpy/*/*/*.h
%endif %exclude %{python_sitearch}/numpy/*/*/*/*.h
%{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 %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{py_sitedir}/numpy/*/*/*.c %{python_sitearch}/numpy/*/*/*.c
# %{py_sitedir}/numpy/*/*/*/*.c %{python_sitearch}/numpy/*/*.h
%{py_sitedir}/numpy/*/*/*/*/*.c %{python_sitearch}/numpy/*/*/*.h
%{py_sitedir}/numpy/*/*.h %{python_sitearch}/numpy/*/*/*/*.h
%{py_sitedir}/numpy/*/*/*.h
%{py_sitedir}/numpy/*/*/*/*.h
%{py_sitedir}/numpy/*/*/*/*/*.h
# %{py_sitedir}/numpy/*/*/*/*.cxx
# %{py_sitedir}/numpy/*/*/*/*.cpp
%changelog %changelog