From ec71eb796727d2be90227bbd00e428b4cc169249 Mon Sep 17 00:00:00 2001 From: Deuchnord Date: Sun, 12 Apr 2026 12:43:52 +0200 Subject: [PATCH] Add DNF spec files --- README.md | 2 +- dnf/kosmorro.spec | 60 ++++++++++++++++++++++++++++++++++ dnf/python3-jplephem.spec | 40 +++++++++++++++++++++++ dnf/python3-kosmorrolib.spec | 49 +++++++++++++++++++++++++++ dnf/python3-skyfield-data.spec | 53 ++++++++++++++++++++++++++++++ dnf/python3-skyfield.spec | 48 +++++++++++++++++++++++++++ 6 files changed, 251 insertions(+), 1 deletion(-) create mode 100644 dnf/kosmorro.spec create mode 100644 dnf/python3-jplephem.spec create mode 100644 dnf/python3-kosmorrolib.spec create mode 100644 dnf/python3-skyfield-data.spec create mode 100644 dnf/python3-skyfield.spec diff --git a/README.md b/README.md index 9496e80..39d261a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Kosmorro repositories +# Kosmorro Linux repositories This repository contains recipes to build and publish packages and repositories for various Linux distributions. diff --git a/dnf/kosmorro.spec b/dnf/kosmorro.spec new file mode 100644 index 0000000..659196d --- /dev/null +++ b/dnf/kosmorro.spec @@ -0,0 +1,60 @@ +Name: kosmorro +Version: 1.0.1 +Release: 1%{?dist} +Summary: Astronomical ephemerides computation program + +License: AGPL-3.0-or-later +URL: https://kosmorro.space/lib +Source0: https://files.pythonhosted.org/packages/source/k/kosmorro/kosmorro-%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: make +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-poetry-core +BuildRequires: python3-setuptools +BuildRequires: python3-wheel + +Requires: python3 +Requires: python3-argcomplete +Requires: python3-babel +Requires: python3-dateutil +Requires: python3-kosmorrolib +Requires: python3-pytz +Requires: python3-tabulate +Requires: python3-termcolor + +Suggests: texlive + +%description +Kosmorro is a program that calculates your astronomical ephemerides. +It provides the following features: +- Calculate the rise, culmination and set times for any date and any position +on Earth +- Get informed about interesting astronomical events +- Generate a PDF with all the information needed for your observation nights +All calculations are made offline, no Internet connection needed. + + +%prep +%autosetup -n kosmorro-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files kosmorro + +%check +# disabled + +%files -n kosmorro -f %{pyproject_files} +/usr/bin/kosmorro +%license LICENSE.md +%doc README.md + +%changelog +* Mon Apr 13 2026 Deuchnord - 1.0.1-1 +- Initial package for Fedora/COPR diff --git a/dnf/python3-jplephem.spec b/dnf/python3-jplephem.spec new file mode 100644 index 0000000..6e5c16b --- /dev/null +++ b/dnf/python3-jplephem.spec @@ -0,0 +1,40 @@ +Name: python3-jplephem +Version: 2.24 +Release: 2%{?dist} +Summary: Use a JPL ephemeris to predict planet positions + +License: MIT +URL: https://github.com/brandon-rhodes/python-jplephem +Source0: https://files.pythonhosted.org/packages/source/j/jplephem/jplephem-%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildRequires: python3-wheel + +Requires: python3-numpy + +%description +A Python implementation of the math that standard JPL ephemerides use to predict raw (x,y,z) planetary positions. +It is one of the foundations of the Skyfield astronomy library for Python. + + +%prep +%autosetup -n jplephem-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files jplephem + +%files -n python3-jplephem -f %{pyproject_files} +%license LICENSE.txt +%doc README.md + +%changelog +* Mon Apr 13 2026 Deuchnord - 2.24 +- Initial package for Fedora/COPR diff --git a/dnf/python3-kosmorrolib.spec b/dnf/python3-kosmorrolib.spec new file mode 100644 index 0000000..42b1390 --- /dev/null +++ b/dnf/python3-kosmorrolib.spec @@ -0,0 +1,49 @@ +Name: python3-kosmorrolib +Version: 1.0.13 +Release: 1%{?dist} +Summary: Astronomical ephemerides computation library + +License: AGPL-3.0-or-later +URL: https://kosmorro.space/lib +Source0: https://files.pythonhosted.org/packages/source/k/kosmorrolib/kosmorrolib-%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-poetry-core +BuildRequires: python3-setuptools +BuildRequires: python3-wheel + +Requires: python3-numpy +Requires: python3-dateutil +Requires: python3-skyfield-data + +# From @copr/pypi repository: +Requires: python3-skyfield + +%description +Kosmorrolib is a Python library used to compute astronomical ephemerides. +It is based on the Skyfield library and provides simple APIs to compute +positions of celestial objects. + +%prep +%autosetup -n kosmorrolib-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files kosmorrolib + +%check +# disabled + +%files -n python3-kosmorrolib -f %{pyproject_files} +%license LICENSE.md +%doc README.md + +%changelog +* Sun Apr 12 2026 Deuchnord - 1.0.13-1 +- Initial package for Fedora/COPR diff --git a/dnf/python3-skyfield-data.spec b/dnf/python3-skyfield-data.spec new file mode 100644 index 0000000..19aa727 --- /dev/null +++ b/dnf/python3-skyfield-data.spec @@ -0,0 +1,53 @@ +Name: python3-skyfield-data +Version: 7.0.0 +Release: 2%{?dist} +Summary: Minimal data files to work with python3-skyfield + +License: MIT +URL: https://github.com/brunobord/skyfield-data +Source0: https://files.pythonhosted.org/packages/source/s/skyfield-data/skyfield_data-%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildRequires: python3-wheel + +%description +Skyfield is a Python library for astronomical computations. +It depends on various data files to accurately compute moon phases, planet +positions, etc. +Several issues are raised by these data files: +- If they're not found in the path of the Loader, they're downloaded at +runtime. Depending on the archive you're requesting, some files might be +very large, causing a long delay (directly related to your network +bandwidth). In the case of a web server app, you'd cause a timeout on +client's end. +- They come mainly from 2 sources: NASA's JPL, and the IERS. If one of them +is temporarily unavailable, you couldn't perform any computation. +- In some countries, or behind some filtering proxies, some hosts may be +blocked. +- These files have an expiration date (in a more or less distant future). As +a consequence, even if the files are already downloaded in the right path, +at each runtime you could possibly have to download one or more files +before making any computation using them. + + +%prep +%autosetup -n skyfield_data-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files skyfield_data + +%files -n python3-skyfield-data -f %{pyproject_files} +%license COPYING +%doc README.md + +%changelog +* Mon Apr 13 2026 Deuchnord - 7.0.0 +- Initial package for Fedora/COPR diff --git a/dnf/python3-skyfield.spec b/dnf/python3-skyfield.spec new file mode 100644 index 0000000..5161d6a --- /dev/null +++ b/dnf/python3-skyfield.spec @@ -0,0 +1,48 @@ +Name: python3-skyfield +Version: 1.54 +Release: 2%{?dist} +Summary: Elegant astronomy for Python + +License: MIT +URL: https://github.com/skyfielders/python-skyfield +Source0: https://files.pythonhosted.org/packages/source/s/skyfield/skyfield-%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildRequires: python3-wheel + +Requires: python3-astropy +Requires: python3-certifi +Requires: python3-jplephem +Requires: python3-pandas +Requires: python3-sgp4 +Requires: python3-sympy + +%description +Skyfield computes positions for the stars, planets, and satellites in orbit around the Earth. +Its results should agree with the positions generated by the United States Naval Observatory and their Astronomical Almanac to within 0.0005 arcseconds (half a “mas” or milliarcsecond). +- Written in pure Python. +- Installs without any compilation. +- Supports Python 2.7 and Python 3. + + +%prep +%autosetup -n skyfield-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files skyfield + +%files -n python3-skyfield -f %{pyproject_files} +%license LICENSE +%doc README.rst + +%changelog +* Mon Apr 13 2026 Deuchnord - 1.54 +- Initial package for Fedora/COPR