diff options
author | Tae-Young Chung <ty83.chung@samsung.com> | 2018-03-28 16:09:24 +0900 |
---|---|---|
committer | Tae-Young Chung <ty83.chung@samsung.com> | 2018-03-28 16:09:35 +0900 |
commit | 20a6949983416982041dbb08cb7102464b1f2271 (patch) | |
tree | 57e3c117e7cabc61329280e050dd84534633fc42 | |
parent | 67c496783a583b1ab1cb445a497f2715e94ed9d4 (diff) | |
download | python-numpy-accepted/tizen_5.0_unified.tar.gz python-numpy-accepted/tizen_5.0_unified.tar.bz2 python-numpy-accepted/tizen_5.0_unified.zip |
Packaging: add a spec file for Tizen buildtizen_5.5.m2_releasesubmit/tizen_5.5_wearable_hotfix/20201026.184308submit/tizen_5.5_mobile_hotfix/20201026.185108submit/tizen_5.5/20191031.000008submit/tizen_5.0/20181101.000008submit/tizen/20180427.021440submit/tizen/20180425.040915accepted/tizen/unified/20180430.072056accepted/tizen/5.5/unified/wearable/hotfix/20201027.104150accepted/tizen/5.5/unified/mobile/hotfix/20201027.071529accepted/tizen/5.5/unified/20191031.012605accepted/tizen/5.0/unified/20181102.025715tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unified
Change-Id: Id091a306b3e0a2682dd5c8910c85a54fd5d64b43
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
-rw-r--r-- | .gbs.conf | 3 | ||||
-rw-r--r-- | packaging/python-numpy.manifest | 5 | ||||
-rw-r--r-- | packaging/python-numpy.spec | 100 | ||||
-rwxr-xr-x | setup.py | 2 |
4 files changed, 109 insertions, 1 deletions
diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 000000000..a0cb960a7 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream-git +upstream_tag = v${upstreamversion} 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..fa4453a23 --- /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 +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) +%doc *.txt +%{_bindir}/f2py +%{_bindir}/f2py2 +%{_bindir}/conv-template +%{_bindir}/from-template +%{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 +%license LICENSE.txt + + +%files devel +%defattr(-,root,root) +%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 @@ -64,7 +64,7 @@ Operating System :: MacOS MAJOR = 1 MINOR = 15 MICRO = 0 -ISRELEASED = False +ISRELEASED = True VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) |