Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37536521
en ru br
Репозитории ALT
S:5.69-alt1
5.1: 4.47-alt1
www.altlinux.org/Changes

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

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

Name: bluez
Version: 4.47
Release: alt1
Summary: Bluetooth utilities
License: GPLv2+
Group: Networking/Other
URL: http://www.bluez.org/

Packager: Valery Inozemtsev <shrek at altlinux.ru>

Requires: libusb > 1.0-alt2
Requires: lib%{name}4 = %version-%release
Conflicts: bluez-utils < %version-%release

Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires: flex gst-plugins-devel gtk-doc libalsa-devel libdbus-devel libnl-devel libsndfile-devel libusb-compat-devel

%description
Bluetooth protocol stack for Linux

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

%description -n lib%{name}4
Libraries for use in Bluetooth applications.

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

%description -n lib%{name}4-devel
lib%{name}4-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
Conflicts: %name-utils-cups < %version-%release

%description cups
This package contains the CUPS backend

%package gstreamer
Summary: GStreamer support for SBC audio format
Group: Networking/Other
Requires: %name = %version-%release
Conflicts: %name-utils-gstreamer < %version-%release

%description gstreamer
This package contains gstreamer plugins for the Bluetooth SBC audio format

%package alsa
Summary: ALSA support for Bluetooth audio devices
Group: Networking/Other
Requires: %name = %version-%release
Conflicts: %name-utils-alsa < %version-%release

%description alsa
This package contains ALSA support for Bluetooth audio devices

%prep
%setup -q
%patch -p1

%build
%autoreconf
%configure \
--enable-cups \
--enable-hid2hci \
--enable-dfutool \
--enable-tools \
--enable-bccmd \
--enable-gstreamer \
--enable-hidd \
--enable-pand \
--enable-dund \
--enable-netlink \
--enable-gtk-doc \
--enable-initscripts \
--disable-udevrules \
--localstatedir=%_var
%make_build

%install
%make DESTDIR=%buildroot install

install -pD -m644 scripts/90-bluetooth-hid2hci.rules %buildroot%_sysconfdir/udev/rules.d/90-bluetooth-hid2hci.rules
install -pD -m755 scripts/bluetooth.alt.init %buildroot%_initdir/bluetoothd
install -m644 audio/audio.conf \
input/input.conf \
network/network.conf \
serial/serial.conf \
src/hcid.conf \
%buildroot%_sysconfdir/bluetooth/

mkdir %buildroot%_sysconfdir/modprobe.d
cat > %buildroot%_sysconfdir/modprobe.d/btusb << __EOF__
# use "reset=1" as default, since it should be safe for recent devices and
# solves all kind of problems.
options btusb reset=1
__EOF__

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

%post
%post_service bluetoothd
if [ $1 = 1 ]; then
chkconfig bluetoothd on
fi

%preun
%preun_service bluetoothd

%triggerin -- %name <= 4.37-alt1
chkconfig bluetoothd on

%files
%_initdir/bluetoothd
%dir %_sysconfdir/bluetooth
%config(noreplace) %_sysconfdir/bluetooth/*
%config(noreplace) %_sysconfdir/udev/rules.d/90-bluetooth-hid2hci.rules
%config %_sysconfdir/dbus-1/system.d/bluetooth.conf
%_sysconfdir/modprobe.d/btusb
/sbin/*
%_bindir/*
%_sbindir/*
%_libdir/bluetooth
%_localstatedir/bluetooth
%_man1dir/*.1*
%_man8dir/*.8*

%files -n lib%{name}4
%doc AUTHORS ChangeLog README
%_libdir/*.so.*

%files -n lib%{name}4-devel
%_includedir/bluetooth
%_libdir/*.so
%_pkgconfigdir/*.pc
%_datadir/gtk-doc/html/bluez

%files cups
%_prefix/lib/cups/backend/bluetooth

%files gstreamer
%_libdir/gstreamer-*/*.so

%files alsa
%dir %_sysconfdir/alsa
%config(noreplace) %_sysconfdir/alsa/bluetooth.conf
%_libdir/alsa-lib/*.so

%changelog

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

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