%global pypi_name spectrum Name: python-spectrum Version: 0.10.0 Release: 2%{?dist} Summary: Spectral analysis tools for Python License: BSD-3-Clause URL: https://github.com/cokelaer/spectrum Source0: %{pypi_source %{pypi_name}} BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: gcc %description spectrum is a Python library providing tools to estimate power spectral densities (periodogram, multitapers/DPSS, parametric AR/ARMA methods, correlograms, windowing functions and more). %package -n python3-spectrum Summary: %{summary} %description -n python3-spectrum spectrum provides spectral-analysis (power spectral density) estimators for Python. %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # spectrum's setup.py wrongly installs an empty top-level "cpp" package # (the C-extension source dir). Drop it — it pollutes site-packages and is # not used at runtime (the extension is spectrum.mydpss). rm -rf %{buildroot}%{python3_sitearch}/cpp %pyproject_save_files %{pypi_name} %check %pyproject_check_import -t %files -n python3-spectrum -f %{pyproject_files} %doc README.rst %changelog * Mon Sep 28 2026 Morgan Hough - 0.10.0-2 - Rebuild for f45's current numpy/Python 3.15. The previous build's compiled extensions SIGSEGV on f45 inside their own module init, found by importing every compiled module one subprocess each (spectrum.mydpss). Same class as python-surfa 0.6.3-3 and python-vispy 0.16.2-2 today: a numpy/Cython ABI change moves no soname, so rpm dependencies are satisfied and the package fails only at load. Nothing we gate on can see it -- %check ran at BUILD time and passed, and the environment moved afterwards. - Note the top-level import is NOT enough to detect this: `import spectrum` returns 0 because the package __init__ never loads the extension. Only importing the submodule that owns the .so trips it, which is why an earlier top-level-only sweep of mine missed this package entirely. * Mon Jun 15 2026 Morgan Hough - 0.10.0-1 - Initial package (pyfix dependency chain, via easydev).