Bump to python3-numpy 1.23.1 18/277918/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix sandbox/dh0128.kwak/python3-numpy-1.23.1-20220715 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063020 accepted/tizen/7.0/unified/hotfix/20221116.111358 accepted/tizen/unified/20220718.140432 submit/tizen/20220714.062314 submit/tizen/20220715.063415 tizen_7.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 15 Jul 2022 04:55:11 +0000 (13:55 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 15 Jul 2022 04:55:11 +0000 (13:55 +0900)
Change-Id: Ic47704dd551a037ac8c9d587cb58114a39a69648

packaging/python3-numpy.manifest [new file with mode: 0644]
packaging/python3-numpy.spec [new file with mode: 0644]

diff --git a/packaging/python3-numpy.manifest b/packaging/python3-numpy.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python3-numpy.spec b/packaging/python3-numpy.spec
new file mode 100644 (file)
index 0000000..672b2aa
--- /dev/null
@@ -0,0 +1,89 @@
+Name:           python3-numpy
+Version:        1.23.1
+Release:        0
+Summary:        NumPy array processing for numbers, strings, records and objects
+License:        BSD-3-Clause
+Group:          Development/Libraries/Python3
+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:  pkgconfig(python3)
+BuildRequires:  python3-cython
+BuildRequires:  python3-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/Python3
+Requires:       %{name} = %{version}
+Requires:       blas-devel
+BuildRequires:  gcc-fortran
+Requires:       lapack-devel
+Requires:       python3-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"
+export G_SLICE=always-malloc
+%{_bindir}/python3 setup.py build
+
+%install
+%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+# Remove testsuite from packaging
+rm -rf %{buildroot}%{python3_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests
+
+mkdir -p %{buildroot}%{_includedir}
+pushd %{buildroot}%{_includedir}
+ln -sf %{python3_sitearch}/numpy/core/include/numpy numpy
+popd
+
+%remove_docs
+
+%post
+
+%files
+%manifest %{name}.manifest
+%license LICENSE.txt
+%{_bindir}/f2py
+%{_bindir}/f2py3*
+%{python3_sitearch}/numpy/
+%{python3_sitearch}/numpy-%{version}-py*.egg-info
+%exclude %{python3_sitearch}/numpy/*/*/*.c
+%exclude %{python3_sitearch}/numpy/*/*/*.h
+%exclude %{python3_sitearch}/numpy/*/*/*/*.h
+%exclude %{python3_sitearch}/numpy/core/lib/libnpymath.a
+
+%files devel
+%license LICENSE.txt
+%{python3_sitearch}/numpy/*/*/*.c
+%{python3_sitearch}/numpy/*/*/*.h
+%{python3_sitearch}/numpy/*/*/*/*.h
+%{python3_sitearch}/numpy/core/lib/libnpymath.a
+%{_includedir}/numpy
+
+%changelog