## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global srcname pyshtools %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 %global blaslib flexiblas %else %global blaslib openblas %endif Name: python-%{srcname} Version: 4.10 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 BuildRequires: gcc BuildRequires: gcc-gfortran BuildRequires: fftw3-devel BuildRequires: %{blaslib}-devel BuildRequires: make BuildRequires: python3-devel BuildRequires: python3-f2py %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 Recommends: python3-%{srcname}-ducc %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 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,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 * 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.