Репозиторий Sisyphus
Последнее обновление: 24 июня 2022 | Пакетов: 17496 | Посещений: 24437483
en ru br
Репозитории ALT
5.1: 4.47-alt1

Группа :: Сети/Прочее
Пакет: bluez

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

%define git %nil
%define _libexecdir %_prefix/libexec
%def_enable obex
%def_enable btpclient
# since 5.44 the following tools marked as deprecated:
# hciattach hciconfig hcitool hcidump rfcomm sdptool ciptool gatttool
%def_enable deprecated
%def_enable experimental

Name: bluez
Version: 5.64
Release: alt2

Summary: Bluetooth utilities
License: GPL-2.0-or-later
Group: Networking/Other

Url: http://www.bluez.org/
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Packager: L.A. Kostis <lakostis at altlinux.org>

# Change firmware path to correct /lib/firmware

Patch1: bluez-5.55-alt-firmware-path-fixes.patch

# fc

Patch10: 0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
Obsoletes: obex-data-server < 0.4.6-alt3
Conflicts: udev-extras < 169

BuildRequires: glib2-devel libudev-devel libdbus-devel libreadline-devel
BuildRequires: systemd-devel gtk-doc python3-module-docutils
%{?_enable_obex:BuildRequires: libical-devel libicu-devel}
%{?_enable_btpclient:BuildRequires: libell-devel >= 0.39}
# for check
BuildRequires: /proc

Bluetooth protocol stack for Linux

%package -n lib%name
Summary: Libraries for use in Bluetooth applications
Group: System/Libraries
Obsoletes: lib%{name}4

%description -n lib%name
Libraries for use in Bluetooth applications

%package -n lib%name-devel
Summary: Development libraries for Bluetooth applications
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
lib%name-devel contains development libraries and headers for
use in Bluetooth applications

%package cups
Summary: CUPS printer backend for Bluetooth printers
Group: Networking/Other
Requires: %name = %version-%release

%description cups
This package contains the CUPS backend

%package btpclient
Summary: Tester protocol for Bluetooth stack client
Group: Networking/Other
Requires: %name = %version-%release

%description btpclient
BTP stands for Bluetooth Tester Protocol and aims at automated testing of BT
stack. BTP is binary protocol and is already implemented in Zephyr Project.


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

%description -n zsh-completion-%name
Zsh completion for %name.

%patch -p1
%patch1 -p1
%patch10 -p1

export MISC_CFLAGS="%optflags %(getconf LFS_CFLAGS)"
# ugly workaround until
# https://github.com/bluez/bluez/issues/125 fixed
mkdir ell ||:
%configure \
--enable-library \
--enable-threads \
--enable-external-ell \
%{subst_enable obex} \
%{subst_enable btpclient} \
--enable-cups \
--enable-tools \
--enable-hid2hci \
--localstatedir=%_var \
%{subst_enable deprecated} \
%{subst_enable experimental}

%{?_enable_deprecated:install -m755 attrib/gatttool %buildroot%_bindir/}
%{?_enable_btpclient:install -m755 tools/btpclient %buildroot%_bindir/}
install -m755 tools/bneptest %buildroot%_bindir/
install -pD -m755 scripts/bluetooth.alt.init %buildroot%_initdir/bluetoothd
ln -s bluetooth.service %buildroot%_unitdir/bluetoothd.service
mkdir -p %buildroot%_libdir/bluetooth/plugins %buildroot%_localstatedir/bluetooth
# configdir
mkdir -p %buildroot%_sysconfdir/bluetooth
cp -a src/main.conf %buildroot%_sysconfdir/bluetooth/

find %buildroot%_libdir -name \*.la -delete

%make check

%post_service bluetoothd
if [ $1 = 1 ] && "$SYSTEMCTL" --version >/dev/null 2>&1; then
   "$SYSTEMCTL" -q --user --global enable obex.service >/dev/null 2>&1 || :

%preun_service bluetoothd
if [ $1 = 0 ] && "$SYSTEMCTL" --version >/dev/null 2>&1; then
"$SYSTEMCTL" -q --user --global disable obex.service >/dev/null 2>&1 || :

%dir %_sysconfdir/bluetooth
%config %_sysconfdir/bluetooth/main.conf
%config %_sysconfdir/dbus-1/system.d/bluetooth.conf

%if_enabled deprecated


%files -n lib%name

%files -n lib%name-devel

%files cups

%if_enabled btpclient
%files btpclient

%files -n zsh-completion-%name


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

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