diff --git a/0001-oldest-supported-numpy-2023.8.3.patch b/0001-oldest-supported-numpy-2023.8.3.patch new file mode 100644 index 0000000000000000000000000000000000000000..5534e657f68d500433175b4fb29a79149b06ca41 --- /dev/null +++ b/0001-oldest-supported-numpy-2023.8.3.patch @@ -0,0 +1,25 @@ +From 2ef1e5a1868d79ff740b990356c8948290fb9436 Mon Sep 17 00:00:00 2001 +From: zhangchao13 +Date: Mon, 18 Sep 2023 15:39:00 +0800 +Subject: [PATCH] oldest-supported-numpy-2023.8.3 + +--- + setup.cfg | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.cfg b/setup.cfg +index a946a72..d9edcc0 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -35,7 +35,7 @@ install_requires = + numpy==1.17.3; python_version=='3.8' and platform_machine not in 'arm64|aarch64|s390x|loongarch64' and platform_python_implementation != 'PyPy' + numpy==1.19.3; python_version=='3.9' and platform_system not in 'OS400' and platform_machine not in 'arm64|loongarch64' + numpy==1.21.6; python_version=='3.10' and platform_machine!='loongarch64' +- numpy==1.23.2; python_version=='3.11' ++ numpy; python_version=='3.11' + + numpy==1.19.0; python_version=='3.6' and platform_machine!='loongarch64' and platform_python_implementation=='PyPy' + numpy==1.20.0; python_version=='3.7' and platform_machine!='loongarch64' and platform_python_implementation=='PyPy' +-- +2.39.2.windows.1 + diff --git a/oldest-supported-numpy-2023.8.3.tar.gz b/oldest-supported-numpy-2023.8.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..283f3afe51ed51da67c6a0c66ccc2e6aa2d2a2d7 Binary files /dev/null and b/oldest-supported-numpy-2023.8.3.tar.gz differ diff --git a/python-oldest-supported-numpy.spec b/python-oldest-supported-numpy.spec new file mode 100644 index 0000000000000000000000000000000000000000..1c6eac32942aafcfff3ba8c9a7e54dd219d68c46 --- /dev/null +++ b/python-oldest-supported-numpy.spec @@ -0,0 +1,49 @@ +%global srcname oldest-supported-numpy + +Name: python-%{srcname} +Version: 2023.8.3 +Release: 1 +Summary: Meta-package that provides the oldest NumPy that supports a given Python version and platform. +License: BSD +URL: https://github.com/scipy/oldest-supported-numpy +Source0: %{pypi_source %{srcname}} +BuildArch: noarch +Patch: 0001-oldest-supported-numpy-2023.8.3.patch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-numpy + +%global _description %{expand: +Meta-package that provides the oldest NumPy that supports a given Python version and platform. If wheels for the platform became available on PyPI only for a more recent NumPy version, then that NumPy version is specified.} + +%description %{_description} + +%autosetup -n %{srcname}-%{version} -p1 + +%package -n python3-%{srcname} +Summary: %{summary} + +%description -n python3-%{srcname} %{_description} + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{srcname} +%defattr(-,root,root) +%license LICENSE +%{python3_sitelib}/oldest_supported_numpy*.dist-info/ +%doc README.rst + +%changelog +* Fri Aug 18 2023 chaozhangm - 2023.8.3-1 +- Initial package. +