2008-09-15 10:31:24 +02:00
|
|
|
#
|
2009-08-06 17:58:03 +02:00
|
|
|
# spec file for package bluez (Version 4.47)
|
2008-09-15 10:31:24 +02:00
|
|
|
#
|
2009-01-08 17:55:14 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-09-15 10:31:24 +02:00
|
|
|
#
|
|
|
|
# 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
|
2009-07-10 16:41:47 +02:00
|
|
|
BuildRequires: alsa-devel libsndfile-devel pkg-config udev
|
2008-09-16 01:32:35 +02:00
|
|
|
Url: http://www.bluez.org
|
2009-08-06 17:58:03 +02:00
|
|
|
Version: 4.47
|
2009-02-06 20:41:16 +01:00
|
|
|
Release: 1
|
2008-09-15 10:31:24 +02:00
|
|
|
Summary: Bluetooth Stack for Linux
|
|
|
|
Group: Hardware/Mobile
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: Hardware/Mobile
|
|
|
|
AutoReqProv: on
|
2008-09-26 15:22:56 +02:00
|
|
|
Source: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.bz2
|
2008-09-24 17:21:01 +02:00
|
|
|
Source3: bluetooth.sysconfig
|
|
|
|
Source4: bluetooth.sh
|
|
|
|
Source6: README.SUSE
|
2009-01-08 17:55:14 +01:00
|
|
|
Source7: bluetooth.modprobe
|
2009-07-10 16:41:47 +02:00
|
|
|
Patch1: bluez-4.44-udev-use-helperscript.diff
|
2008-09-15 10:31:24 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-09-24 15:04:20 +02:00
|
|
|
Provides: bluez-utils = 3.36
|
2008-09-15 10:31:24 +02:00
|
|
|
Obsoletes: bluez-utils <= 3.36
|
2008-09-24 15:04:20 +02:00
|
|
|
Provides: bluez-audio = 3.36
|
|
|
|
Obsoletes: bluez-audio <= 3.36
|
2009-04-18 13:52:46 +02:00
|
|
|
Requires: libbluetooth3 = %{version}
|
2009-07-10 16:41:47 +02:00
|
|
|
%if %( echo `rpm -q --queryformat %%{version} udev` ) < 144
|
|
|
|
%define OLD_UDEV 1
|
|
|
|
%else
|
|
|
|
%define OLD_UDEV 0
|
|
|
|
%endif
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Bluetooth stack for Linux.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marcel Holtmann <marcel@holtmann.org>
|
2008-09-16 01:32:35 +02:00
|
|
|
and others, see AUTHORS
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
License: GPL v2 or later
|
|
|
|
Summary: Files needed for BlueZ development
|
|
|
|
Group: Development/Sources
|
2008-09-15 17:50:20 +02:00
|
|
|
Requires: libbluetooth3 = %{version}
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Files needed to develop applications for the BlueZ Bluetooth protocol
|
|
|
|
stack.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marcel Holtmann <marcel@holtmann.org>
|
2008-09-16 01:32:35 +02:00
|
|
|
and others, see AUTHORS
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%package -n libbluetooth3
|
|
|
|
License: GPL v2 or later
|
|
|
|
Summary: Bluetooth Libraries
|
|
|
|
Group: Hardware/Mobile
|
2008-09-24 15:04:20 +02:00
|
|
|
Provides: bluez-libs = 3.36
|
|
|
|
Obsoletes: bluez-libs <= 3.36
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description -n libbluetooth3
|
|
|
|
Bluetooth protocol stack libraries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marcel Holtmann <marcel@holtmann.org>
|
2008-09-16 01:32:35 +02:00
|
|
|
and others, see AUTHORS in the documentation of the "bluez" package.
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%package cups
|
|
|
|
Group: Hardware/Printing
|
|
|
|
License: GPL v2 or later
|
|
|
|
Summary: CUPS Driver for Bluetooth Printers
|
2008-09-15 17:50:20 +02:00
|
|
|
Requires: libbluetooth3 = %{version}
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description cups
|
|
|
|
Contains the files required by CUPS for printing to Bluetooth-connected
|
|
|
|
printers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marcel Holtmann <marcel@holtmann.org>
|
2008-09-16 01:32:35 +02:00
|
|
|
and others, see AUTHORS in the documentation of the "bluez" package.
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%package test
|
|
|
|
Group: Development/Tools/Debuggers
|
2009-06-29 15:57:05 +02:00
|
|
|
License: GPL v2 or later ; MIT License (or similar)
|
2008-09-15 10:31:24 +02:00
|
|
|
Summary: Tools for testing of various Bluetooth-functions
|
2008-09-15 17:50:20 +02:00
|
|
|
Requires: libbluetooth3 = %{version} python-gobject2 dbus-1-python
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%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>
|
2008-09-16 01:32:35 +02:00
|
|
|
and others, see AUTHORS in the documentation of the "bluez" package.
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%package alsa
|
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
|
|
|
License: GPL v2 or later
|
|
|
|
Summary: Bluetooth Sound Support
|
2008-09-15 17:50:20 +02:00
|
|
|
Requires: libbluetooth3 = %{version}
|
2008-09-24 15:04:20 +02:00
|
|
|
Provides: bluez-audio:%_libdir/alsa-lib/libasound_module_pcm_bluetooth.so
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%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>
|
2008-09-16 01:32:35 +02:00
|
|
|
and others, see AUTHORS in the documentation of the "bluez" package.
|
2008-09-15 10:31:24 +02:00
|
|
|
|
2008-11-17 16:42:21 +01:00
|
|
|
%package compat
|
|
|
|
Group: Hardware/Mobile
|
|
|
|
License: GPL v2 or later
|
2009-01-08 17:55:14 +01:00
|
|
|
Summary: Bluetooth Stack for Linux
|
2008-11-17 16:42:21 +01:00
|
|
|
Requires: libbluetooth3 = %{version}
|
|
|
|
|
|
|
|
%description compat
|
|
|
|
The Bluetooth stack for Linux. This package contains older and partly
|
|
|
|
deprecated binaries that might still be needed for compatibility.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marcel Holtmann <marcel@holtmann.org>
|
|
|
|
and others, see AUTHORS
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-07-10 16:41:47 +02:00
|
|
|
%patch1 -p1
|
2008-09-24 17:21:01 +02:00
|
|
|
cp %{S:6} .
|
2008-09-15 10:31:24 +02:00
|
|
|
%{?suse_update_config:%{suse_update_config -f . }}
|
2008-11-17 16:42:21 +01:00
|
|
|
mkdir dbus-apis
|
|
|
|
cp -a doc/*.txt dbus-apis/
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
# autoreconf -sfi
|
|
|
|
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 \
|
2008-11-17 16:42:21 +01:00
|
|
|
--enable-pand \
|
|
|
|
--enable-dund \
|
2008-09-15 10:31:24 +02:00
|
|
|
--enable-manpages \
|
|
|
|
--enable-configfiles \
|
2009-07-10 16:41:47 +02:00
|
|
|
--enable-pcmcia
|
2008-09-24 17:21:01 +02:00
|
|
|
make %{?jobs:-j %jobs} all
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2008-09-24 17:21:01 +02:00
|
|
|
# bluez-test
|
|
|
|
cd test
|
2008-11-17 16:42:21 +01:00
|
|
|
install --mode=0755 \
|
|
|
|
apitest \
|
2009-06-09 16:57:32 +02:00
|
|
|
simple-agent \
|
|
|
|
simple-service \
|
2008-11-17 16:42:21 +01:00
|
|
|
list-devices \
|
|
|
|
test-adapter \
|
|
|
|
test-device \
|
|
|
|
test-discovery \
|
|
|
|
test-manager \
|
2009-06-09 16:57:32 +02:00
|
|
|
test-network \
|
2008-11-17 16:42:21 +01:00
|
|
|
test-serial \
|
|
|
|
test-service \
|
|
|
|
test-telephony \
|
|
|
|
$RPM_BUILD_ROOT/%{_bindir}/
|
2008-09-24 17:21:01 +02:00
|
|
|
cd ..
|
2008-09-15 10:31:24 +02:00
|
|
|
rm -v $RPM_BUILD_ROOT/%{_libdir}/bluetooth/plugins/*.la $RPM_BUILD_ROOT/%{_libdir}/libbluetooth.la
|
2008-10-14 18:27:04 +02:00
|
|
|
rm -rvf $RPM_BUILD_ROOT/%{_libdir}/gstreamer-*
|
2008-09-24 17:21:01 +02:00
|
|
|
rm -v $RPM_BUILD_ROOT/%{_libdir}/alsa-lib/*.la
|
|
|
|
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
|
2009-03-17 16:53:42 +01:00
|
|
|
install --mode=0644 -D %{S:7} $RPM_BUILD_ROOT/%{_sysconfdir}/modprobe.d/50-bluetooth.conf
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only -n bluetooth}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal bluetooth
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{insserv_cleanup}
|
|
|
|
|
|
|
|
%post -n libbluetooth3 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libbluetooth3 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2008-11-17 16:42:21 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog README README.SUSE dbus-apis
|
2008-09-15 10:31:24 +02:00
|
|
|
%{_bindir}/hcitool
|
|
|
|
%{_bindir}/l2ping
|
|
|
|
%{_bindir}/rfcomm
|
|
|
|
%{_bindir}/sdptool
|
|
|
|
%{_bindir}/ciptool
|
|
|
|
%{_bindir}/dfutool
|
|
|
|
%{_sbindir}/hciattach
|
|
|
|
%{_sbindir}/hciconfig
|
|
|
|
%{_sbindir}/bluetoothd
|
|
|
|
%{_sbindir}/hid2hci
|
|
|
|
%{_sbindir}/bccmd
|
|
|
|
%dir /lib/udev
|
|
|
|
/lib/udev/*
|
2009-07-10 16:41:47 +02:00
|
|
|
%if 0%{OLD_UDEV}
|
|
|
|
%dir %{_sysconfdir}/udev/rules.d
|
|
|
|
%config %{_sysconfdir}/udev/rules.d/*
|
|
|
|
%endif
|
2008-09-15 10:31:24 +02:00
|
|
|
%dir %{_libdir}/bluetooth
|
|
|
|
%dir %{_libdir}/bluetooth/plugins
|
|
|
|
%{_libdir}/bluetooth/plugins/audio.so
|
|
|
|
%{_libdir}/bluetooth/plugins/input.so
|
|
|
|
%{_libdir}/bluetooth/plugins/netlink.so
|
|
|
|
%{_libdir}/bluetooth/plugins/network.so
|
|
|
|
%{_libdir}/bluetooth/plugins/serial.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}/man8/hid2hci.8.gz
|
|
|
|
%doc %{_mandir}/man8/bccmd.8.gz
|
2009-07-10 16:41:47 +02:00
|
|
|
%doc %{_mandir}/man8/l2ping.8.gz
|
2008-09-15 10:31:24 +02:00
|
|
|
%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/dfutool.1.gz
|
2009-07-10 16:41:47 +02:00
|
|
|
%doc %{_mandir}/man1/hciemu.1.gz
|
|
|
|
%doc %{_mandir}/man1/rctest.1.gz
|
2008-09-15 10:31:24 +02:00
|
|
|
%dir %{_sysconfdir}/bluetooth
|
|
|
|
%config(noreplace) %{_sysconfdir}/bluetooth/main.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/bluetooth/rfcomm.conf
|
|
|
|
/var/adm/fillup-templates/sysconfig.bluetooth
|
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
|
|
|
|
#%doc %{_defaultdocdir}/bluez-utils/
|
|
|
|
%dir /var/lib/bluetooth
|
2009-01-08 17:55:14 +01:00
|
|
|
%dir %{_sysconfdir}/modprobe.d
|
2009-03-17 16:53:42 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%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)
|
2008-09-24 17:21:01 +02:00
|
|
|
%{_sbindir}/hciemu
|
2008-09-15 10:31:24 +02:00
|
|
|
%{_bindir}/l2test
|
|
|
|
%{_bindir}/rctest
|
2008-09-24 17:21:01 +02:00
|
|
|
%{_bindir}/apitest
|
|
|
|
%{_bindir}/list-devices
|
2009-06-09 16:57:32 +02:00
|
|
|
%{_bindir}/simple-agent
|
|
|
|
%{_bindir}/simple-service
|
2008-09-24 17:21:01 +02:00
|
|
|
%{_bindir}/test-adapter
|
|
|
|
%{_bindir}/test-device
|
|
|
|
%{_bindir}/test-discovery
|
|
|
|
%{_bindir}/test-manager
|
2009-06-09 16:57:32 +02:00
|
|
|
%{_bindir}/test-network
|
2008-09-24 17:21:01 +02:00
|
|
|
%{_bindir}/test-serial
|
2008-11-17 16:42:21 +01:00
|
|
|
%{_bindir}/test-service
|
2008-10-07 11:07:33 +02:00
|
|
|
%{_bindir}/test-telephony
|
2008-09-15 10:31:24 +02:00
|
|
|
#%{_bindir}/hsmicro
|
|
|
|
#%{_bindir}/hsplay
|
|
|
|
#%{_bindir}/hstest
|
|
|
|
#%{_bindir}/attest
|
|
|
|
#%{_bindir}/passkey-agent
|
|
|
|
#%{_bindir}/auth-agent
|
|
|
|
#%doc %{_defaultdocdir}/bluez-test
|
|
|
|
|
|
|
|
%files alsa
|
|
|
|
%defattr(-,root,root)
|
2009-04-24 17:17:59 +02:00
|
|
|
%dir %{_sysconfdir}/alsa
|
|
|
|
%config %{_sysconfdir}/alsa/bluetooth.conf
|
2008-09-24 17:21:01 +02:00
|
|
|
%{_libdir}/alsa-lib/*.so
|
2008-09-15 10:31:24 +02:00
|
|
|
|
2008-11-17 16:42:21 +01:00
|
|
|
%files compat
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/dund
|
|
|
|
%{_bindir}/pand
|
|
|
|
%doc %{_mandir}/man1/pand.1.gz
|
|
|
|
%doc %{_mandir}/man1/dund.1.gz
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%changelog
|