1 Summary: Bluetooth utilities
2 Summary(pl.UTF-8): Narzędzia Bluetooth
7 Group: Applications/System
8 #Source0Download: http://www.bluez.org/download.html
9 Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.bz2
10 # Source0-md5: 2387053eb5a7b02f37df4871df022a02
12 Source2: %{name}.sysconfig
16 Patch0: %{name}-etc_dir.patch
17 Patch1: %{name}-wacom-mode-2.patch
18 Patch2: %{name}-systemd.patch
19 Patch3: %{name}-audio_socket.patch
20 Patch4: udev-deprecated.patch
21 URL: http://www.bluez.org/
22 BuildRequires: alsa-lib-devel >= 1.0.10-1
23 BuildRequires: autoconf >= 2.60
24 BuildRequires: automake
26 BuildRequires: check-devel >= 0.9.6
27 BuildRequires: dbus-devel >= 1.0
28 BuildRequires: glib2-devel >= 1:2.16
29 BuildRequires: gstreamer-devel >= 0.10.30
30 BuildRequires: gstreamer-plugins-base-devel >= 0.10
31 BuildRequires: libcap-ng-devel
32 BuildRequires: libsndfile-devel
33 BuildRequires: libtool
34 BuildRequires: libusb-compat-devel
35 BuildRequires: pkgconfig >= 1:0.9.0
36 BuildRequires: readline-devel
37 BuildRequires: rpmbuild(macros) >= 1.626
38 BuildRequires: udev-devel
39 Requires(post,preun,postun): systemd-units >= 38
40 Requires: %{name}-libs = %{version}-%{release}
41 Requires: glib2 >= 1:2.16
42 Requires: hwdata >= 0.225
44 Requires: systemd-units >= 38
45 Provides: bluez-utils = %{version}-%{release}
46 Obsoletes: bluez-hciemu
49 Obsoletes: bluez-systemd
50 Obsoletes: bluez-utils
51 Obsoletes: bluez-utils-init
52 Conflicts: bluez-bluefw
53 ExcludeArch: s390 s390x
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 # currently lib, not %{_lib} (see cups.spec)
57 %define cupsdir /usr/lib/cups/backend
58 %define udevdir /lib/udev
72 - PCMCIA configuration files
74 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
76 %description -l pl.UTF-8
87 - skrypty startowe (PLD)
88 - pliki konfiguracji PCMCIA
90 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
92 %package -n alsa-plugins-bluetooth
93 Summary: ALSA plugins for Bluetooth audio devices
94 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
96 # bluetoothd + audio service
97 Requires: %{name} = %{version}-%{release}
98 Requires: alsa-lib >= 1.0.10-1
100 %description -n alsa-plugins-bluetooth
101 ALSA plugins for Bluetooth audio devices.
103 %description -n alsa-plugins-bluetooth -l pl.UTF-8
104 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
106 %package -n cups-backend-bluetooth
107 Summary: Bluetooth backend for CUPS
108 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
109 Group: Applications/Printing
110 Requires: bluez-libs >= %{version}-%{release}
113 %description -n cups-backend-bluetooth
114 Bluetooth backend for CUPS.
116 %description -n cups-backend-bluetooth -l pl.UTF-8
117 Backend Bluetooth dla CUPS-a.
119 %package -n gstreamer-bluetooth
120 Summary: Bluetooth support for gstreamer
121 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
123 Requires: bluez-libs >= %{version}-%{release}
124 Requires: gstreamer >= 0.10.30
125 Requires: gstreamer-plugins-base >= 0.10
127 %description -n gstreamer-bluetooth
128 Bluetooth support for gstreamer.
130 %description -n gstreamer-bluetooth -l pl.UTF-8
131 Obsługa Bluetooth dla gstreamera.
134 Summary: Bluetooth libraries
135 Summary(pl.UTF-8): Biblioteki Bluetooth
140 Libraries for use in Bluetooth applications.
142 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
144 %description libs -l pl.UTF-8
145 Biblioteki do używania w aplikacjach Bluetooth.
147 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
150 Summary: Header files for Bluetooth applications
151 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
152 Group: Development/Libraries
153 Requires: %{name}-libs = %{version}-%{release}
154 Obsoletes: bluez-sdp-devel
156 %description libs-devel
157 bluez-libs-devel contains header files for use in Bluetooth
160 %description libs-devel -l pl.UTF-8
161 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
165 Summary: Static Bluetooth libraries
166 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
167 Group: Development/Libraries
168 Requires: %{name}-libs-devel = %{version}-%{release}
169 Obsoletes: bluez-sdp-static
171 %description libs-static
172 bluez-libs-static contains development static libraries for use in
173 Bluetooth applications.
175 %description libs-static -l pl.UTF-8
176 Ten pakiet zawiera biblioteki statyczne, których można używać do
194 --with-ouifile=%{_datadir}/hwdata/oui.txt \
195 --with-systemdsystemunitdir=%{systemdunitdir} \
196 --disable-silent-rules \
217 --enable-thermometer \
224 rulesdir=%{udevdir}/rules.d \
228 rm -rf $RPM_BUILD_ROOT
229 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
230 $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins
233 DESTDIR=$RPM_BUILD_ROOT \
235 rulesdir=%{udevdir}/rules.d \
238 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
239 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
240 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
241 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
242 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
244 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
245 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
246 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
247 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
249 mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
251 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
254 rm -rf $RPM_BUILD_ROOT
257 /sbin/chkconfig --add bluetooth
258 /sbin/chkconfig --add dund
259 /sbin/chkconfig --add pand
260 /sbin/chkconfig --add rfcomm
261 %service bluetooth restart
262 %service dund restart
263 %service pand restart
264 %service rfcomm restart
265 %systemd_post bluetooth.service
268 if [ "$1" = "0" ]; then
269 %service bluetooth stop
273 /sbin/chkconfig --del bluetooth
274 /sbin/chkconfig --del dund
275 /sbin/chkconfig --del pand
276 /sbin/chkconfig --del rfcomm
278 %systemd_preun bluetooth.service
283 %triggerpostun -- bluez < 4.98-3
284 %systemd_trigger bluetooth.service
286 %post libs -p /sbin/ldconfig
287 %postun libs -p /sbin/ldconfig
290 %defattr(644,root,root,755)
291 %doc AUTHORS ChangeLog README
292 %attr(755,root,root) %{_bindir}/ciptool
293 %attr(755,root,root) %{_bindir}/dfutool
294 %attr(755,root,root) %{_bindir}/dund
295 %attr(755,root,root) %{_bindir}/gatttool
296 %attr(755,root,root) %{_bindir}/hcitool
297 %attr(755,root,root) %{_bindir}/hidd
298 %attr(755,root,root) %{_bindir}/l2ping
299 %attr(755,root,root) %{_bindir}/pand
300 %attr(755,root,root) %{_bindir}/rfcomm
301 %attr(755,root,root) %{_bindir}/sdptool
302 %attr(755,root,root) %{_sbindir}/bccmd
303 %attr(755,root,root) %{_sbindir}/bluetoothd
304 %attr(755,root,root) %{_sbindir}/hciattach
305 %attr(755,root,root) %{_sbindir}/hciconfig
306 %dir %{_libdir}/bluetooth
307 %dir %{_libdir}/bluetooth/plugins
308 %dir %{_sysconfdir}/bluetooth
309 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
310 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
311 %attr(754,root,root) /etc/rc.d/init.d/dund
312 %attr(754,root,root) /etc/rc.d/init.d/pand
313 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
314 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
315 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
316 %{systemdunitdir}/bluetooth.service
317 %{_datadir}/dbus-1/system-services/org.bluez.service
318 %attr(755,root,root) %{udevdir}/bluetooth_serial
319 %attr(755,root,root) %{udevdir}/hid2hci
320 %{udevdir}/rules.d/97-bluetooth.rules
321 %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
322 %{udevdir}/rules.d/97-bluetooth-serial.rules
323 %{_mandir}/man1/ciptool.1*
324 %{_mandir}/man1/dfutool.1*
325 %{_mandir}/man1/dund.1*
326 %{_mandir}/man1/hcitool.1*
327 %{_mandir}/man1/hidd.1*
328 %{_mandir}/man1/pand.1*
329 %{_mandir}/man1/rfcomm.1*
330 %{_mandir}/man1/sdptool.1*
331 %{_mandir}/man8/bccmd.8*
332 %{_mandir}/man8/bluetoothd.8*
333 %{_mandir}/man8/hciattach.8*
334 %{_mandir}/man8/hciconfig.8*
335 %{_mandir}/man8/hid2hci.8*
336 %{_mandir}/man8/l2ping.8*
338 %files -n alsa-plugins-bluetooth
339 %defattr(644,root,root,755)
340 %{_sysconfdir}/alsa/bluetooth.conf
341 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
342 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
344 %files -n cups-backend-bluetooth
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
348 %files -n gstreamer-bluetooth
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
355 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
358 %defattr(644,root,root,755)
359 %attr(755,root,root) %{_libdir}/libbluetooth.so
360 %{_includedir}/bluetooth
361 %{_pkgconfigdir}/bluez.pc
364 %defattr(644,root,root,755)
365 %{_libdir}/libbluetooth.a