%global pypi_name specutils Name: python-%{pypi_name} Version: 2.4.0 Release: 1%{?dist} Summary: Package for spectroscopic astronomical data License: BSD-3-Clause URL: https://github.com/astropy/specutils Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: specutils provides a shared set of Python representations for spectroscopic astronomical data, and tools for manipulating, manipulating and analyzing them, built on astropy, gwcs and ndcube. It is a runtime dependency of TOM Toolkit, used for spectrum ingestion and analysis.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-numpy >= 1.24 Requires: python3-scipy >= 1.14 Requires: python3-astropy >= 7.2 Requires: python3-gwcs >= 0.25.1 Requires: python3-asdf-astropy >= 0.8 Requires: python3-asdf >= 3.3.0 Requires: python3-ndcube >= 2.0 %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires -r %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_install %pyproject_save_files %{pypi_name} %check # Exclude the bundled test suite from the import check: those modules # import pytest, which is not a runtime dependency of the library. %pyproject_check_import -e "specutils.*tests*" %files -n python3-%{pypi_name} -f %{pyproject_files} %license licenses/LICENSE.rst %doc README.rst %changelog * Mon Aug 24 2026 Morgan Hough - 2.4.0-1 - Initial package. Runtime dependency of TOM Toolkit's spectrum stack.