Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kosmorro repositories
# Kosmorro Linux repositories

This repository contains recipes to build and publish packages and repositories for various Linux distributions.

Expand Down
60 changes: 60 additions & 0 deletions dnf/kosmorro.spec
Original file line number Diff line number Diff line change
@@ -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 <jerome@deuchnord.fr> - 1.0.1-1
- Initial package for Fedora/COPR
40 changes: 40 additions & 0 deletions dnf/python3-jplephem.spec
Original file line number Diff line number Diff line change
@@ -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 <jerome@deuchnord.fr> - 2.24
- Initial package for Fedora/COPR
49 changes: 49 additions & 0 deletions dnf/python3-kosmorrolib.spec
Original file line number Diff line number Diff line change
@@ -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 <jerome@deuchnord.fr> - 1.0.13-1
- Initial package for Fedora/COPR
53 changes: 53 additions & 0 deletions dnf/python3-skyfield-data.spec
Original file line number Diff line number Diff line change
@@ -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 <jerome@deuchnord.fr> - 7.0.0
- Initial package for Fedora/COPR
48 changes: 48 additions & 0 deletions dnf/python3-skyfield.spec
Original file line number Diff line number Diff line change
@@ -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 <jerome@deuchnord.fr> - 1.54
- Initial package for Fedora/COPR