# Passing CMAKE_BUILD_TYPE doesn't work %global debug_package %{nil} %global pypi_name soxr %global pypi_version 1.0.0 Name: python-%{pypi_name} Version: 1.0.0 Release: 1%{?dist} Summary: High quality, one-dimensional sample-rate conversion library License: LGPL-2.1-or-later URL: https://github.com/dofuuz/python-soxr Source0: %{pypi_source} BuildREquires: gcc-c++ BuildRequires: python3-devel BuildRequires: soxr-devel BuildRequires: python3dist(pytest) %description Python-SoXR[![GitHub]( [![PyPI]( [![conda-forge]( [![Packaging status]( [![Read the Docs]( quality, one-dimensional sample-rate conversion library for Python. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(linkify-it-py) Requires: python3dist(myst-parser) Requires: python3dist(numpy) Requires: python3dist(pytest) Provides: bundled(python3dist(pfft-python)) %description -n python3-%{pypi_name} Python-SoXR[![GitHub]( [![PyPI]( [![conda-forge]( [![Packaging status]( [![Read the Docs]( quality, one-dimensional sample-rate conversion library for Python. %prep %autosetup -n %{pypi_name}-%{pypi_version} -p1 # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel -C cmake.define.USE_SYSTEM_LIBSOXR=ON %install %pyproject_install %check %pytest %files -n python3-%{pypi_name} %license LICENSE.txt COPYING.LGPL %doc README.md %{python3_sitearch}/%{pypi_name} %{python3_sitearch}/soxr-%{version}.dist-info/ %changelog * Fri Oct 31 2025 Gwyn Ciesla - 1.0.0-1 - 1.0.0 * Tue Apr 02 2024 Gwyn Ciesla - 0.3.7-1 - Initial package.