## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 astroscrappy %global common_desc Astro-SCRAPPY is designed to detect cosmic rays in images (numpy arrays). Name: python-%{srcname} Version: 1.2.0 Release: %autorelease Summary: Cosmic Ray Annihilation License: BSD-3-Clause URL: https://pypi.python.org/pypi/%{srcname} Source: %{pypi_source} BuildRequires: gcc ExcludeArch: %{ix86} %description %{common_desc}. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel %description -n python3-%{srcname} %{common_desc}. %prep %autosetup -p1 -n %{srcname}-%{version} # Fedora doesn't have numpy 2.0 yet # but tests seem ok to use current version sed -i pyproject.toml -e 's|"numpy>=2.0.0rc1"|"numpy"|' %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files astroscrappy %check %ifnarch s390x export PYTEST_ADDOPTS='-p no:cacheprovider' pushd %{buildroot}/%{python3_sitearch} %pytest astroscrappy popd %endif %files -n python3-%{srcname} -f %{pyproject_files} %license licenses/LICENSE.rst %doc CHANGES.rst README.rst %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 16 2024 Mattia Verga - 1.2.0-1 - Update to 1.2.0 (Fedora#2278782) - Fix FTB/FTI in F41 (Fedora#2291623) * Tue Feb 20 2024 Sergio Pascual - 1.1.0-19 - Use SPDX name for license Drop i686 package * Tue Feb 20 2024 Sergio Pascual - 1.1.0-10 - Modernize spec - Fix BTFS * Fri Jan 26 2024 Fedora Release Engineering - 1.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 07 2023 Python Maint - 1.1.0-6 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 1.1.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 31 2021 Christian Dersch - 1.1.0-1 - new version - License change: Now BSD only, no more PSF and Apache 2.0 * Fri Jul 23 2021 Fedora Release Engineering - 1.0.8-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.0.8-7 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.0.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 17 2020 Christian Dersch - 1.0.8-4 - rebuilt for new pytest-astropy (Fixes FTBFS #1796863) * Tue May 26 2020 Miro Hrončok - 1.0.8-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Oct 20 2019 Christian Dersch - 1.0.8-1 - new version - remove patch (fixed upstream) - skip tests on s390x until endianess issue is fixed * Thu Sep 12 2019 Mamoru TASAKA - 1.0.5-16 - Patch for astropy.tests.pytest_plugins error (bug 1746845) * Mon Aug 19 2019 Miro Hrončok - 1.0.5-15 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.0.5-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.0.5-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 02 2018 Christian Dersch - 1.0.5-12 - drop python2 subpackage * Sun Jul 15 2018 Christian Dersch - 1.0.5-11 - BuildRequires: gcc * Fri Jul 13 2018 Fedora Release Engineering - 1.0.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.0.5-9 - Rebuilt for Python 3.7 * Wed Feb 14 2018 Christian Dersch - 1.0.5-8 - rebuilt * Fri Feb 09 2018 Fedora Release Engineering - 1.0.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.0.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.0.5-3 - Rebuild for Python 3.6 * Fri Oct 07 2016 Christian Dersch - 1.0.5-2 - Added license breakdown * Tue Oct 04 2016 Christian Dersch - 1.0.5-1 - Initial packaging ## END: Generated by rpmautospec