Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37491500
en ru br
Репозитории ALT

Группа :: Звук
Пакет: bluez-alsa

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define git %nil
%define b_user bluealsa

%def_enable aptx
%def_enable aac
%def_enable ldac
%def_enable mpg123
%def_enable mp3lame
%def_disable lc3plus
%def_disable debug
# FIXME! needs running dbus-daemon
%def_disable test
%def_enable cli

Name: bluez-alsa
Version: 4.1.1
Release: alt1
Epoch: 5
Summary: BlueZ ALSA backend for Linux
License: MIT
Group: Sound
URL: https://github.com/Arkq/bluez-alsa

Packager: L.A. Kostis <lakostis at altlinux.ru>

Source: %name-%version.tar

Patch0: %name-%version-%release.patch
Patch1: %name-4.0.0-alt-libfreeaptx.patch

Provides: alsa-plugins-bluealsa = %EVR, bluealsa = %EVR

BuildRequires: systemd-devel libdbus-glib-devel, libbluez-devel, libalsa-devel, libsbc-devel libgio-devel python3-module-docutils
# Packet loss concealment for HFP with mSBC codec
BuildRequires: libspandsp3-devel
# Helper library for dumping incoming BT data
BuildRequires: libsndfile-devel
# bash-completion
BuildRequires: bash-completion
%{?_enable_aptx:BuildRequires: libfreeaptx-devel}
%{?_enable_aac:BuildRequires: libfdk-aac-devel}
%{?_enable_ldac:BuildRequires: libldac-devel}
%{?_enable_mpg123:BuildRequires: libmpg123-devel}
%{?_enable_mp3lame:BuildRequires: liblame-devel}
%{?_enable_test:BuildRequires: libcheck-devel}
%{?_enable_l3plus:BuildRequires: libl3plus-devel}
%{?_enable_cli:BuildRequires: libreadline-devel}
# for hcitop
BuildRequires: libbsd-devel libncurses-devel

This project is a rebirth of a direct integration between Bluez and ALSA.

With this application (later named as BlueALSA), one can achieve the same goal
as with PulseAudio, but with less dependencies and more bare-metal-like.
BlueALSA registers all known Bluetooth audio profiles in Bluez, so in theory
every Bluetooth device (with audio capabilities) can be connected. In order to
access the audio stream, one has to connect to the ALSA PCM device called
bluealsa. The device is based on the ALSA software PCM plugin.

%package -n bash-completion-%name
Summary: Bash completion for %name
Group: Shells
BuildArch: noarch
Requires: bash-completion
Requires: %name = %version-%release

%description -n bash-completion-%name
Bash completion for %name.

%package -n hcitop
Summary: a simple dynamic view of HCI activity
Group: System/Configuration/Other

%description -n hcitop
hcitop provides a dynamic real-time view of activity statistics for each
HCI interface. The view is refreshed at regular intervals, and also on demand
by pressing a key. To quit the program press the 'q' key, or use Ctrl-C.

%setup -q
%autopatch -p1

%configure \
%{subst_enable aac} \
%{subst_enable ldac} \
%{subst_enable mpg123} \
%{subst_enable mp3lame} \
%{subst_enable l3plus} \
%{subst_enable debug} \
%{subst_enable test} \
%{subst_enable cli} \
%{?_enable_aptx:--with-libfreeaptx --enable-aptx --enable-aptx-hd} \
--with-alsaconfdir=%_datadir/alsa/alsa.conf.d \
--with-bash-completion \
--with-bluealsauser=%b_user \
--with-bluealsaaplayuser=%b_user \
--enable-systemd \
--enable-upower \
--enable-ofono \
--enable-a2dpconf \
--disable-static \
--enable-manpages \
--enable-msbc \
--enable-faststream \
--enable-rfcomm \
--enable-hcitop \

%make DESTDIR=%buildroot install
install -m0700 -d %buildroot%_localstatedir/%b_user

%if_enabled test
%make check

/usr/sbin/useradd -r -n -g audio -M -s /dev/null -c %b_user %b_user >/dev/null 2>&1 ||:

%exclude %_bindir/hcitop
%exclude %_man1dir/hcitop.1*
%dir %attr(0700,%b_user,root) %_localstatedir/%b_user

%files -n hcitop

%files -n bash-completion-%name


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin