## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 pypi_name jplephem Name: python-%{pypi_name} Version: 2.24 Release: %autorelease Summary: Use a JPL ephemeris to predict planet positions License: MIT URL: https://github.com/brandon-rhodes/%{name}/ # The GitHub tarball contains tests; the PyPI sdist does not. Source: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz # Backport upstream patch to fix test failure Patch: 810ff57.patch BuildArch: noarch BuildRequires: python3-pytest %global _description %{expand: This package can load and use a Jet Propulsion Laboratory (JPL) ephemeris for predicting the position and velocity of a planet or other Solar System body. It currently supports binary SPK files (extension .bsp) like those distributed by the Jet Propulsion Laboratory.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %pyproject_check_import pushd ci %{py3_test_envvars} %{python3} ./jpltest.py %pytest ../jplephem/test.py popd %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Thu Jul 16 2026 Fedora Release Engineering - 2.24-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Mon Jun 15 2026 Mattia Verga - 2.24-1 - Initial import (Fedora#2485644) ## END: Generated by rpmautospec