Accepting request 1186780 from home:bnavigator:branches:devel:languages:python:numeric

- Remove numpy1 hpc master package: One numpy is enough
- Remove mistaken pycache rpmlintrc filter
- Provide a release number in rpm version

OBS-URL: https://build.opensuse.org/request/show/1186780
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy1?expand=0&rev=4
This commit is contained in:
2024-07-19 06:04:45 +00:00
committed by Git OBS Bridge
parent f938e55274
commit 8f2de4f435
3 changed files with 24 additions and 15 deletions

View File

@@ -19,7 +19,6 @@
%global flavor @BUILD_FLAVOR@%{nil}
%define ver 1.26.4
%define _ver 1_26_4
%define pname python-numpy1
%define plainpython python
%define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_')
%if "%{flavor}" == ""
@@ -36,6 +35,13 @@
%if %{with hpc}
%bcond_without openblas
%endif
%if %{without hpc}
%define pname python-numpy1
%else
%define pname python-numpy
%endif
%if 0%{?sle_version} == 120300
%{?with_openblas:ExclusiveArch: do_not_build}
%endif
@@ -120,8 +126,8 @@ BuildRequires: %{python_module typing-extensions >= 4.2.0}
%if %{without hpc}
# Last version which packaged %%{_bindir}/f2py without update-alternatives
Conflicts: %{plainpython}-numpy <= 1.12.0
Provides: python-numpy = %{version}
Conflicts: python-numpy > %{version}
Conflicts: python-numpy >= 2
Provides: python-numpy = %{version}-%{release}
%if 0%{?suse_version}
BuildRequires: gcc-fortran
%else
@@ -148,7 +154,6 @@ Requires(postun): update-alternatives
%else
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
BuildRequires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel
Provides: python-numpy_1_26_4-gnu-hpc = %{version}
%ifnarch %ix86 %arm
BuildRequires: lua-lmod
%endif
@@ -157,6 +162,8 @@ Requires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc
%endif
%python_subpackages
# Note: the hpc master package is provided by numpy 2 only
%description
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
@@ -169,7 +176,6 @@ interfacing with general-purpose data-base applications.
There are also basic facilities for discrete fourier transform,
basic linear algebra and random number generation.
%{?with_hpc:%{hpc_python_master_package -L -a }}
%package devel
Summary: Development files for numpy applications
@@ -177,22 +183,21 @@ Requires: %{name} = %{version}
Requires: python-devel
Requires: %plainpython(abi) = %{python_version}
%if %{without hpc}
Provides: python-numpy-devel = %{version}
Conflicts: python-numpy-devel > %{version}
Conflicts: python-numpy-devel >= 2
Provides: python-numpy-devel = %{version}-%{release}
%if %{with openblas}
Requires: openblas-devel
%else # openblas
%else
Requires: blas-devel
%if %{with cblas}
Requires: cblas-devel
%endif # cblas
%endif
Requires: lapack-devel
%endif
%else # hpc
%else
Requires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel
%{hpc_requires_devel}
Provides: python-numpy_1_26_4-gnu-hpc-devel
%endif # hpc
%endif
%description devel
This package contains files for developing applications using numpy.