%global pypi_name asdf Name: python-%{pypi_name} Version: 5.3.1 Release: 1%{?dist} Summary: Python implementation of the ASDF (Advanced Scientific Data Format) License: BSD-3-Clause URL: https://github.com/asdf-format/asdf Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: asdf (Advanced Scientific Data Format) is a next-generation interchange format for scientific data, combining a hierarchical metadata structure with binary array data. It is a runtime dependency of gwcs, asdf-astropy and specutils, and transitively of TOM Toolkit.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-asdf-standard >= 1.1.0 Requires: python3-jmespath >= 0.6.2 Requires: python3-numpy >= 1.22 Requires: python3-packaging >= 19 Requires: python3-pyyaml >= 6.0 Requires: python3-semantic_version >= 2.8 Requires: python3-attrs >= 22.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 # asdf.conftest is a pytest plugin (registered as a pytest11 entry point) # that imports pytest at module load time; pytest is not a runtime # dependency of the library itself, so exclude it from the import check. %pyproject_check_import -e asdf.conftest %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst %{_bindir}/asdftool %changelog * Mon Aug 24 2026 Morgan Hough - 5.3.1-1 - Initial package. Runtime dependency of gwcs, asdf-astropy, specutils (TOM Toolkit chain). Requires COPR python3-asdf-standard.