- 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/package/show/devel:languages:python:numeric/python-numpy1?expand=0&rev=4
This commit is contained in:
Steve Kowalik 2024-07-19 06:04:45 +00:00 committed by Git OBS Bridge
parent 695e7f9ce9
commit 4cfc48f727
3 changed files with 24 additions and 15 deletions

View File

@ -5,6 +5,3 @@ addFilter("devel-file-in-non-devel-package .*numpy/core/tests/data")
addFilter("hidden-file-or-dir .*numpy/f2py/tests/src/assumed_shape/.f2py_f2cmap") addFilter("hidden-file-or-dir .*numpy/f2py/tests/src/assumed_shape/.f2py_f2cmap")
addFilter("hidden-file-or-dir .*numpy/f2py/tests/src/f2cmap/.f2py_f2cmap") addFilter("hidden-file-or-dir .*numpy/f2py/tests/src/f2cmap/.f2py_f2cmap")
addFilter("zero-length .*numpy/_core/__init__.pyi") addFilter("zero-length .*numpy/_core/__init__.pyi")
# The pyc files are created after the py files, but the mtime of the pyc file,
# its internal timestamp and the mtime of the py file are not equal.
addFilter("python-bytecode-inconsistent-mtime .*")

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jul 11 08:01:45 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Remove numpy1 hpc master package: One numpy is enough
- Remove mistaken pycache rpmlintrc filter
- Provide a release number in rpm version
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 2 04:42:07 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com> Tue Jul 2 04:42:07 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

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