Ai
113 Star 1 Fork 42

src-openEuler/numpy
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
numpy.spec 5.98 KB
一键复制 编辑 原始数据 按行查看 历史
sunliqiang 提交于 2025-11-27 20:09 +08:00 . update to 2.3.5
%global modname numpy
Name: numpy
Version: 2.3.5
Release: 1
Epoch: 1
Summary: A fast multidimensional array facility for Python
License: BSD-3-Clause AND MIT AND Apache-2.0 AND (Zlib OR BSL-1.0)
URL: https://www.numpy.org/
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: openblas-devel
BuildRequires: lapack-devel gcc-gfortran
BuildRequires: python3-Cython >= 0.29.24 chrpath gcc-c++
BuildRequires: pyproject-rpm-macros python3-meson-python
BuildRequires: python3-pip python3-wheel
%description
NumPy is the fundamental package for scientific computing with Python. It contains among other things:
a powerful N-dimensional array object
sophisticated (broadcasting) functions
tools for integrating C/C++ and Fortran code
useful linear algebra, Fourier transform, and random number capabilities
Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases.
%package -n python3-numpy
Summary: A fast multidimensional array facility for Python
License: BSD-3-Clause
Requires: python3-numpy-f2py = %{epoch}:%{version}-%{release}
%{?python_provide:%python_provide python3-numpy}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
Provides: python3-numpy-doc
%description -n python3-numpy
NumPy is the fundamental package for scientific computing with Python. It contains among other things:
a powerful N-dimensional array object
sophisticated (broadcasting) functions
tools for integrating C/C++ and Fortran code
useful linear algebra, Fourier transform, and random number capabilities
Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases.
%package -n python3-numpy-f2py
Summary: f2py for numpy
Requires: python3-numpy = %{epoch}:%{version}-%{release}
Requires: python3-devel
Provides: python3-f2py = %{version}-%{release}
%{?python_provide:%python_provide python3-numpy-f2py}
%description -n python3-numpy-f2py
This package includes a version of f2py that works properly with NumPy.
%prep
%autosetup -n %{name}-%{version} -p1
rm numpy/distutils/command/__init__.py && touch numpy/distutils/command/__init__.py
cat >> site.cfg <<EOF
[openblas]
library_dirs = %{_libdir}
openblas_libs = openblasp
EOF
%build
%set_build_flags
%pyproject_wheel -Csetup-args=-Dblas=flexiblas -Csetup-args=-Dlapack=lapack -Ccompile-args=-v
%install
%pyproject3_install
pushd %{buildroot}%{_bindir} &> /dev/null
ln -s f2py f2py3
ln -s f2py f2py%{python3_version}
ln -s f2py3 f2py.numpy
popd &> /dev/null
mkdir -p %{buildroot}%{_includedir}
ln -s %{python3_sitearch}/%{name}/_core/include/numpy/ %{buildroot}%{_includedir}/numpy
%check
pushd doc &> /dev/null
PYTHONPATH="%{buildroot}%{python3_sitearch}" PYTHONDONTWRITEBYTECODE=1 \
%{__python3} -c "import pkg_resources, numpy ; numpy.test(verbose=2)"
popd &> /dev/null
%files -n python3-numpy
%license LICENSE.txt
%doc THANKS.txt
%{_bindir}/numpy-config
%{_includedir}/numpy
%dir %{python3_sitearch}/%{name}
%{python3_sitearch}/%{name}/*
%{python3_sitearch}/%{name}-*.dist-info
%exclude %{python3_sitearch}/%{name}/f2py
%exclude %{python3_sitearch}/%{name}/tests/
%exclude %{python3_sitearch}/%{name}/*/tests/
%files -n python3-numpy-f2py
%{_bindir}/f2py
%{_bindir}/f2py3
%{_bindir}/f2py.numpy
%{_bindir}/f2py%{python3_version}
%{python3_sitearch}/%{name}/f2py
%exclude %{python3_sitearch}/%{name}/f2py/tests/
%changelog
* Thu Nov 27 2025 sunliqiang <sunliqiang@kylinos.cn> - 1:2.3.5-1
- update to 2.3.5
* Fri Sep 05 2025 Funda Wang <fundawang@yeah.net> - 1:2.3.2-1
- update to 2.3.2
* Thu Aug 28 2025 yueyaoqiang <yueyaoqiang@kylinos.com> - 1:2.3.1-1
- Update to 2.3.1
* Sat Jul 26 2025 shixuantong <shixuantong1@h-partners.com> - 1:2.3.0-2
- add python3-numpy runtime dependency python3-numpy-f2py
* Wed Jun 18 2025 yaoxin <1024769339@qq.com> - 1:2.3.0-1
- Update to 2.3.0 for fix build failure
* Fri Nov 29 2024 zhang_wenyu1 <zhang_wenyu@hoperun.com> - 1:1.26.4-1
- Update to 1.26.4
* Thu Feb 22 2024 shixuantong <shixuantong1@huawei.com> - 1:1.24.3-3
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:remove f2py form python3-numpy package. It is in python3-numpy-f2py
Do not pack open-source test case files
* Wed Jan 31 2024 xu_ping <707078654@qq.com> - 1:1.24.3-2
- adapted Cython upgrade version to 3.0.8
* Wed Jul 19 2023 xu_ping <707078654@qq.com> - 1:1.24.3-1
- Upgrade to 1.24.3
* Fri Feb 17 2023 wulei <wulei80@h-partners.com> - 1:1.21.4-6
- Delete rpath
* Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 1.21.4-5
- Type:feature
- CVE:NA
- SUG:NA
- DESC:Add loongarch64 support
* Tue May 31 2022 huangduirong <huangduirong@huawei.com> - 1.21.4-4
- Type:CVE
- ID:CVE-2021-34141
- SUGA:NA
- DESC:fix CVE-2021-34141
* Tue Feb 08 2022 renhongxun <renhongxun@h-partners.com> - 1.21.4-3
- fix CVE-2021-41495
* Wed Jan 05 2022 yuanxin <yuanxin24@huawei.com> - 1.21.4-2
- fix CVE-2021-41496
* Mon Dec 13 2021 shixuantong <shixuantong@huawei.com> - 1.21.4-1
- update version to 1.21.4
* Tue Aug 24 2021 wulei<wulei80@huawei.com> - 1.18.5-1
- update to 1.18.5
* Mon Jan 18 2021 tianwei<tianwei12@huawei.com> - 1.16.5-6
- Type:NA
- ID:N/A
- SUGA:NA
- DESC:fix package files
* Fri Oct 30 2020 tianwei<tianwei12@huawei.com> - 1.16.5-5
- Type:NA
- ID:N/A
- SUGA:NA
- DESC:remove python2
* Tue Sep 22 2020 shixuantong<shixuantong> - 1.16.5-4
- Type:NA
- ID:N/A
- SUGA:NA
- DESC:remove python-nose
* Sat Jun 20 2020 fuyangqing<fuyangqing@huawei.com> - 1.16.5-3
- Type:bugfix
- ID:N/A
- SUGA:NA
- DESC:change spec hardcode the dependent python version number
* Tue Oct 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.16.5-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/numpy.git
git@gitee.com:src-openeuler/numpy.git
src-openeuler
numpy
numpy
master

搜索帮助