## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 15; 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 pypi_name pymeeus Name: python-%{pypi_name} Version: 0.5.11 Release: %autorelease Summary: Python implementation of Jean Meeus astronomical routines # Automatically converted from old format: LGPLv3 - review is highly recommended. License: LGPL-3.0-only URL: https://github.com/architest/pymeeus Source0: %{pypi_source PyMeeus} Patch0: 0001-Fix-documentation-build-with-sphinx-8.patch Patch1: 0002-fix-pytest-7-2-compatibility.patch BuildArch: noarch %description PyMeeus is a Python implementation of the astronomical algorithms described in the classical book "Astronomical Algorithms, 2nd Edition, Willmann-Bell Inc. (1998)" by Jean Meeus. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest %generate_buildrequires %pyproject_buildrequires %description -n python3-%{pypi_name} PyMeeus is a Python implementation of the astronomical algorithms described in the classical book "Astronomical Algorithms, 2nd Edition, Willmann-Bell Inc. (1998)" by Jean Meeus. %package -n python-%{pypi_name}-doc Summary: %{name} documentation BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme %description -n python-%{pypi_name}-doc Documentation for %{name}. %prep %autosetup -n PyMeeus-%{version} -p1 rm -rf %{pypi_name}.egg-info %build %pyproject_wheel PYTHONPATH=${PWD} sphinx-build-3 docs/source html rm -rf html/.{doctrees,buildinfo,nojekyll} %install %pyproject_install %check PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests %files -n python3-%{pypi_name} %license LICENSE.txt COPYING.LESSER %doc docs/README.txt README.rst %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/pymeeus-%{version}.dist-info %files -n python-%{pypi_name}-doc %doc html %license LICENSE.txt COPYING.LESSER %changelog ## START: Generated by rpmautospec * Wed Jul 09 2025 Vojtech Trefny - 0.5.11-15 - FTBS fix and migration to %%pyproject macros * Tue Jun 03 2025 Python Maint - 0.5.11-14 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 0.5.11-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 26 2024 Miroslav Suchý - 0.5.11-12 - convert LGPLv3 license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.5.11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.5.11-10 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.5.11-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.5.11-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 0.5.11-6 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.5.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.5.11-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.5.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Aug 25 2021 Fabian Affolter - 0.5.11-1 - * Wed Aug 25 2021 Fabian Affolter - 0.5.11-1 - Update to latest upstream release 0.5.11 * Fri Jul 23 2021 Fedora Release Engineering - 0.3.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 03 2021 Python Maint - 0.3.6-8 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.3.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.3.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 23 2020 Miro Hrončok - 0.3.6-5 - Drop unused BR on python3-pytest-cov * Sat May 23 2020 Miro Hrončok - 0.3.6-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.3.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 09 2020 Fabian Affolter - 0.3.6-2 - Fix typo * Thu Jan 09 2020 Fabian Affolter - 0.3.6-1 - * Tue Jan 07 2020 Fabian Affolter - 0.3.6-2 - Use var for source URL - Slit BRs - Delete hidden files from doc generation - Better use of wildcards (rhbz#1787140) ## END: Generated by rpmautospec