# 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%{?mageia} && 0%{?mageia} < 9) %bcond_with aac %else %bcond_without aac %endif %if (0%{?fedora} && 0%{?fedora} < 41) || (0%{?suse_version} && 0%{?suse_version} < 1700) || 0%{?centos} || 0%{?epel} || (0%{?mageia} && 0%{?mageia} < 9) %bcond_with lame %bcond_with ldac %else %bcond_without lame %ifarch ppc64le s390x %bcond_with ldac %else %bcond_without ldac %endif %endif %if 0%{?mageia} >= 10 || "%{_vendor}" == "openMandriva" %bcond_without libfreeaptx %else %bcond_with libfreeaptx %endif %if 0%{?centos} %bcond_with hcitop %else %bcond_without hcitop %endif Name: bluez-alsa Version: 4.0.0 Release: %mkrel 1 Summary: Bluetooth Audio ALSA Backend License: MIT Source: https://github.com/Arkq/bluez-alsa/archive/v%{version}/bluez-alsa-v%{version}.tar.gz BuildRequires: automake BuildRequires: autoconf BuildRequires: make BuildRequires: libtool BuildRequires: gcc BuildRequires: (pkgconfig(alsa) or alsa-lib-devel) BuildRequires: (pkgconfig(bluez) or bluez-libs-devel) BuildRequires: glibc-devel BuildRequires: (pkgconfig(glib-2.0) or glib2-devel) BuildRequires: (pkgconfig(sbc) or sbc-devel) BuildRequires: (python3dist(docutils) or python3-docutils) %if %{with aac} BuildRequires: (pkgconfig(fdk-aac) or fdk-aac-free-devel or fdk-aac-devel) %endif %if %{with ldac} BuildRequires: (pkgconfig(ldacBT-abr) or libldac-devel) BuildRequires: (pkgconfig(ldacBT-enc) or libldac-devel) %endif %if %{with libfreeaptx} BuildRequires: (pkgconfig(libfreeaptx) or libfreeaptx-devel) %endif %if %{with lame} BuildRequires: (pkgconfig(lame) or lame-devel) %endif BuildRequires: (pkgconfig(libmpg123) or mpg123-devel) BuildRequires: (pkgconfig(dbus-1) or dbus-devel) BuildRequires: (pkgconfig(readline) or readline-devel) %if %{with hcitop} BuildRequires: (pkgconfig(libbsd) or libbsd-devel) BuildRequires: (pkgconfig(ncurses) or ncurses-devel) %endif BuildRequires: (pkgconfig(systemd) or systemd-devel) %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 ldac} --enable-ldac \ %endif %if %{with libfreeaptx} --enable-libopenaptx \ %endif %if %{with lame} --enable-mp3lame \ %endif --enable-mpg123 \ --enable-rfcomm \ %if %{with hcitop} --enable-hcitop \ %endif --enable-cli \ --enable-systemd \ --enable-a2dpconf \ --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 %{_sysconfdir}/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