## START: Set by rpmautospec ## (rpmautospec version 0.3.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname pyshtools %if 0%{?fedora} || 0%{?rhel} >= 9 %global blaslib flexiblas %else %global blaslib openblas %endif Name: python-%{srcname} Version: 4.10.1 Release: %autorelease Summary: Tools for working with spherical harmonics License: BSD URL: https://shtools.github.io/SHTOOLS/ Source0: %pypi_source # https://github.com/numpy/numpy/issues/20941 Patch: 0001-Add-default-include-path-for-FFTW.patch # We don't need these requirements as Cartopy is already built. Patch: 0002-Remove-cartopy-build-time-dependencies.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: gcc BuildRequires: gcc-gfortran BuildRequires: fftw3-devel BuildRequires: %{blaslib}-devel BuildRequires: make BuildRequires: python3-devel BuildRequires: python3-f2py # Python-ducc0 tests are failing on aarch64 and s390x # https://bugzilla.redhat.com/show_bug.cgi?id=2138554 %ifnarch %{ix86} aarch64 s390x %global have_ducc 1 %endif %description pysthools is a Python library that can be used to perform spherical harmonic transforms and reconstructions, multitaper spectral analyses on the sphere, expansions of functions into Slepian bases, and standard operations on global gravitational and magnetic field data. %package -n python3-%{srcname} Summary: %{summary} Recommends: python3-%{srcname}+cartopy %if 0%{?have_ducc} Recommends: python3-%{srcname}+ducc %else Obsoletes: python3-%{srcname}+ducc < 4.10.1-3 %endif %description -n python3-%{srcname} pysthools is a Python library that can be used to perform spherical harmonic transforms and reconstructions, multitaper spectral analyses on the sphere, expansions of functions into Slepian bases, and standard operations on global gravitational and magnetic field data. %pyproject_extras_subpkg -n python3-%{srcname} cartopy %{?have_ducc:ducc} %prep %autosetup -n %{srcname}-%{version} # Don't make f2py silent. sed -i -e '/f2py_options/d' setup.py %generate_buildrequires %pyproject_buildrequires -r -x cartopy%{?have_ducc:,ducc} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check export MPLBACKEND=Agg export PYTHONPATH=%{buildroot}%{python3_sitearch} make -C examples/python -f Makefile no-timing PYTHON=%{python3} %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %changelog * Fri Jan 20 2023 Fedora Release Engineering - 4.10.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Dec 19 2022 Benjamin A. Beasley - 4.10.1-4 - Work around python-ducc0 ExcludeArch * Mon Dec 19 2022 Benjamin A. Beasley - 4.10.1-3 - Fix weak dependencies on extras subpackages * Mon Dec 19 2022 Elliott Sales de Andrade - 4.10.1-2 - Drop support for i686 * Mon Oct 17 2022 Elliott Sales de Andrade - 4.10.1-1 - Update to latest version (#2125643) * Mon Aug 08 2022 Elliott Sales de Andrade - 4.10-1 - Update to latest version (#1878694) * Mon Aug 08 2022 Elliott Sales de Andrade - 4.6.2-13 - Switch to latest Python macros * Fri Jul 22 2022 Fedora Release Engineering - 4.6.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 15 2022 Python Maint - 4.6.2-9 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 4.6.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 4.6.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 4.6.2-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 4.6.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Aug 16 2020 Iñaki Úcar - 4.6.2-4 - https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager * Wed Jul 29 2020 Fedora Release Engineering - 4.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 4.6.2-2 - Rebuilt for Python 3.9 * Sat May 16 2020 Elliott Sales de Andrade - 4.6.2-1 - Update to latest version - Cleanup old workarounds * Thu Jan 30 2020 Fedora Release Engineering - 4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 23 2019 Elliott Sales de Andrade - 4.5-1 - Update to latest version * Mon Aug 19 2019 Miro Hrončok - 4.4.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 4.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 4.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jan 12 2019 Elliott Sales de Andrade - 4.4.1-1 - Update to latest version * Sat Aug 18 2018 Elliott Sales de Andrade - 4.3-1 - Initial package.