%global pypi_name fits2image Name: python-%{pypi_name} Version: 0.4.11 Release: 1%{?dist} Summary: Common libraries for the conversion and scaling of FITS images License: GPL-3.0-or-later URL: https://github.com/LCOGT/fits2image Source0: %{pypi_source %{pypi_name}} BuildArch: noarch # Legacy setup.py project with no pyproject.toml: use the manual # BuildRequires + %%pyproject_wheel flow (setuptools legacy PEP 517 # backend) rather than %%generate_buildrequires. BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-numpy BuildRequires: python3-astropy BuildRequires: python3-pillow %description fits2image provides common libraries for the conversion and scaling of FITS astronomical images, used by TOM Toolkit for MEA-like thumbnail and preview generation of observation data. %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-numpy Requires: python3-astropy Requires: python3-pillow %description -n python3-%{pypi_name} fits2image provides common libraries for the conversion and scaling of FITS astronomical images, used by TOM Toolkit for thumbnail and preview generation of observation data. %prep %autosetup -n %{pypi_name}-%{version} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files fits2image %check %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README %changelog * Mon Aug 24 2026 Morgan Hough - 0.4.11-1 - Initial package. Runtime dependency of TOM Toolkit.