Name: aubio Version: 0.4.9 Release: 1%{?dist} Summary: Audio labeling library and tools License: GPL-3.0-or-later URL: https://aubio.org/ Source0: https://aubio.org/pub/aubio-%{version}.tar.bz2 # Fix 'rU' mode deprecated since Python 3.3, removed in 3.11 Patch0: aubio-python39.patch BuildRequires: python3 BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: fftw-devel BuildRequires: libsndfile-devel BuildRequires: libsamplerate-devel %global _description %{expand: aubio is a tool and library for audio labeling. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio. The library provides functions for onset detection, pitch tracking, beat tracking, tempo estimation, and more.} %description %_description This package contains the aubio command-line tools. %package libs Summary: Audio labeling library %description libs %_description This package contains the aubio shared library. %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: pkgconfig %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 # Create python -> python3 symlink needed by waf test source generation mkdir -p local-bin ln -sf /usr/bin/python3 local-bin/python %build export PATH="$(pwd)/local-bin:$PATH" %set_build_flags python3 ./waf configure \ --prefix="%{_prefix}" \ --bindir="%{_bindir}" \ --sysconfdir="%{_sysconfdir}" \ --datadir="%{_datadir}" \ --includedir="%{_includedir}" \ --libdir="%{_libdir}" \ --enable-fftw3f \ --enable-complex \ --disable-jack \ --enable-samplerate \ --disable-docs \ --disable-tests python3 ./waf build -v --disable-tests %{?_smp_mflags} %install export PATH="$(pwd)/local-bin:$PATH" python3 ./waf --destdir=%{buildroot} -v install rm -f %{buildroot}%{_libdir}/*.a %check # Run the built CLI tool to verify it works export LD_LIBRARY_PATH="%{buildroot}%{_libdir}" %{buildroot}%{_bindir}/aubiocut --help || true %files %license COPYING %doc README.md AUTHORS ChangeLog %{_bindir}/aubio* %files libs %license COPYING %{_libdir}/libaubio.so.5* %files devel %{_includedir}/aubio/ %{_libdir}/libaubio.so %{_libdir}/pkgconfig/aubio.pc %changelog * Fri Jul 17 2026 Yonghang Wang - 0.4.9-1 - Initial package for Amazon Linux 2023 - Build C library and CLI tools only (no Python bindings, no JACK) - Enable fftw3f, libsndfile, libsamplerate support