diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-04 13:48:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-04 13:48:20 +0000 |
commit | dfb40c4346d4b3bbcbdee019e77912623c7b40c0 (patch) | |
tree | b40c7958d48788e7c9734371253326332a65a980 | |
parent | 6143d20b2b143d9eb3e7133546d283ad409e8655 (diff) |
automatic import of python-numpy
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-numpy.spec | 86 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 88 insertions, 0 deletions
@@ -0,0 +1 @@ +/numpy-1.25.0.tar.gz diff --git a/python-numpy.spec b/python-numpy.spec new file mode 100644 index 0000000..6ec502c --- /dev/null +++ b/python-numpy.spec @@ -0,0 +1,86 @@ +%global _empty_manifest_terminate_build 0 +Name: python-numpy +Version: 1.25.0 +Release: 1 +Summary: Fundamental package for array computing in Python +License: BSD-3-Clause +URL: https://www.numpy.org +Source0: https://mirrors.aliyun.com/pypi/web/packages/d0/b2/fe774844d1857804cc884bba67bec38f649c99d0dc1ee7cbbf1da601357c/numpy-1.25.0.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.25.0 + +%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 +* Tue Jul 04 2023 Python_Bot <Python_Bot@openeuler.org> - 1.25.0-1 +- Package Spec generated @@ -0,0 +1 @@ +b236497153bc19b4a560ac485e4c2754 numpy-1.25.0.tar.gz |