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}/
137 install -D -m 0755 tools/bluemoon $RPM_BUILD_ROOT/%{_bindir}/
139 install -D -m 0755 tools/obexctl %{buildroot}%{_bindir}/obexctl
141 %post -n libbluetooth -p /sbin/ldconfig
143 %postun -n libbluetooth -p /sbin/ldconfig
146 %manifest %{name}.manifest
147 %defattr(-, root, root)
158 /lib/bluetooth/bluetoothd
163 %{_datadir}/dbus-1/system-services/org.bluez.service
164 %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
165 %dir /var/lib/bluetooth
166 %dir %{_sysconfdir}/modprobe.d
167 %config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf
168 %{_unitdir}/bluetooth.service
171 %manifest %{name}.manifest
172 %defattr(-, root, root)
173 /usr/include/bluetooth
174 %{_libdir}/libbluetooth.so
175 %{_libdir}/pkgconfig/bluez.pc
177 %files -n libbluetooth
178 %manifest %{name}.manifest
179 %defattr(-, root, root)
180 %{_libdir}/libbluetooth.so.*
184 %manifest %{name}.manifest
185 %defattr(-,root,root)
187 %dir %{cups_lib_dir}/backend
188 %{cups_lib_dir}/backend/bluetooth
191 %defattr(-,root,root,-)
193 %{_unitdir_user}/obex.service
194 %{_datadir}/dbus-1/services/org.bluez.obex.service
195 %{_sysconfdir}/obex/root-setup.d/000_create-symlinks
196 %{_bindir}/obex-root-setup
199 %manifest %{name}.manifest
200 %defattr(-,root,root)
201 %{_libdir}/bluez/test/*
204 %{_bindir}/bluetoothctl
206 %{_bindir}/mpris-player
207 %{_bindir}/bluetooth-player