bluez/bluez.spec

426 lines
13 KiB
RPMSpec

#
# spec file for package bluez (Version 4.16)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: bluez
BuildRequires: dbus-1-devel flex
BuildRequires: glib2-devel libnl-devel libusb-devel
BuildRequires: alsa-devel libsndfile-devel
Url: http://www.bluez.org
Version: 4.16
Release: 1
Summary: Bluetooth Stack for Linux
Group: Hardware/Mobile
License: GPL v2 or later
Group: Hardware/Mobile
AutoReqProv: on
Source: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.bz2
Source1: bluetooth.init
Source2: bluetooth-coldplug.init
Source3: bluetooth.sysconfig
Source4: bluetooth.sh
Source5: org.bluez.service
Source6: README.SUSE
Patch1: bluez-utils-3.8-bluetooth.rules.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: bluez-utils = 3.36
Obsoletes: bluez-utils <= 3.36
Provides: bluez-audio = 3.36
Obsoletes: bluez-audio <= 3.36
%description
The Bluetooth stack for Linux.
Authors:
--------
Marcel Holtmann <marcel@holtmann.org>
and others, see AUTHORS
%package devel
License: GPL v2 or later
Summary: Files needed for BlueZ development
Group: Development/Sources
Requires: libbluetooth3 = %{version}
%description devel
Files needed to develop applications for the BlueZ Bluetooth protocol
stack.
Authors:
--------
Marcel Holtmann <marcel@holtmann.org>
and others, see AUTHORS
%package -n libbluetooth3
License: GPL v2 or later
Summary: Bluetooth Libraries
Group: Hardware/Mobile
Provides: bluez-libs = 3.36
Obsoletes: bluez-libs <= 3.36
%description -n libbluetooth3
Bluetooth protocol stack libraries.
Authors:
--------
Marcel Holtmann <marcel@holtmann.org>
and others, see AUTHORS in the documentation of the "bluez" package.
%package cups
Group: Hardware/Printing
License: GPL v2 or later
Summary: CUPS Driver for Bluetooth Printers
Requires: libbluetooth3 = %{version}
%description cups
Contains the files required by CUPS for printing to Bluetooth-connected
printers.
Authors:
--------
Marcel Holtmann <marcel@holtmann.org>
and others, see AUTHORS in the documentation of the "bluez" package.
%package test
Group: Development/Tools/Debuggers
License: GPL v2 or later; X11/MIT
Summary: Tools for testing of various Bluetooth-functions
Requires: libbluetooth3 = %{version} python-gobject2 dbus-1-python
%description test
Contains a few tools for testing various bluetooth functions. The
BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
Authors:
--------
Marcel Holtmann <marcel@holtmann.org>
and others, see AUTHORS in the documentation of the "bluez" package.
%package alsa
Group: Productivity/Multimedia/Sound/Utilities
License: GPL v2 or later
Summary: Bluetooth Sound Support
Requires: libbluetooth3 = %{version}
Provides: bluez-audio:%_libdir/alsa-lib/libasound_module_pcm_bluetooth.so
%description alsa
The package contains libraries for using bluetooth audio services.
The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., USA.
Authors:
--------
Marcel Holtmann <marcel@holtmann.org>
and others, see AUTHORS in the documentation of the "bluez" package.
%prep
%setup -q
%patch1 -p0
cp %{S:1} scripts/
cp %{S:6} .
%{?suse_update_config:%{suse_update_config -f . }}
%build
#autoreconf -sfi
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix --libdir=%_libdir --localstatedir=%_localstatedir
#make
#%build
#cd ../bluez-utils-%{version}
# autoreconf -sfi
# CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -g" \
CFLAGS="$RPM_OPT_FLAGS -g" \
./configure --prefix=%{_prefix} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--libexecdir=/lib \
--localstatedir=/var \
--enable-gstreamer \
--enable-alsa \
--enable-usb \
--enable-netlink \
--enable-tools \
--enable-bccmd \
--enable-hid2hci \
--enable-dfutool \
--enable-cups \
--enable-test \
--enable-manpages \
--enable-configfiles \
--enable-initscripts \
--enable-pcmciarules
make %{?jobs:-j %jobs} all
%install
make DESTDIR=$RPM_BUILD_ROOT install
# bluez-test
cd test
install --mode=0755 apitest list-devices test-adapter test-device test-discovery test-manager test-serial test-telephony $RPM_BUILD_ROOT/%{_bindir}/
cd ..
rm -v $RPM_BUILD_ROOT/%{_libdir}/bluetooth/plugins/*.la $RPM_BUILD_ROOT/%{_libdir}/libbluetooth.la
rm -rvf $RPM_BUILD_ROOT/%{_libdir}/gstreamer-*
rm -v $RPM_BUILD_ROOT/%{_libdir}/alsa-lib/*.la
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d
mv -v $RPM_BUILD_ROOT/%{_sysconfdir}/udev/bluetooth.rules $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/40-bluetooth.rules
install --mode=0755 -D %{S:2} $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/bluetooth-coldplug
install --mode=0644 -D %{S:3} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.bluetooth
install --mode=0755 -D %{S:4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
install --mode=0644 -D %{S:5} $RPM_BUILD_ROOT/usr/share/dbus-1/system-services/org.bluez.service
ln -s ../../etc/init.d/bluetooth $RPM_BUILD_ROOT/usr/sbin/rcbluetooth
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{fillup_only -n bluetooth}
/sbin/insserv -f /etc/init.d/bluetooth-coldplug
%preun
%stop_on_removal bluetooth
%postun
%{insserv_cleanup}
%post -n libbluetooth3 -p /sbin/ldconfig
%postun -n libbluetooth3 -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README README.SUSE
/etc/init.d/bluetooth
/etc/init.d/bluetooth-coldplug
%{_bindir}/hcitool
%{_bindir}/l2ping
%{_bindir}/rfcomm
%{_bindir}/sdptool
%{_bindir}/ciptool
%{_bindir}/dfutool
%{_sbindir}/hciattach
%{_sbindir}/hciconfig
%{_sbindir}/bluetoothd
%{_sbindir}/hid2hci
%{_sbindir}/rcbluetooth
%{_sbindir}/bccmd
%dir %{_sysconfdir}/udev
%dir /lib/udev
/lib/udev/*
%dir %{_libdir}/bluetooth
%dir %{_libdir}/bluetooth/plugins
%{_libdir}/bluetooth/plugins/audio.so
%{_libdir}/bluetooth/plugins/input.so
%{_libdir}/bluetooth/plugins/hal.so
%{_libdir}/bluetooth/plugins/netlink.so
%{_libdir}/bluetooth/plugins/network.so
%{_libdir}/bluetooth/plugins/serial.so
%{_libdir}/bluetooth/plugins/service.so
%doc %{_mandir}/man8/hciattach.8.gz
%doc %{_mandir}/man8/hciconfig.8.gz
#%doc %{_mandir}/man5/hcid.conf.5.gz
%doc %{_mandir}/man8/bluetoothd.8.gz
%doc %{_mandir}/man1/pand.1.gz
%doc %{_mandir}/man1/dund.1.gz
%doc %{_mandir}/man8/hid2hci.8.gz
%doc %{_mandir}/man8/bccmd.8.gz
%doc %{_mandir}/man1/hcitool.1.gz
%doc %{_mandir}/man1/sdptool.1.gz
%doc %{_mandir}/man1/ciptool.1.gz
%doc %{_mandir}/man1/rfcomm.1.gz
%doc %{_mandir}/man1/l2ping.1.gz
%doc %{_mandir}/man1/dfutool.1.gz
%dir %{_sysconfdir}/bluetooth
%config(noreplace) %{_sysconfdir}/bluetooth/main.conf
%config(noreplace) %{_sysconfdir}/bluetooth/rfcomm.conf
%config %{_sysconfdir}/default/bluetooth
/var/adm/fillup-templates/sysconfig.bluetooth
%config %{_sysconfdir}/udev/rules.d
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
%config /usr/share/dbus-1/system-services/org.bluez.service
#%doc %{_defaultdocdir}/bluez-utils/
%dir /var/lib/bluetooth
%files devel
%defattr(-, root, root)
/usr/include/bluetooth
%{_libdir}/libbluetooth.so
%{_libdir}/pkgconfig/bluez.pc
#%{_datadir}/aclocal/bluez.m4
%files -n libbluetooth3
%defattr(-, root, root)
%{_libdir}/libbluetooth.so.*
%doc AUTHORS COPYING INSTALL ChangeLog README
%files cups
%defattr(-,root,root)
%dir %{_libdir}/cups
%dir %{_libdir}/cups/backend
%{_libdir}/cups/backend/bluetooth
#%doc %{_defaultdocdir}/bluez-cups
%files test
%defattr(-,root,root)
%{_sbindir}/hciemu
%{_bindir}/l2test
%{_bindir}/rctest
%{_bindir}/apitest
%{_bindir}/list-devices
%{_bindir}/test-adapter
%{_bindir}/test-device
%{_bindir}/test-discovery
%{_bindir}/test-manager
%{_bindir}/test-serial
%{_bindir}/test-telephony
#%{_bindir}/hsmicro
#%{_bindir}/hsplay
#%{_bindir}/hstest
#%{_bindir}/attest
#%{_bindir}/passkey-agent
#%{_bindir}/auth-agent
#%doc %{_defaultdocdir}/bluez-test
%files alsa
%defattr(-,root,root)
%{_libdir}/alsa-lib/*.so
%changelog
* Wed Oct 22 2008 seife@suse.de
- update to bluez-4.16:
"This release fixes two potential crashes within bluetoothd.
It is strongly advised to upgrade to this version."
- Fix wrong parameter usage of watch callbacks.
- Fix parameters for callback upon path removal.
- Fix unloading of adapter drivers.
ver 4.15:
- Fix various A2DP state machine issues.
- Fix some issues with the Handsfree error reporting.
- Fix format string warnings with recent GCC versions.
- Remove dependency on GModule.
* Sat Oct 18 2008 seife@suse.de
- update to bluez-4.14:
- Fix types of property arrays.
- Fix potential crash with input devices.
- Fix PS3 BD remote input event generation.
- Allow dynamic adapter driver registration.
- Update udev rules.
* Tue Oct 14 2008 seife@suse.de
- split up bluez and bluez-gstreamer to avoid circular dependencies
* Mon Oct 13 2008 seife@suse.de
- update to bluez-4.13:
- Fix service discovery and UUID handling.
- Fix bonding issues with Simple Pairing.
- Fix file descriptor misuse of SCO connections.
- Fix various memory leaks in the device handling.
- Fix AVCTP disconnect handling.
- Fix GStreamer modes for MP3 encoding.
- Add operator selection to Handsfree support.
* Mon Oct 06 2008 seife@suse.de
- update to bluez-4.12:
- Fix crash with missing icon value.
- Fix error checks of HAL plugin.
- Fix SCO server socket cleanup on exit.
- Fix memory leaks from DBusPendingCall.
- Fix handling of pending authorization requests.
- Fix missing protocol UUIDs in record pattern.
* Sun Oct 05 2008 seife@suse.de
- update to bluez-4.11:
- Change SCO server socket into a generic one. Should fix
connection issues with headsets.
- Fix uninitialized reply of multiple GetProperties methods.
* Sat Oct 04 2008 seife@suse.de
- update to bluez-4.10:
- Fix memory leaks with HAL messages.
- Add more advanced handsfree features.
- Add properties to audio, input and network interfaces.
- Stop device discovery timer on device removal.
* Mon Sep 29 2008 seife@suse.de
- update to bluez-4.9:
- Fix signals for Powered and Discoverable properties.
- Fix handling of Alias and Icon properties.
- Fix duplicate entries for service UUIDs.
Mon Sep2y 09:36:31 CEST 2008 - seife@suse.de
- update to bluez-4.8:
- fix two bluetoothd crashes during device pairing
- reenable HAL plugin, no need for libhal anymore
- hciconfig and hcitool now show all extended features pages
(important because page 1 indicates simple pairing support)
* Sat Sep 27 2008 seife@suse.de
- fix a crash when e.g. connecting a new input device
* Fri Sep 26 2008 seife@suse.de
- update to bluez-4.7:
- Fix pairing and service discovery logic.
- Fix crashes during suspend and resume.
- Fix race condition within devdown mode.
- Add RequestSession and ReleaseSession methods.
- Add Powered and Discoverable properties.
- Add Devices property and deprecate ListDevices.
- Add workaround for a broken carkit from Nokia.
- removed bluez-4.6-fix-bluetoothd-crash-after-suspend.diff
* Thu Sep 25 2008 seife@suse.de
- fix a bluetoothd crash after resume
* Wed Sep 24 2008 seife@suse.de
- use /dev/shm instead of /var/run for the coldplug-marker, since
/var/run is cleaned up later in the boot process
* Tue Sep 23 2008 seife@suse.de
- add more useful stuff to bluez-test
- add dbus-activation of bluetoothd
- use dbus-activation to start on adapter hotplug event
- add bluetooth-coldplug init script to make sure that bluetoothd
is started when adapter is plugged in before DBus is started
- add "Provides: bluez-utils" to bluez, to help the solver
* Wed Sep 17 2008 dmueller@suse.de
- add missing splitprovides
- fix bluez-utils rename
- remove bogus bluez provide
* Tue Sep 16 2008 seife@suse.de
- update to bluez-4.6:
* add a smooth upgrade path of configured input devices from
BlueZ 3.x to the 4.x series
* fix a couple of regressions with the adapter initialization and
the input service
Detailed changelog:
version 4.6:
* Fix Device ID record handling.
* Fix service browsing and storage.
* Fix authentication and encryption for input devices.
* Fix adapter name initialization.
version 4.5:
* Fix initialization issue with new adapters.
* Send HID authentication request without blocking.
* Hide the verbose SDP debug behind SDP_DEBUG.
* Add extra UUIDs for service discovery.
* Add SCO server socket listener.
* Add authorization support to service plugin.
* Mon Sep 15 2008 dmueller@suse.de
- fix devel package requires
* Tue Sep 09 2008 seife@suse.de
- initial checkin of BlueZ 4