[python26-numpy/el5] Add eGenix license, rhbz#619355
stevetraylen
stevetraylen at fedoraproject.org
Thu Jun 16 18:11:30 UTC 2011
commit 86f37626678cec8e5cf700992d9a86c061e70163
Author: Steve Traylen <steve.traylen at cern.ch>
Date: Thu Jun 16 20:10:57 2011 +0200
Add eGenix license, rhbz#619355
.gitignore | 1 +
numpy-1.0.1-f2py.patch | 27 ++++
python26-numpy.spec | 407 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 436 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..de43bcc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/numpy-1.5.1.tar.gz
diff --git a/numpy-1.0.1-f2py.patch b/numpy-1.0.1-f2py.patch
new file mode 100644
index 0000000..838ecfe
--- /dev/null
+++ b/numpy-1.0.1-f2py.patch
@@ -0,0 +1,27 @@
+--- numpy-1.0.1/numpy/f2py/f2py.1.f2pynumpy 2007-01-03 23:07:33.000000000 -0500
++++ numpy-1.0.1/numpy/f2py/f2py.1 2007-01-03 23:10:00.000000000 -0500
+@@ -180,11 +180,7 @@
+ .SH REQUIREMENTS
+ Python 1.5.2 or higher (2.x is supported).
+
+-Numerical Python 13 or higher (20.x,21.x,22.x,23.x are supported).
+-
+-Optional Numarray 0.9 or higher partially supported.
+-
+-numpy_distutils from Scipy (can be downloaded from F2PY homepage)
++numpy_distutils from Numpy
+ .SH "SEE ALSO"
+ python(1)
+ .SH BUGS
+@@ -200,10 +196,8 @@
+
+ Mailing list: http://cens.ioc.ee/mailman/listinfo/f2py-users/
+
+-Scipy website: http://www.numpy.org
++Numpy website: http://numeric.scipy.org/
+ .SH COPYRIGHT
+ Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005 Pearu Peterson
+ .SH LICENSE
+ NumPy License
+-.SH VERSION
+-2.45.241
diff --git a/python26-numpy.spec b/python26-numpy.spec
new file mode 100644
index 0000000..2322320
--- /dev/null
+++ b/python26-numpy.spec
@@ -0,0 +1,407 @@
+%global __python26 /usr/bin/python2.6
+%global python26_sitearch %{_libdir}/python2.6/site-packages
+
+# Fix byte-compilation:
+%define __os_install_post %{__python26_os_install_post}
+
+Name: python26-numpy
+Version: 1.5.1
+Release: 5%{?dist}
+Summary: A fast multi-dimensional array facility for Python
+
+Group: Development/Languages
+
+#The majority of numpy is BSD however:
+#numpy/core/_mx_datetime_parser.py includes eGenix public license 1.1.0.
+#which is based on the Python license.
+#numpy/lib/utils.py contains a SafeEval class which carries the Python license.
+#numpy/random/mtrand/{distributions.c,distributions.h,mtrand.pyx,randomkit.h}
+#carry MIT licenses.
+#numpy/random/mtrand/randomkit.c is a mixture of BSD and MIT licenses.
+License: BSD and Python and MIT and eGenix
+URL: http://numeric.scipy.org/
+Source0: http://downloads.sourceforge.net/numpy/numpy-%{version}.tar.gz
+Patch0: numpy-1.0.1-f2py.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: python26-devel
+BuildRequires: python26-distribute gcc-gfortran
+BuildRequires: atlas-devel python26-nose
+Requires: python(abi) = 2.6
+Requires: atlas
+
+%description
+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.
+
+There are also basic facilities for discrete fourier transform,
+basic linear algebra and random number generation. Also included in
+this package is a version of f2py that works properly with NumPy.
+
+%package devel
+Summary: Header files for creating C extension to Numpy
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: python26-distribute
+Requires: python26-devel
+
+%description devel
+The NumPy-devel package contains header files for creating C module
+extensions that can be loaded within python.
+
+%package tests
+Summary: Tests for Numpy distribute
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: python26-nose
+
+%description tests
+The NumPy-tests package contains tests for checking your
+numpy installation. Install this package to allow the
+following to work.
+
+python2.6 -c "import pkg_resources, numpy ; numpy.test()"
+
+%package f2py
+Summary: FORTRAN for python interface for numpy
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: python26-devel
+
+%description f2py
+This package includes a version of f2py that works properly with NumPy.
+
+%package f2py-tests
+Summary: Test suite for FORTRAN for python interface for numpy
+Group: Development/Libraries
+Requires: %{name}-f2py = %{version}-%{release}
+Requires: python26-devel
+Requires: %{name} = %{version}-%{release}
+
+%description f2py-tests
+This package includes a test suite for a version of f2py that works
+properly with NumPy.
+
+%prep
+%setup -q -n numpy-%{version}
+%patch0 -p1 -b .f2py
+# Adapt everything to use a particular python variant.
+find . -name '*.py' | xargs sed -i '1s|^#!%{_bindir}.*python$|#!%{__python26}|'
+sed -i 's|#!%{_bindir}/env %s|#!%{_bindir}/%s|' numpy/f2py/setup.py \
+ numpy/f2py/setupscons.py
+
+# Make some files utf8.
+for I in FAQ.txt THANKS.txt HISTORY.txt README.txt ; do
+ iconv -f iso8859-1 -t utf-8 numpy/f2py/docs/$I > $I.conv && mv -f $I.conv numpy/f2py/docs/$I
+done
+
+# Fix the man page.
+sed -i 's/TH "F2PY" 1/TH "F2PY26" 1/' numpy/f2py/f2py.1
+sed -i 's/ f2py/ f2py2.6/g' numpy/f2py/f2py.1
+
+%build
+# Build with fno-strict-aliasing due to warnings that
+# code breaks strict aliasing rules rhbz#619355.
+CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
+ %{__python26} setup.py build
+
+%install
+rm -rf %{buildroot}
+CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
+ %{__python26} setup.py install --root %{buildroot}
+rm -rf docs-f2py ; mv %{buildroot}%{python26_sitearch}/numpy/f2py/docs docs-f2py
+mv -f %{buildroot}%{python26_sitearch}/numpy/f2py/f2py.1 f2py.1
+rm -rf doc ; mv -f %{buildroot}%{python26_sitearch}/numpy/doc .
+install -D -p -m 0644 f2py.1 %{buildroot}%{_mandir}/man1/f2py2.6.1
+
+#symlink for includes, BZ 185079
+mkdir -p %{buildroot}/usr/include
+ln -s %{python26_sitearch}/numpy/core/include/numpy/ %{buildroot}/usr/include/python26-numpy
+
+# Remove doc files. They should be in %%doc
+rm -f %{buildroot}%{python26_sitearch}/numpy/COMPATIBILITY
+rm -f %{buildroot}%{python26_sitearch}/numpy/DEV_README.txt
+rm -f %{buildroot}%{python26_sitearch}/numpy/INSTALL.txt
+rm -f %{buildroot}%{python26_sitearch}/numpy/LICENSE.txt
+rm -f %{buildroot}%{python26_sitearch}/numpy/README.txt
+rm -f %{buildroot}%{python26_sitearch}/numpy/THANKS.txt
+rm -f %{buildroot}%{python26_sitearch}/numpy/site.cfg.example
+
+# Remove some hash bangs from libs that don't need to be there.
+find %{buildroot}%{python26_sitearch} -name '*.py' |
+ xargs sed -i '1s|#!%{__python26}||'
+
+# Set correct permissions on .so files.
+find %{buildroot}%{python26_sitearch} -name '*.so' |
+ xargs chmod 755
+
+# Some more dodgy #!s where there are not needed.
+sed -i '1s|#!.*||' %{buildroot}%{python26_sitearch}/numpy/core/scons_support.py \
+ %{buildroot}%{python26_sitearch}/numpy/ma/bench.py \
+ %{buildroot}%{python26_sitearch}/numpy/distutils/system_info.py
+
+%check
+pushd doc &> /dev/null
+PYTHONPATH="%{buildroot}%{python26_sitearch}" %{__python26} -c "import pkg_resources, numpy ; numpy.test()"
+popd &> /dev/null
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc doc/* LICENSE.txt README.txt THANKS.txt DEV_README.txt COMPATIBILITY site.cfg.example
+%dir %{python26_sitearch}/numpy
+%{python26_sitearch}/numpy/*.py*
+%dir %{python26_sitearch}/numpy/core/
+%{python26_sitearch}/numpy/core/*.py*
+%{python26_sitearch}/numpy/core/*.so
+%dir %{python26_sitearch}/numpy/numarray
+%{python26_sitearch}/numpy/numarray/*.py*
+%{python26_sitearch}/numpy/numarray/*.so
+%dir %{python26_sitearch}/numpy/fft/
+%{python26_sitearch}/numpy/fft/*.py*
+%{python26_sitearch}/numpy/fft/*.so
+%dir %{python26_sitearch}/numpy/lib/
+%{python26_sitearch}/numpy/lib/*.py*
+%{python26_sitearch}/numpy/lib/*.so
+%dir %{python26_sitearch}/numpy/lib/benchmarks/
+%{python26_sitearch}/numpy/lib/benchmarks/*.py*
+%dir %{python26_sitearch}/numpy/linalg/
+%{python26_sitearch}/numpy/linalg/*.py*
+%{python26_sitearch}/numpy/linalg/*.so
+%dir %{python26_sitearch}/numpy/ma/
+%{python26_sitearch}/numpy/ma/*.py*
+%dir %{python26_sitearch}/numpy/oldnumeric/
+%{python26_sitearch}/numpy/oldnumeric/*.py*
+%dir %{python26_sitearch}/numpy/random/
+%{python26_sitearch}/numpy/random/*.py*
+%{python26_sitearch}/numpy/random/*.so
+%dir %{python26_sitearch}/numpy/testing/
+%{python26_sitearch}/numpy/testing/*.py*
+%dir %{python26_sitearch}/numpy/tools/
+%{python26_sitearch}/numpy/tools/*.py*
+%dir %{python26_sitearch}/numpy/compat/
+%{python26_sitearch}/numpy/compat/*.py*
+%dir %{python26_sitearch}/numpy/matrixlib/
+%{python26_sitearch}/numpy/matrixlib/*.py*
+%dir %{python26_sitearch}/numpy/polynomial/
+%{python26_sitearch}/numpy/polynomial/*.py*
+%{python26_sitearch}/numpy-*.egg-info
+
+%files tests
+%defattr(-,root,root,-)
+%dir %{python26_sitearch}/numpy/core/tests/
+%{python26_sitearch}/numpy/core/tests/*.py*
+%{python26_sitearch}/numpy/core/tests/data/
+%dir %{python26_sitearch}/numpy/fft/tests/
+%{python26_sitearch}/numpy/fft/tests/*.py*
+%dir %{python26_sitearch}/numpy/lib/tests/
+%{python26_sitearch}/numpy/lib/tests/*.py*
+%dir %{python26_sitearch}/numpy/linalg/tests/
+%{python26_sitearch}/numpy/linalg/tests/*.py*
+%dir %{python26_sitearch}/numpy/ma/tests/
+%{python26_sitearch}/numpy/ma/tests/*.py*
+%dir %{python26_sitearch}/numpy/oldnumeric/tests/
+%{python26_sitearch}/numpy/oldnumeric/tests/*.py*
+%dir %{python26_sitearch}/numpy/random/tests/
+%{python26_sitearch}/numpy/random/tests/*.py*
+%dir %{python26_sitearch}/numpy/testing/tests/
+%{python26_sitearch}/numpy/testing/tests/*.py*
+%dir %{python26_sitearch}/numpy/tests/
+%{python26_sitearch}/numpy/tests/*.py*
+%dir %{python26_sitearch}/numpy/matrixlib/tests
+%{python26_sitearch}/numpy/matrixlib/tests/*.py*
+%dir %{python26_sitearch}/numpy/polynomial/tests/
+%{python26_sitearch}/numpy/polynomial/tests/*.py*
+
+
+%files devel
+%defattr(-,root,root,-)
+%{python26_sitearch}/numpy/distutils
+%{_includedir}/python26-numpy
+%dir %{python26_sitearch}/numpy/core/include
+%dir %{python26_sitearch}/numpy/core/include/numpy
+%{python26_sitearch}/numpy/core/include/numpy/*.h
+%{python26_sitearch}/numpy/core/include/numpy/*.txt
+%{python26_sitearch}/numpy/random/*.h
+%{python26_sitearch}/numpy/core/lib
+%dir %{python26_sitearch}/numpy/numarray/include
+%dir %{python26_sitearch}/numpy/numarray/include/numpy
+%{python26_sitearch}/numpy/numarray/include/numpy/*.h
+
+%files f2py
+%defattr(-,root,root,-)
+%{_mandir}/man*/*
+%{_bindir}/f2py2.6
+%dir %{python26_sitearch}/numpy/f2py/
+%{python26_sitearch}/numpy/f2py/*.py*
+%dir %{python26_sitearch}/numpy/f2py/tests/
+%{python26_sitearch}/numpy/f2py/tests/*.py*
+%{python26_sitearch}/numpy/f2py/src/
+%{python26_sitearch}/numpy/f2py/tests/src/
+%doc docs-f2py
+
+%files f2py-tests
+%defattr(-,root,root,-)
+%dir %{python26_sitearch}/numpy/f2py/tests/
+%{python26_sitearch}/numpy/f2py/tests/*.py*
+%{python26_sitearch}/numpy/f2py/tests/src/
+
+%changelog
+* Thu Jun 16 2011 Steve Traylen <steve.traylen at cern.ch> - 1.5.1-5
+- Add eGenix license, rhbz#619355
+
+* Mon May 23 2011 Steve Traylen <steve.traylen at cern.ch> - 1.5.1-4
+- Correct license to Python and MIT and BSD.
+
+* Sat Apr 3 2011 Steve Traylen <steve.traylen at cern.ch> - 1.5.1-3
+- Add fno-strict-alias to compile - see rhbz#619355.
+- Remove BR of lapack - see rhbz#478856.
+- Add Requires of atlas - see rhbz#478856.
+
+* Tue Feb 1 2011 Steve Traylen <steve.traylen at cern.ch> - 1.5.1-2
+- Move header files and distutils file out to a devel package,
+ rhbz#619355.
+- Move tests files out to a tests package,
+ rhbz#619355.
+- Move f2py documents to f2py package.
+
+* Mon Dec 15 2010 Steve Traylen <steve.traylen at cern.ch> - 1.5.1-1
+- Update to new 1.5.1 upstream.
+- Hardcode alternative python as 26 everywhere.
+
+* Thu Jun 24 2010 Steve Traylen <steve.traylen at cern.ch> - 1.4.1-1
+- Adapt F14 .spec file to python26 in EPEL5.
+- New upstream 1.4.1-1
+
+* Mon Apr 26 2010 Jon Ciesla <limb at jcomserv.net> 1.3.0-8
+- Moved distutils back to the main package, BZ 572820.
+
+* Thu Apr 08 2010 Jon Ciesla <limb at jcomserv.net> 1.3.0-7
+- Reverted to 1.3.0 after upstream pulled 1.4.0, BZ 579065.
+
+* Tue Mar 02 2010 Jon Ciesla <limb at jcomserv.net> 1.4.0-5
+- Linking /usr/include/numpy to .h files, BZ 185079.
+
+* Tue Feb 16 2010 Jon Ciesla <limb at jcomserv.net> 1.4.0-4
+- Re-enabling atlas BR, dropping lapack Requires.
+
+* Wed Feb 10 2010 Jon Ciesla <limb at jcomserv.net> 1.4.0-3
+- Since the previous didn't work, Requiring lapack.
+
+* Tue Feb 09 2010 Jon Ciesla <limb at jcomserv.net> 1.4.0-2
+- Temporarily dropping atlas BR to work around 562577.
+
+* Fri Jan 22 2010 Jon Ciesla <limb at jcomserv.net> 1.4.0-1
+- 1.4.0.
+- Dropped ARM patch, ARM support added upstream.
+
+* Tue Nov 17 2009 Jitesh Shah <jiteshs at marvell.com> - 1.3.0-6.fa1
+- Add ARM support
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.0-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Jun 11 2009 Jon Ciesla <limb at jcomserv.net> 1.3.0-5
+- Fixed atlas BR, BZ 505376.
+
+* Fri Apr 17 2009 Jon Ciesla <limb at jcomserv.net> 1.3.0-4
+- EVR bump for pygame chainbuild.
+
+* Fri Apr 17 2009 Jon Ciesla <limb at jcomserv.net> 1.3.0-3
+- Moved linalg, fft back to main package.
+
+* Tue Apr 14 2009 Jon Ciesla <limb at jcomserv.net> 1.3.0-2
+- Split out f2py into subpackage, thanks Peter Robinson pbrobinson at gmail.com.
+
+* Tue Apr 07 2009 Jon Ciesla <limb at jcomserv.net> 1.3.0-1
+- Update to latest upstream.
+- Fixed Source0 URL.
+
+* Thu Apr 02 2009 Jon Ciesla <limb at jcomserv.net> 1.3.0-0.rc1
+- Update to latest upstream.
+
+* Thu Mar 05 2009 Jon Ciesla <limb at jcomserv.net> 1.2.1-3
+- Require python-devel, BZ 488464.
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Dec 19 2008 Jon Ciesla <limb at jcomserv.net> 1.2.1-1
+- Update to 1.2.1.
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 1.2.0-2
+- Rebuild for Python 2.6
+
+* Tue Oct 07 2008 Jon Ciesla <limb at jcomserv.net> 1.2.0-1
+- New upstream release, added python-nose BR. BZ 465999.
+- Using atlas blas, not blas-devel. BZ 461472.
+
+* Wed Aug 06 2008 Jon Ciesla <limb at jcomserv.net> 1.1.1-1
+- New upstream release
+
+* Thu May 29 2008 Jarod Wilson <jwilson at redhat.com> 1.1.0-1
+- New upstream release
+
+* Tue May 06 2008 Jarod Wilson <jwilson at redhat.com> 1.0.4-1
+- New upstream release
+
+* Mon Feb 11 2008 Jarod Wilson <jwilson at redhat.com> 1.0.3.1-2
+- Add python egg to %%files on f9+
+
+* Wed Aug 22 2007 Jarod Wilson <jwilson at redhat.com> 1.0.3.1-1
+- New upstream release
+
+* Wed Jun 06 2007 Jarod Wilson <jwilson at redhat.com> 1.0.3-1
+- New upstream release
+
+* Mon May 14 2007 Jarod Wilson <jwilson at redhat.com> 1.0.2-2
+- Drop BR: atlas-devel, since it just provides binary-compat
+ blas and lapack libs. Atlas can still be optionally used
+ at runtime. (Note: this is all per the atlas maintainer).
+
+* Mon May 14 2007 Jarod Wilson <jwilson at redhat.com> 1.0.2-1
+- New upstream release
+
+* Tue Apr 17 2007 Jarod Wilson <jwilson at redhat.com> 1.0.1-4
+- Update gfortran patch to recognize latest gfortran f95 support
+- Resolves rhbz#236444
+
+* Fri Feb 23 2007 Jarod Wilson <jwilson at redhat.com> 1.0.1-3
+- Fix up cpuinfo bug (#229753). Upstream bug/change:
+ http://projects.scipy.org/scipy/scipy/ticket/349
+
+* Thu Jan 04 2007 Jarod Wilson <jwilson at redhat.com> 1.0.1-2
+- Per discussion w/Jose Matos, Obsolete/Provide f2py, as the
+ stand-alone one is no longer supported/maintained upstream
+
+* Wed Dec 13 2006 Jarod Wilson <jwilson at redhat.com> 1.0.1-1
+- New upstream release
+
+* Tue Dec 12 2006 Jarod Wilson <jwilson at redhat.com> 1.0-2
+- Rebuild for python 2.5
+
+* Wed Oct 25 2006 Jarod Wilson <jwilson at redhat.com> 1.0-1
+- New upstream release
+
+* Tue Sep 06 2006 Jarod Wilson <jwilson at redhat.com> 0.9.8-1
+- New upstream release
+
+* Wed Apr 26 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.9.6-1
+- Upstream update
+
+* Thu Feb 16 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.9.5-1
+- Upstream update
+
+* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.9.4-2
+- Rebuild for Fedora Extras 5
+
+* Thu Feb 2 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.9.4-1
+- Initial RPM release
+- Added gfortran patch from Neal Becker
+
diff --git a/sources b/sources
index e69de29..e524293 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+376ef150df41b5353944ab742145352d numpy-1.5.1.tar.gz
More information about the scm-commits
mailing list