2008-09-15 10:31:24 +02:00
|
|
|
#
|
2011-01-24 16:07:41 +01:00
|
|
|
# spec file for package bluez
|
2008-09-15 10:31:24 +02:00
|
|
|
#
|
2013-01-14 17:48:36 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-01-27 18:50:18 +01:00
|
|
|
# Copyright (c) 2010-2012 B1 Systems GmbH, Vohburg, 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/
|
|
|
|
#
|
|
|
|
|
2012-01-27 18:50:18 +01:00
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
Name: bluez
|
2011-12-27 13:50:19 +01:00
|
|
|
BuildRequires: flex
|
2010-10-11 11:56:33 +02:00
|
|
|
BuildRequires: libcap-ng-devel
|
2013-09-09 11:07:05 +02:00
|
|
|
BuildRequires: systemd-devel
|
2013-01-25 08:57:16 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.4
|
2011-12-18 21:30:51 +01:00
|
|
|
%{?systemd_requires}
|
2013-09-09 11:07:05 +02:00
|
|
|
Version: 5.8
|
2011-12-27 13:50:19 +01:00
|
|
|
Release: 0
|
2008-09-15 10:31:24 +02:00
|
|
|
Summary: Bluetooth Stack for Linux
|
2011-12-18 21:30:51 +01:00
|
|
|
License: GPL-2.0+
|
2008-09-15 10:31:24 +02:00
|
|
|
Group: Hardware/Mobile
|
2013-01-25 08:57:16 +01:00
|
|
|
Url: http://www.bluez.org
|
2013-09-09 11:07:05 +02:00
|
|
|
Source: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz
|
2011-06-23 04:42:33 +02:00
|
|
|
Source5: baselibs.conf
|
2008-09-24 17:21:01 +02:00
|
|
|
Source6: README.SUSE
|
2009-01-08 17:55:14 +01:00
|
|
|
Source7: bluetooth.modprobe
|
2013-02-28 16:01:43 +01:00
|
|
|
Source99: README.packagers
|
2013-09-09 11:07:05 +02:00
|
|
|
Patch1: bluez-5.4-compilerwarning.diff
|
2013-01-25 08:57:16 +01:00
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: check-devel
|
2013-09-09 11:07:05 +02:00
|
|
|
BuildRequires: libical-devel
|
2013-01-25 08:57:16 +01:00
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: udev
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(libnl-1)
|
|
|
|
Recommends: sbc
|
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
|
2013-09-09 11:07:05 +02:00
|
|
|
Obsoletes: bluez-hcidump < 5.0
|
|
|
|
Provides: bluez-hcidump = %{version}
|
|
|
|
Obsoletes: obexd-client < 5.0
|
|
|
|
Provides: obexd-client = %{version}
|
2013-01-25 08:57:16 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-05-05 11:59:41 +02:00
|
|
|
|
2010-04-15 23:52:09 +02:00
|
|
|
# In openSUSE 11.3 there is upstream compliant CUPS 1.4
|
|
|
|
# which means to have a fixed "/usr/lib/cups/" directory
|
|
|
|
# on all platforms (see Novell/Suse Bugzilla bnc#575544):
|
|
|
|
%define cups_lib_dir %{_prefix}/lib/cups
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Bluetooth stack for Linux.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files needed for BlueZ development
|
2011-12-27 13:50:19 +01:00
|
|
|
License: GPL-2.0+
|
2008-09-15 10:31:24 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
%package -n libbluetooth3
|
|
|
|
Summary: Bluetooth Libraries
|
2011-12-27 13:50:19 +01:00
|
|
|
License: GPL-2.0+
|
2008-09-15 10:31:24 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
%package cups
|
|
|
|
Summary: CUPS Driver for Bluetooth Printers
|
2011-12-27 13:50:19 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Hardware/Printing
|
2013-09-09 11:07:05 +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.
|
|
|
|
|
2013-09-09 11:07:05 +02:00
|
|
|
# disabled for now
|
2008-09-15 10:31:24 +02:00
|
|
|
%package test
|
|
|
|
Summary: Tools for testing of various Bluetooth-functions
|
2012-11-05 21:48:35 +01:00
|
|
|
License: GPL-2.0+ and MIT
|
2011-12-27 13:50:19 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2012-03-11 10:01:02 +01:00
|
|
|
Requires: dbus-1-python
|
2013-09-09 11:07:05 +02:00
|
|
|
#Requires: libbluetooth3 = %{version}
|
2012-03-11 10:01:02 +01:00
|
|
|
Requires: python-gobject2
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-02-28 16:01:43 +01:00
|
|
|
%patch1 -p1
|
2013-09-09 11:07:05 +02:00
|
|
|
|
2013-01-25 08:57:16 +01:00
|
|
|
cp %{SOURCE6} .
|
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
|
2013-09-09 11:07:05 +02:00
|
|
|
# autoreconf -fiv
|
2012-07-11 08:36:38 +02:00
|
|
|
%configure --with-pic \
|
2013-09-09 11:07:05 +02:00
|
|
|
--enable-pie \
|
|
|
|
--enable-library \
|
|
|
|
--enable-usb \
|
|
|
|
--enable-tools \
|
|
|
|
--enable-cups \
|
|
|
|
--enable-test \
|
|
|
|
--enable-datafiles
|
2012-07-11 08:36:38 +02:00
|
|
|
|
2010-11-21 23:45:17 +01:00
|
|
|
make %{?_smp_mflags} all V=1
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%install
|
2013-01-25 08:57:16 +01:00
|
|
|
%make_install
|
|
|
|
rm -v %{buildroot}/%{_libdir}/*.la
|
|
|
|
install --mode=0644 -D %{SOURCE7} %{buildroot}/%{_sysconfdir}/modprobe.d/50-bluetooth.conf
|
2010-04-15 23:52:09 +02:00
|
|
|
# In openSUSE 11.3 there is upstream compliant CUPS 1.4
|
|
|
|
# which means to have a fixed "/usr/lib/cups/" directory
|
|
|
|
# on all platforms (see Novell/Suse Bugzilla bnc#575544):
|
|
|
|
if ! test -e %{buildroot}%{cups_lib_dir}/backend/bluetooth
|
|
|
|
then if test -e %{buildroot}%{_libdir}/cups/backend/bluetooth
|
|
|
|
then mkdir -p %{buildroot}%{cups_lib_dir}/backend
|
|
|
|
mv %{buildroot}%{_libdir}/cups/backend/bluetooth %{buildroot}%{cups_lib_dir}/backend/bluetooth
|
|
|
|
fi
|
|
|
|
fi
|
2012-04-28 08:41:54 +02:00
|
|
|
# no idea why this is suddenly necessary...
|
2013-01-25 08:57:16 +01:00
|
|
|
install --mode 0755 -d %{buildroot}%{_localstatedir}/lib/bluetooth
|
2008-09-15 10:31:24 +02:00
|
|
|
|
2011-12-27 13:50:19 +01:00
|
|
|
%check
|
2013-08-15 09:18:33 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2011-12-27 13:50:19 +01:00
|
|
|
make check
|
2013-08-15 09:18:33 +02:00
|
|
|
%endif
|
2011-12-27 13:50:19 +01:00
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%clean
|
2013-01-25 08:57:16 +01:00
|
|
|
rm -rf %{buildroot}
|
2008-09-15 10:31:24 +02:00
|
|
|
|
2011-12-18 21:30:51 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre bluetooth.service
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%post
|
2013-01-21 11:30:56 +01:00
|
|
|
# todo: check if this is still obeyed / needed with systemd
|
2008-09-15 10:31:24 +02:00
|
|
|
%{fillup_only -n bluetooth}
|
2013-01-25 08:57:16 +01:00
|
|
|
# We need the bluez systemd service enabled at any time. It won't start up
|
|
|
|
# on it's own, as it is triggered by udev in the end (bnc#796671)
|
|
|
|
/bin/systemctl enable bluetooth.service 2>&1 || :
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%preun
|
2011-12-18 21:30:51 +01:00
|
|
|
%service_del_preun bluetooth.service
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%postun
|
2011-12-18 21:30:51 +01:00
|
|
|
%service_del_postun bluetooth.service
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%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
|
2013-09-09 11:07:05 +02:00
|
|
|
%{_bindir}/hciattach
|
|
|
|
%{_bindir}/hciconfig
|
|
|
|
%dir /usr/lib/bluetooth
|
|
|
|
/usr/lib/bluetooth/bluetoothd
|
|
|
|
/usr/lib/bluetooth/obexd
|
|
|
|
%{_bindir}/bluetoothctl
|
|
|
|
%{_bindir}/btmon
|
|
|
|
%{_bindir}/hcidump
|
|
|
|
%{_bindir}/bccmd
|
2013-01-25 08:57:16 +01:00
|
|
|
%{_prefix}/lib/udev/
|
2013-09-09 11:07:05 +02:00
|
|
|
%doc %{_mandir}/man1/hcidump.1.gz
|
|
|
|
%doc %{_mandir}/man1/hciattach.1.gz
|
|
|
|
%doc %{_mandir}/man1/hciconfig.1.gz
|
2008-09-15 10:31:24 +02:00
|
|
|
%doc %{_mandir}/man8/bluetoothd.8.gz
|
2013-09-09 11:07:05 +02:00
|
|
|
%doc %{_mandir}/man1/hid2hci.1.gz
|
|
|
|
%doc %{_mandir}/man1/bccmd.1.gz
|
|
|
|
%doc %{_mandir}/man1/l2ping.1.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
|
2009-07-10 16:41:47 +02:00
|
|
|
%doc %{_mandir}/man1/rctest.1.gz
|
2013-09-09 11:07:05 +02:00
|
|
|
#%dir %{_sysconfdir}/bluetooth
|
|
|
|
#%config(noreplace) %{_sysconfdir}/bluetooth/main.conf
|
|
|
|
#%config(noreplace) %{_sysconfdir}/bluetooth/rfcomm.conf
|
2008-09-15 10:31:24 +02:00
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
|
2013-01-25 08:57:16 +01:00
|
|
|
%dir %{_localstatedir}/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
|
2011-12-18 21:30:51 +01:00
|
|
|
%{_unitdir}/bluetooth.service
|
2013-09-09 11:07:05 +02:00
|
|
|
/usr/lib/systemd/user/obex.service
|
2012-07-11 08:36:38 +02:00
|
|
|
%{_datadir}/dbus-1/system-services/org.bluez.service
|
2013-09-09 11:07:05 +02:00
|
|
|
%{_datadir}/dbus-1/services/org.bluez.obex.service
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2013-01-25 08:57:16 +01:00
|
|
|
%{_includedir}/bluetooth
|
2008-09-15 10:31:24 +02:00
|
|
|
%{_libdir}/libbluetooth.so
|
|
|
|
%{_libdir}/pkgconfig/bluez.pc
|
|
|
|
|
|
|
|
%files -n libbluetooth3
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libbluetooth.so.*
|
2012-01-27 18:50:18 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%files cups
|
|
|
|
%defattr(-,root,root)
|
2010-04-15 23:52:09 +02:00
|
|
|
%dir %{cups_lib_dir}
|
|
|
|
%dir %{cups_lib_dir}/backend
|
|
|
|
%{cups_lib_dir}/backend/bluetooth
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%files test
|
|
|
|
%defattr(-,root,root)
|
2013-09-09 11:07:05 +02:00
|
|
|
#{_bindir}/hciemu
|
2008-09-15 10:31:24 +02:00
|
|
|
%{_bindir}/l2test
|
|
|
|
%{_bindir}/rctest
|
2013-09-09 11:07:05 +02:00
|
|
|
%dir %{_libdir}/bluez
|
|
|
|
%{_libdir}/bluez/test
|
2008-11-17 16:42:21 +01:00
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%changelog
|