From a5fbc258f1241ef19a8b87ea61d89b7a255a4ec9 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 27 Dec 2025 00:55:09 -0800 Subject: [PATCH] add: python-soxr (#8668) (#8680) * add: python-soxr * probably dont need --------- (cherry picked from commit b5220994cd212f07d505457244344e7e86db76be) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/python-soxr/anda.hcl | 5 ++ .../langs/python/python-soxr/python-soxr.spec | 55 +++++++++++++++++++ anda/langs/python/python-soxr/update.rhai | 1 + 3 files changed, 61 insertions(+) create mode 100644 anda/langs/python/python-soxr/anda.hcl create mode 100644 anda/langs/python/python-soxr/python-soxr.spec create mode 100644 anda/langs/python/python-soxr/update.rhai diff --git a/anda/langs/python/python-soxr/anda.hcl b/anda/langs/python/python-soxr/anda.hcl new file mode 100644 index 0000000000..5c5b39723b --- /dev/null +++ b/anda/langs/python/python-soxr/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "python-soxr.spec" + } +} diff --git a/anda/langs/python/python-soxr/python-soxr.spec b/anda/langs/python/python-soxr/python-soxr.spec new file mode 100644 index 0000000000..5ce61f4ef1 --- /dev/null +++ b/anda/langs/python/python-soxr/python-soxr.spec @@ -0,0 +1,55 @@ +%define debug_package %{nil} + +%global pypi_name soxr +%global _desc Fast and high quality sample-rate conversion library for Python. + +Name: python-%{pypi_name} +Version: 1.0.0 +Release: 1%?dist +Summary: Fast and high quality sample-rate conversion library for Python +License: LGPL-2.1 +URL: https://github.com/dofuuz/python-soxr +Source0: https://github.com/dofuuz/python-soxr/archive/refs/tags/v%version.tar.gz +# This package is intentionally not noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-scikit-build-core +BuildRequires: python3-pybind11 +BuildRequires: python3-nanobind +BuildRequires: gcc-c++ +BuildRequires: cmake + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%git_clone + +%build +export SETUPTOOLS_SCM_PRETEND_VERSION=%version +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files soxr + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md BUILDING.md +%license LICENSE.txt COPYING.LGPL + +%changelog +* Fri Dec 26 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/python-soxr/update.rhai b/anda/langs/python/python-soxr/update.rhai new file mode 100644 index 0000000000..6b1588e796 --- /dev/null +++ b/anda/langs/python/python-soxr/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("soxr"));