path: root/packaging
diff options
Diffstat (limited to 'packaging')
2 files changed, 105 insertions, 0 deletions
diff --git a/packaging/python-numpy.manifest b/packaging/python-numpy.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/python-numpy.manifest
@@ -0,0 +1,5 @@
+ <request>
+ <domain name="_"/>
+ </request>
diff --git a/packaging/python-numpy.spec b/packaging/python-numpy.spec
new file mode 100644
index 0000000..fa4453a
--- /dev/null
+++ b/packaging/python-numpy.spec
@@ -0,0 +1,100 @@
+Name: python-numpy
+Version: 1.15.0
+Release: 0
+Summary: NumPy array processing for numbers, strings, records and objects
+License: BSD-3-Clause
+Group: Development/Libraries/Python
+Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+BuildRequires: blas-devel
+BuildRequires: gcc-fortran
+BuildRequires: lapack-devel
+BuildRequires: unzip
+BuildRequires: python-cython
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: openblas-devel
+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
+Summary: Development files for numpy applications
+Group: Development/Libraries/Python
+Requires: %{name} = %{version}
+Requires: blas-devel
+BuildRequires: gcc-fortran
+Requires: lapack-devel
+Requires: python-devel
+Requires: openblas-devel
+%description devel
+This package contains files for developing applications using numpy.
+%setup -q
+cp %{SOURCE1001} .
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+/usr/bin/python2 build
+/usr/bin/python2 install --prefix=%{_prefix} --root=%{buildroot}
+# Remove testsuite from packaging
+rm -rf %{buildroot}%{python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests
+mkdir -p %{buildroot}%{_includedir}
+pushd %{buildroot}%{_includedir}
+ln -sf %{python_sitearch}/numpy/core/include/numpy numpy
+%manifest %{name}.manifest
+%doc *.txt
+%exclude %{python_sitearch}/numpy/*/*/*.c
+%exclude %{python_sitearch}/numpy/*/*.h
+%exclude %{python_sitearch}/numpy/*/*/*.h
+%exclude %{python_sitearch}/numpy/*/*/*/*.h
+%exclude %{python_sitearch}/numpy/core/lib/libnpymath.a
+%license LICENSE.txt
+%files devel
+%doc THANKS.txt