diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2020-12-31 10:56:32 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2020-12-31 10:59:32 +0900 |
commit | 6a657889fea1f0fdcc358b1604aadfa172b9dd12 (patch) | |
tree | 0936e330f4ec7eb368533b77e97f20c3c771dac7 | |
parent | d5925ce9bd335463f9561bdd10271fee77d2b9af (diff) | |
download | python-numpy-tizen_6.5.tar.gz python-numpy-tizen_6.5.tar.bz2 python-numpy-tizen_6.5.zip |
Bump to numpy 1.16.6tizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163601submit/tizen/20210104.020415accepted/tizen/unified/20210104.130249accepted/tizen/6.5/unified/20211028.230815tizen_6.5sandbox/wangbiao/qemu-5.2sandbox/dh0128.kwak/numpy-1.16.6_20201231accepted/tizen_6.5_unified
Change-Id: I7a5220e5a0002dd8789deed8b7582fd87b8d36da
-rw-r--r-- | packaging/python-numpy.manifest | 5 | ||||
-rw-r--r-- | packaging/python-numpy.spec | 99 |
2 files changed, 104 insertions, 0 deletions
diff --git a/packaging/python-numpy.manifest b/packaging/python-numpy.manifest new file mode 100644 index 000000000..017d22d3a --- /dev/null +++ b/packaging/python-numpy.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/python-numpy.spec b/packaging/python-numpy.spec new file mode 100644 index 000000000..f84e03d3b --- /dev/null +++ b/packaging/python-numpy.spec @@ -0,0 +1,99 @@ +Name: python-numpy +Version: 1.16.6 +Release: 0 +Summary: NumPy array processing for numbers, strings, records and objects +License: BSD-3-Clause +Group: Development/Libraries/Python +Url: http://www.numpy.org/ +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 + + +%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 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. + + +%prep +%setup -q +cp %{SOURCE1001} . + + +%build +export CFLAGS="%{optflags} -fno-strict-aliasing" +/usr/bin/python2 setup.py build + + +%install +/usr/bin/python2 setup.py 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 +popd + +%post + + +%files +%manifest %{name}.manifest +%defattr(-,root,root) +%license LICENSE.txt +%doc *.txt +%{_bindir}/f2py +%{_bindir}/f2py2* +%{python_sitearch}/numpy/ +%{python_sitearch}/numpy-%{version}-py*.egg-info +%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 + + +%files devel +%defattr(-,root,root) +%license LICENSE.txt +%doc README.md THANKS.txt +%{python_sitearch}/numpy/*/*/*.c +%{python_sitearch}/numpy/*/*.h +%{python_sitearch}/numpy/*/*/*.h +%{python_sitearch}/numpy/*/*/*/*.h +%{python_sitearch}/numpy/core/lib/libnpymath.a +%{_includedir}/numpy + +%changelog |