1 %define with_libcapng --enable-capng
4 BuildRequires: pkgconfig(dbus-1)
6 BuildRequires: libcap-ng-devel
9 BuildRequires: pkgconfig(alsa)
10 BuildRequires: automake
11 BuildRequires: check-devel
12 BuildRequires: glib2-devel >= 2.16
13 BuildRequires: libsndfile-devel
14 BuildRequires: libtool
15 BuildRequires: libudev-devel
16 BuildRequires: libusb-devel
17 BuildRequires: pkg-config
18 BuildRequires: readline-devel
20 BuildRequires: pkgconfig(libnl-1)
21 BuildRequires: libical-devel
22 BuildRequires: pkgconfig(libtzplatform-config)
23 Url: http://www.bluez.org
26 Summary: Bluetooth Stack for Linux
28 Group: Network & Connectivity/Bluetooth
29 Source: bluez-%{version}.tar.gz
30 Source2: bluez-coldplug.init
31 Source3: bluetooth.sysconfig
33 Source5: baselibs.conf
34 Source7: bluetooth.modprobe
35 Source101: obex-root-setup
36 Source102: create-symlinks
37 Source1001: bluez.manifest
39 %define cups_lib_dir %{_prefix}/lib/cups
42 The Bluetooth stack for Linux.
45 Summary: Files needed for BlueZ development
47 Group: Development/Libraries
48 Requires: libbluetooth = %{version}
51 Files needed to develop applications for the BlueZ Bluetooth protocol
54 %package -n libbluetooth
55 Summary: Bluetooth Libraries
57 Group: Network & Connectivity/Bluetooth
59 %description -n libbluetooth
60 Bluetooth protocol stack libraries.
63 Summary: CUPS Driver for Bluetooth Printers
65 Group: Network & Connectivity/Bluetooth
66 Requires: libbluetooth = %{version}
69 Contains the files required by CUPS for printing to Bluetooth-connected
73 Summary: OBEX Server A basic OBEX server implementation
74 Group: Network & Connectivity/Bluetooth
75 Requires: tizen-platform-config-tools
78 OBEX Server A basic OBEX server implementation.
81 Summary: Tools for testing of various Bluetooth-functions
82 License: GPL-2.0+ and MIT
83 Group: Development/Tools
85 Requires: libbluetooth = %{version}
86 Requires: python-gobject
89 Contains a few tools for testing various bluetooth functions. The
90 BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
99 export CFLAGS="${CFLAGS} -D__TIZEN_PATCH__ -D__BROADCOM_PATCH__"
100 %configure --with-pic \
105 --enable-experimental \
107 --with-systemdunitdir=%{_unitdir} \
109 make %{?_smp_mflags} all V=1
118 rm -rvf $RPM_BUILD_ROOT/%{_libdir}/gstreamer-*
119 install --mode=0755 -D %{S:4} $RPM_BUILD_ROOT/usr/lib/udev/bluetooth.sh
120 install --mode=0644 -D %{S:7} $RPM_BUILD_ROOT/%{_sysconfdir}/modprobe.d/50-bluetooth.conf
121 if ! test -e %{buildroot}%{cups_lib_dir}/backend/bluetooth
122 then if test -e %{buildroot}%{_libdir}/cups/backend/bluetooth
123 then mkdir -p %{buildroot}%{cups_lib_dir}/backend
124 mv %{buildroot}%{_libdir}/cups/backend/bluetooth %{buildroot}%{cups_lib_dir}/backend/bluetooth
127 # no idea why this is suddenly necessary...
128 install --mode 0755 -d $RPM_BUILD_ROOT/var/lib/bluetooth
130 install -D -m 0755 %SOURCE101 %{buildroot}%{_bindir}/obex-root-setup
131 install -D -m 0755 %SOURCE102 %{buildroot}%{_sysconfdir}/obex/root-setup.d/000_create-symlinks
132 install -D -m 0755 tools/btiotest $RPM_BUILD_ROOT/%{_bindir}/
133 install -D -m 0755 tools/bluetooth-player $RPM_BUILD_ROOT/%{_bindir}/
134 install -D -m 0755 tools/mpris-player $RPM_BUILD_ROOT/%{_bindir}/
135 install -D -m 0755 tools/btmgmt $RPM_BUILD_ROOT/%{_bindir}/
136 install -D -m 0755 tools/scotest $RPM_BUILD_ROOT/%{_bindir}/
138 install -D -m 0755 tools/obexctl %{buildroot}%{_bindir}/obexctl
140 %post -n libbluetooth -p /sbin/ldconfig
142 %postun -n libbluetooth -p /sbin/ldconfig
145 %manifest %{name}.manifest
146 %defattr(-, root, root)
157 /lib/bluetooth/bluetoothd
162 %{_datadir}/dbus-1/system-services/org.bluez.service
163 %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
164 %dir /var/lib/bluetooth
165 %dir %{_sysconfdir}/modprobe.d
166 %config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf
167 %{_unitdir}/bluetooth.service
170 %manifest %{name}.manifest
171 %defattr(-, root, root)
172 /usr/include/bluetooth
173 %{_libdir}/libbluetooth.so
174 %{_libdir}/pkgconfig/bluez.pc
176 %files -n libbluetooth
177 %manifest %{name}.manifest
178 %defattr(-, root, root)
179 %{_libdir}/libbluetooth.so.*
183 %manifest %{name}.manifest
184 %defattr(-,root,root)
186 %dir %{cups_lib_dir}/backend
187 %{cups_lib_dir}/backend/bluetooth
190 %defattr(-,root,root,-)
192 %{_unitdir_user}/obex.service
193 %{_datadir}/dbus-1/services/org.bluez.obex.service
194 %{_sysconfdir}/obex/root-setup.d/000_create-symlinks
195 %{_bindir}/obex-root-setup
198 %manifest %{name}.manifest
199 %defattr(-,root,root)
200 %{_libdir}/bluez/test/*
203 %{_bindir}/bluetoothctl
205 %{_bindir}/mpris-player
206 %{_bindir}/bluetooth-player
211 %{_bindir}/bluezutils.py
212 %{_bindir}/dbusdef.py