%global pypi_name gwcs Name: python-%{pypi_name} Version: 1.0.3 Release: 1%{?dist} Summary: Generalized World Coordinate System License: BSD-3-Clause URL: https://github.com/spacetelescope/gwcs Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: gwcs (Generalized World Coordinate System) implements flexible World Coordinate System objects supporting a wide range of coordinate frame transformations, on top of astropy models and ASDF serialization. It is a runtime dependency of ndcube and specutils, and transitively of TOM Toolkit.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-asdf >= 3.3.0 Requires: python3-astropy >= 6.0 Requires: python3-numpy >= 1.25 Requires: python3-scipy >= 1.14.1 Requires: python3-asdf-wcs-schemas >= 0.5.0 Requires: python3-asdf-astropy >= 0.8.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 # Upstream's [tool.setuptools.packages.find] has no include/exclude filter, # so setuptools picks up docs/__init__.py and installs "docs" and # "docs.gwcs" as if they were real importable packages alongside gwcs # itself. Strip that stray package tree; it's Sphinx source, not library # code, and would otherwise be an unpackaged/unowned file error. rm -rf %{buildroot}%{python3_sitelib}/docs %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 "gwcs.*tests*" %files -n python3-%{pypi_name} -f %{pyproject_files} %license licenses/LICENSE.rst %doc README.rst %changelog * Mon Aug 24 2026 Morgan Hough - 1.0.3-1 - Initial package. Runtime dependency of ndcube, specutils (TOM Toolkit chain).