Bump to 1.26.2 sandbox/python3-numpy_1.26.2
authorTizenOpenSource <tizenopensrc@samsung.com>
Wed, 7 Feb 2024 05:43:27 +0000 (14:43 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Wed, 7 Feb 2024 05:43:27 +0000 (14:43 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
.gitignore [deleted file]
doc/source/_static/scipy-mathjax/.gitignore [deleted file]
packaging/python3-numpy.manifest [new file with mode: 0644]
packaging/python3-numpy.spec [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 3de77eb..0000000
+++ /dev/null
@@ -1,233 +0,0 @@
-# Editor temporary/working/backup files #
-#########################################
-.#*
-[#]*#
-*~
-*$
-*.bak
-*.diff
-.idea/
-*.iml
-*.ipr
-*.iws
-*.org
-.project
-pmip
-*.rej
-.settings/
-.*.sw[nop]
-.sw[nop]
-*.tmp
-*.vim
-.vscode
-tags
-cscope.out
-# gnu global
-GPATH
-GRTAGS
-GSYMS
-GTAGS
-.cache
-.mypy_cache/
-
-# Compiled source #
-###################
-*.a
-*.com
-*.class
-*.dll
-*.exe
-*.o
-*.o.d
-*.py[ocd]
-*.so
-
-# Packages #
-############
-# it's better to unpack these files and commit the raw source
-# git has its own built in compression methods
-*.7z
-*.bz2
-*.bzip2
-*.dmg
-*.gz
-*.iso
-*.jar
-*.rar
-*.tar
-*.tbz2
-*.tgz
-*.zip
-
-# Python files #
-################
-# meson build/installation directories
-build
-build-install
-# meson python output
-.mesonpy-native-file.ini
-# sphinx build directory
-_build
-# setup.py dist directory
-dist
-doc/build
-doc/docenv
-doc/cdoc/build
-# Egg metadata
-*.egg-info
-# The shelf plugin uses this dir
-./.shelf
-MANIFEST
-.cache
-pip-wheel-metadata
-.python-version
-
-# Paver generated files #
-#########################
-/release
-
-# Logs and databases #
-######################
-*.log
-*.sql
-*.sqlite
-
-# Patches #
-###########
-*.patch
-*.diff
-
-# OS generated files #
-######################
-.DS_Store*
-.VolumeIcon.icns
-.fseventsd
-Icon?
-.gdb_history
-ehthumbs.db
-Thumbs.db
-.directory
-
-# pytest generated files #
-##########################
-/.pytest_cache
-
-# doc build generated files #
-#############################
-doc/source/savefig/
-
-
-# Things specific to this project #
-###################################
-# The line below should change to numpy/_version.py for NumPy 2.0
-numpy/version.py
-numpy/core/__svn_version__.py
-doc/numpy.scipy.org/_build
-numpy/__config__.py
-numpy/core/include/numpy/__multiarray_api.h
-numpy/core/include/numpy/__ufunc_api.h
-numpy/core/include/numpy/_numpyconfig.h
-site.cfg
-.tox
-numpy/core/include/numpy/__multiarray_api.c
-numpy/core/include/numpy/__ufunc_api.c
-numpy/core/include/numpy/__umath_generated.c
-numpy/core/include/numpy/_umath_doc_generated.h
-numpy/core/include/numpy/config.h
-numpy/core/lib/
-numpy/core/src/common/npy_sort.h
-numpy/core/src/common/templ_common.h
-numpy/core/src/multiarray/_multiarray_tests.c
-numpy/core/src/multiarray/arraytypes.c
-numpy/core/src/multiarray/einsum.c
-numpy/core/src/multiarray/einsum_sumprod.c
-numpy/core/src/multiarray/lowlevel_strided_loops.c
-numpy/core/src/multiarray/multiarray_tests.c
-numpy/core/src/multiarray/nditer_templ.c
-numpy/core/src/multiarray/scalartypes.c
-numpy/core/src/multiarray/textreading/tokenize.c
-numpy/core/src/npymath/ieee754.c
-numpy/core/src/npymath/npy_math_complex.c
-numpy/core/src/npymath/npy_math_internal.h
-numpy/core/src/npysort/binsearch.c
-numpy/core/src/npysort/heapsort.c
-numpy/core/src/npysort/mergesort.c
-numpy/core/src/npysort/quicksort.c
-numpy/core/src/npysort/radixsort.c
-numpy/core/src/npysort/selection.c
-numpy/core/src/npysort/timsort.c
-numpy/core/src/npysort/sort.c
-numpy/core/src/private/npy_binsearch.h
-numpy/core/src/private/npy_partition.h
-numpy/core/src/private/templ_common.h
-numpy/core/src/umath/_umath_tests.c
-numpy/core/src/umath/scalarmath.c
-numpy/core/src/umath/funcs.inc
-numpy/core/src/umath/clip.[ch]
-numpy/core/src/umath/loops.[ch]
-numpy/core/src/umath/matmul.[ch]
-numpy/core/src/umath/operand_flag_tests.c
-numpy/core/src/umath/simd.inc
-numpy/core/src/umath/struct_ufunc_test.c
-numpy/core/src/umath/test_rational.c
-numpy/core/src/umath/umath_tests.c
-numpy/core/src/umath/loops_utils.h
-numpy/core/src/umath/loops_modulo.dispatch.c
-numpy/distutils/__config__.py
-numpy/linalg/umath_linalg.c
-doc/source/**/generated/
-benchmarks/results
-benchmarks/html
-benchmarks/env
-benchmarks/numpy
-benchmarks/_asv_compare.conf.json
-test.obj
-# cythonized files
-cythonize.dat
-numpy/random/_mtrand/_mtrand.c
-numpy/random/*.c
-numpy/random/legacy/*.c
-numpy/random/_mtrand/randint_helpers.pxi
-numpy/random/bounded_integers.pyx
-numpy/random/bounded_integers.pxd
-numpy/random/lib/npyrandom.lib
-tools/swig/test/Array_wrap.cxx
-tools/swig/test/Farray_wrap.cxx
-tools/swig/test/Farray.py
-tools/swig/test/Flat_wrap.cxx
-tools/swig/test/Flat.py
-tools/swig/test/Fortran_wrap.cxx
-tools/swig/test/Fortran.py
-tools/swig/test/Matrix_wrap.cxx
-tools/swig/test/Matrix.py
-tools/swig/test/Tensor_wrap.cxx
-tools/swig/test/Tensor.py
-tools/swig/test/Vector.py
-tools/swig/test/Vector_wrap.cxx
-tools/swig/test/Array.py
-
-# SIMD generated files #
-###################################
-# _simd module
-numpy/core/src/_simd/_simd.dispatch.c
-numpy/core/src/_simd/_simd_data.inc
-numpy/core/src/_simd/_simd_inc.h
-# umath module
-numpy/core/src/umath/loops_unary.dispatch.c
-numpy/core/src/umath/loops_unary_fp.dispatch.c
-numpy/core/src/umath/loops_unary_fp_le.dispatch.c
-numpy/core/src/umath/loops_arithm_fp.dispatch.c
-numpy/core/src/umath/loops_arithmetic.dispatch.c
-numpy/core/src/umath/loops_logical.dispatch.c
-numpy/core/src/umath/loops_minmax.dispatch.c
-numpy/core/src/umath/loops_trigonometric.dispatch.c
-numpy/core/src/umath/loops_exponent_log.dispatch.c
-numpy/core/src/umath/loops_umath_fp.dispatch.c
-numpy/core/src/umath/loops_hyperbolic.dispatch.c
-numpy/core/src/umath/loops_modulo.dispatch.c
-numpy/core/src/umath/loops_comparison.dispatch.c
-numpy/core/src/umath/loops_unary_complex.dispatch.c
-numpy/core/src/umath/loops_autovec.dispatch.c
-# multiarray module
-numpy/core/src/multiarray/argfunc.dispatch.c
-numpy/core/src/multiarray/arraytypes.h
diff --git a/doc/source/_static/scipy-mathjax/.gitignore b/doc/source/_static/scipy-mathjax/.gitignore
deleted file mode 100644 (file)
index 7d5b7a9..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-/build
-/node_modules
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..61538d8
--- /dev/null
@@ -0,0 +1,94 @@
+%global debug_package %{nil}
+
+Name:           python3-numpy
+Version:        1.26.2
+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
+
+BuildRequires:  meson
+BuildRequires:  ninja
+
+%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} || exit 0
+
+%remove_docs
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license LICENSE.txt
+%{python3_sitearch}/numpy/*
+%{python3_sitearch}/numpy-%{version}-py*.egg-info
+
+%exclude %{python3_sitearch}/numpy/distutils/checks/*.c
+%exclude %{python3_sitearch}/numpy/f2py/src/*.c
+%exclude %{python3_sitearch}/numpy/f2py/tests/src/array_from_pyobj/*.c
+%exclude %{python3_sitearch}/numpy/core/tests/examples/limited_api/*.c
+%exclude %{python3_sitearch}/numpy/f2py/src/*.h
+%exclude %{python3_sitearch}/numpy/core/include/numpy/*.h
+%exclude %{python3_sitearch}/numpy/core/lib/libnpymath.a
+%exclude %{python3_sitearch}/numpy/random/lib/libnpyrandom.a
+
+%files devel
+%license LICENSE.txt
+%{python3_sitearch}/numpy/distutils/checks/*.c
+%{python3_sitearch}/numpy/f2py/src/*.c
+%{python3_sitearch}/numpy/f2py/tests/src/array_from_pyobj/*.c
+%{python3_sitearch}/numpy/core/tests/examples/limited_api/*.c
+%{python3_sitearch}/numpy/f2py/src/*.h
+%{python3_sitearch}/numpy/core/include/numpy/*.h
+%{python3_sitearch}/numpy/core/lib/libnpymath.a
+%{python3_sitearch}/numpy/random/lib/libnpyrandom.a
+
+%changelog