%global pypi_name topas2numpy Name: python-%{pypi_name} Version: 0.2.0 Release: 1%{?dist} Summary: Read TOPAS (OpenTOPAS) scorer and phase-space output into NumPy # SPDX -- setup.py and LICENSE say MIT. License: MIT URL: https://github.com/davidchall/topas2numpy Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # %%check runs the upstream suite on the bundled sample outputs. BuildRequires: %{py3_dist pytest} %global _description %{expand: topas2numpy reads the output files TOPAS / OpenTOPAS writes -- binned scorers (.csv and .bin with .binheader) and ntuples such as phase-space files (ASCII and binary, with .header) -- into NumPy arrays with their bin geometry and column metadata, so simulation results can be analysed in Python without re-parsing TOPAS's formats by hand.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %pyproject_check_import %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %changelog * Fri Sep 25 2026 Morgan Hough - 0.2.0-1 - Initial package, the reader for OpenTOPAS output that nrtest-based regression comparisons and our pipeline tests use.