## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 fitsio %global sum A full featured python library to read from and write to FITS files Name: python-%{srcname} Version: 1.1.8 Release: %autorelease Summary: %{sum} License: GPLv2+ URL: https://pypi.python.org/pypi/%{srcname} Source0: %{pypi_source} # Patch to force usage of Fedora cfitsio instead of bundled copy Patch0: %{name}-use-system-cfitsio.patch # General BuildRequires: cfitsio-devel BuildRequires: gcc # Python 3 BuildRequires: python3-devel %description %{sum}. %package -n python3-%{srcname} Summary: %{sum} %description -n python3-%{srcname} %{sum}. %prep %autosetup -p1 -n %{srcname}-%{version} sed -i "s,@INCLUDEDIR@,%{_includedir}/cfitsio,g" setup.py sed -i "s,@LIBDIR@,%{_libdir},g" setup.py # Remove egg files from source rm -r %{srcname}.egg-info %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files fitsio %check %pyproject_check_import %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt %doc README.md %changelog * Fri Jan 20 2023 Fedora Release Engineering 1.1.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 29 2022 Maxwell G 1.1.8-2 - Rebuild for cfitsio 4.2 * Tue Sep 27 2022 Christian Dersch 1.1.8-1 - Update to 1.1.8 * Sun Aug 07 2022 Mattia Verga 1.1.7-1 - Update to 1.1.7 (fedora#2047874) - switch to modern python build macros * Fri Jul 22 2022 Fedora Release Engineering - 1.1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.1.6-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 31 2021 Christian Dersch - 1.1.6-1 - new version * Tue Jul 27 2021 Fedora Release Engineering - 1.1.4-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.1.4-2 - Rebuilt for Python 3.10 * Sun Feb 28 2021 Mattia Verga - 1.1.4-1 - Update to 1.1.4 - Fixes rhbz#1930882 * Tue Feb 02 2021 Christian Dersch - 1.1.3-3 - Rebuilt for libcfitsio.so.7 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 13 2020 Mattia Verga - 1.1.3-1 - Update to 1.1.3 - Fixes rhbz#1886081 * Wed Jul 29 2020 Fedora Release Engineering - 1.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 17 2020 Christian Dersch - 1.1.2-1 - new version * Tue May 26 2020 Miro Hrončok - 1.0.3-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.0.3-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.0.3-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 02 2019 Christian Dersch - 1.0.3-1 - new version * Sun Apr 28 2019 Christian Dersch - 1.0.1-1 - new version * Sat Feb 02 2019 Fedora Release Engineering - 0.9.11-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 02 2018 Christian Dersch - 0.9.11-9 - drop python2 subpackage (#1627411) * Sat Jul 14 2018 Fedora Release Engineering - 0.9.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.9.11-7 - Rebuilt for Python 3.7 * Sat May 26 2018 Christian Dersch - 0.9.11-6 - rebuilt for cfitsio 3.450 * Fri Feb 23 2018 Christian Dersch - 0.9.11-5 - rebuilt for cfitsio 3.420 (so version bump) * Fri Feb 09 2018 Fedora Release Engineering - 0.9.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.9.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.9.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Apr 06 2017 Christian Dersch - 0.9.11-1 - new version * Sat Feb 11 2017 Fedora Release Engineering - 0.9.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.9.10-2 - Rebuild for Python 3.6 * Sat Oct 01 2016 Christian Dersch - 0.9.10-1 - Initial package