summaryrefslogtreecommitdiff
path: root/python-numpy.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-21 10:09:52 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-21 10:09:52 +0000
commit8f15268460c217df99a3f0e6bfc47c2a677c94e1 (patch)
tree77b5ce128851feb13271493033c4a3de960f5d72 /python-numpy.spec
parent50cee5e1e0d16edd80ec0d5ff2acb79e138aad74 (diff)
automatic import of python-numpyopeneuler20.03
Diffstat (limited to 'python-numpy.spec')
-rw-r--r--python-numpy.spec86
1 files changed, 86 insertions, 0 deletions
diff --git a/python-numpy.spec b/python-numpy.spec
new file mode 100644
index 0000000..1dce4e9
--- /dev/null
+++ b/python-numpy.spec
@@ -0,0 +1,86 @@
+%global _empty_manifest_terminate_build 0
+Name: python-numpy
+Version: 1.24.2
+Release: 1
+Summary: Fundamental package for array computing in Python
+License: BSD-3-Clause
+URL: https://www.numpy.org
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e4/a9/6704bb5e1d1d778d3a6ee1278a8d8134f0db160e09d52863a24edb58eab5/numpy-1.24.2.tar.gz
+
+
+%description
+NumPy is a community-driven open source project developed by a diverse group of
+[contributors](https://numpy.org/teams/). The NumPy leadership has made a strong
+commitment to creating an open, inclusive, and positive community. Please read the
+[NumPy Code of Conduct](https://numpy.org/code-of-conduct/) for guidance on how to interact
+with others in a way that makes our community thrive.
+
+%package -n python3-numpy
+Summary: Fundamental package for array computing in Python
+Provides: python-numpy
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-numpy
+NumPy is a community-driven open source project developed by a diverse group of
+[contributors](https://numpy.org/teams/). The NumPy leadership has made a strong
+commitment to creating an open, inclusive, and positive community. Please read the
+[NumPy Code of Conduct](https://numpy.org/code-of-conduct/) for guidance on how to interact
+with others in a way that makes our community thrive.
+
+%package help
+Summary: Development documents and examples for numpy
+Provides: python3-numpy-doc
+%description help
+NumPy is a community-driven open source project developed by a diverse group of
+[contributors](https://numpy.org/teams/). The NumPy leadership has made a strong
+commitment to creating an open, inclusive, and positive community. Please read the
+[NumPy Code of Conduct](https://numpy.org/code-of-conduct/) for guidance on how to interact
+with others in a way that makes our community thrive.
+
+%prep
+%autosetup -n numpy-1.24.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-numpy -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Apr 21 2023 Python_Bot <Python_Bot@openeuler.org> - 1.24.2-1
+- Package Spec generated