From 8ff2eeef4c59fcb878ed2b0a55e7028cd0743aeb Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 27 Dec 2025 16:35:20 -0800 Subject: [PATCH] add: librosa (#8685) (#8711) --- anda/langs/python/librosa/anda.hcl | 6 ++++ anda/langs/python/librosa/librosa.spec | 48 ++++++++++++++++++++++++++ anda/langs/python/librosa/update.rhai | 1 + 3 files changed, 55 insertions(+) create mode 100644 anda/langs/python/librosa/anda.hcl create mode 100644 anda/langs/python/librosa/librosa.spec create mode 100644 anda/langs/python/librosa/update.rhai diff --git a/anda/langs/python/librosa/anda.hcl b/anda/langs/python/librosa/anda.hcl new file mode 100644 index 0000000000..7921ae8870 --- /dev/null +++ b/anda/langs/python/librosa/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "librosa.spec" + } +} diff --git a/anda/langs/python/librosa/librosa.spec b/anda/langs/python/librosa/librosa.spec new file mode 100644 index 0000000000..9b6a2286b3 --- /dev/null +++ b/anda/langs/python/librosa/librosa.spec @@ -0,0 +1,48 @@ +%global pypi_name librosa +%global _desc Python library for audio and music analysis. + +Name: python-%{pypi_name} +Version: 0.11.0 +Release: 1%?dist +Summary: Python library for audio and music analysis +License: MIT +URL: https://librosa.org +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: librosa +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n librosa-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files librosa + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md AUTHORS.md CONTRIBUTING.md CODE_OF_CONDUCT.md +%license LICENSE.md +%python3_sitelib/librosa-%version.dist-info/* + +%changelog +* Sat Dec 27 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/librosa/update.rhai b/anda/langs/python/librosa/update.rhai new file mode 100644 index 0000000000..c39854befc --- /dev/null +++ b/anda/langs/python/librosa/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("librosa"));