# Original SPEC file taken from https://copr.fedorainfracloud.org/coprs/lucamagrone/pi4/package/bluez-alsa/. %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif %if 0%{?centos} || 0%{?epel} || 0%{?fedora} || "%{distro_section}" == "tainted" %bcond_without aac %else %bcond_with aac %endif # Luca built it for his repo; it's not in any distro's official packages %if 0 %bcond_without freeaptx %else %bcond_with freeaptx %endif %if 0%{?centos} %bcond_with hcitop %else %bcond_without hcitop %endif %if "%{_vendor}" == "openEuler" %bcond_with lc3 %else %bcond_without lc3 %endif %ifarch %ix86 x86_64 aarch64 %if 0%{?centos} || 0%{?epel} %bcond_with ldac %else %bcond_without ldac %endif %else %bcond_with ldac %endif Name: bluez-alsa Version: 4.3.1 Release: %mkrel 1 Summary: Bluetooth Audio ALSA Backend License: MIT URL: https://github.com/Arkq/bluez-alsa Source: https://github.com/Arkq/bluez-alsa/archive/v%{version}/bluez-alsa-v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: automake BuildRequires: autoconf BuildRequires: make BuildRequires: libtool BuildRequires: gcc BuildRequires: pkgconfig(alsa) >= 1.0.27 BuildRequires: pkgconfig(bluez) >= 5.51 BuildRequires: pkgconfig(glib-2.0) >= 2.58.2 BuildRequires: pkgconfig(sbc) >= 1.5 BuildRequires: python3dist(docutils) %if %{with aac} BuildRequires: pkgconfig(fdk-aac) %endif %if %{with lc3} BuildRequires: pkgconfig(lc3) >= 1.0.0 %endif %if %{with ldac} BuildRequires: pkgconfig(ldacBT-abr), pkgconfig(ldacBT-enc) %endif # Mageia 9 doesn't have a recent enough version for pkgconfig(lame) BuildRequires: (pkgconfig(lame) or lame-devel) BuildRequires: pkgconfig(libmpg123) %if %{with freeaptx} BuildRequires: libfreeaptx-devel %endif BuildRequires: glibc-devel BuildRequires: pkgconfig(opus) BuildRequires: pkgconfig(check), pkgconfig(sndfile) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(readline) %if %{with hcitop} BuildRequires: pkgconfig(libbsd) BuildRequires: pkgconfig(ncurses) %endif BuildRequires: pkgconfig(systemd) %description BlueALSA is designed specifically for use on small, low-powered, dedicated audio or audio/visual systems where the high-level audio management features of PulseAudio or PipeWire are not required. The target system must be able to function correctly with all its audio applications interfacing directly with ALSA. In such systems BlueALSA adds Bluetooth audio support to the existing ALSA sound card support. %prep %autosetup %build autoreconf --install %configure \ --enable-manpages \ %if %{with aac} --enable-aac \ %endif %if %{with lc3} --enable-lc3-swb \ %endif %if %{with ldac} --enable-ldac \ %endif %if %{with freeaptx} --enable-libopenaptx \ %endif --enable-mp3lame \ --enable-mpg123 \ --enable-opus \ --enable-rfcomm \ %if %{with hcitop} --enable-hcitop \ %endif --enable-midi \ --enable-cli \ --enable-systemd \ --enable-a2dpconf \ --enable-upower \ --enable-test \ --disable-static \ --with-bash-completion %make_build %install %make_install %files %license LICENSE %doc AUTHORS NEWS README.md %{_bindir}/a2dpconf %{_bindir}/bluealsa %{_bindir}/bluealsa-aplay %{_bindir}/bluealsa-cli %{_bindir}/bluealsa-rfcomm %if %{with hcitop} %{_bindir}/hcitop %endif %{_unitdir}/bluealsa.service %{_unitdir}/bluealsa-aplay.service %{_sysconfdir}/alsa/conf.d/20-bluealsa.conf %{_datadir}/dbus-1/system.d/bluealsa.conf %{_mandir}/man1/* %{_mandir}/man7/* %{_mandir}/man8/* %{_libdir}/alsa-lib/*.so %ghost %{_libdir}/alsa-lib/*.la %{_datadir}/bash-completion/completions/a2dpconf %{_datadir}/bash-completion/completions/bluealsa %{_datadir}/bash-completion/completions/bluealsa-aplay %{_datadir}/bash-completion/completions/bluealsa-cli %{_datadir}/bash-completion/completions/bluealsa-rfcomm %{_datadir}/bash-completion/completions/hcitop %changelog * Tue Nov 08 2022 Luca Magrone - 4.0.0-1 - Initial package release