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 URL: http://www.bluez.org/
21 BuildRequires: alsa-lib-devel >= 1.0.10-1
22 BuildRequires: autoconf >= 2.60
23 BuildRequires: automake
25 BuildRequires: check-devel >= 0.9.6
26 BuildRequires: dbus-devel >= 1.0
27 BuildRequires: glib2-devel >= 1:2.16
28 BuildRequires: gstreamer-devel >= 0.10.30
29 BuildRequires: gstreamer-plugins-base-devel >= 0.10
30 BuildRequires: libcap-ng-devel
31 BuildRequires: libsndfile-devel
32 BuildRequires: libtool
33 BuildRequires: libusb-compat-devel
34 BuildRequires: pkgconfig >= 1:0.9.0
35 BuildRequires: readline-devel
36 BuildRequires: rpmbuild(macros) >= 1.626
37 BuildRequires: udev-devel
38 Requires(post,preun,postun): systemd-units >= 38
39 Requires: %{name}-libs = %{version}-%{release}
40 Requires: glib2 >= 1:2.16
41 Requires: hwdata >= 0.225
43 Requires: systemd-units >= 38
44 Provides: bluez-utils = %{version}-%{release}
45 Obsoletes: bluez-hciemu
48 Obsoletes: bluez-systemd
49 Obsoletes: bluez-utils
50 Obsoletes: bluez-utils-init
51 Conflicts: bluez-bluefw
52 ExcludeArch: s390 s390x
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 # currently lib, not %{_lib} (see cups.spec)
56 %define cupsdir /usr/lib/cups/backend
57 %define udevdir /lib/udev
71 - PCMCIA configuration files
73 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
75 %description -l pl.UTF-8
86 - skrypty startowe (PLD)
87 - pliki konfiguracji PCMCIA
89 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
91 %package -n alsa-plugins-bluetooth
92 Summary: ALSA plugins for Bluetooth audio devices
93 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
95 # bluetoothd + audio service
96 Requires: %{name} = %{version}-%{release}
97 Requires: alsa-lib >= 1.0.10-1
99 %description -n alsa-plugins-bluetooth
100 ALSA plugins for Bluetooth audio devices.
102 %description -n alsa-plugins-bluetooth -l pl.UTF-8
103 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
105 %package -n cups-backend-bluetooth
106 Summary: Bluetooth backend for CUPS
107 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
108 Group: Applications/Printing
109 Requires: bluez-libs >= %{version}-%{release}
112 %description -n cups-backend-bluetooth
113 Bluetooth backend for CUPS.
115 %description -n cups-backend-bluetooth -l pl.UTF-8
116 Backend Bluetooth dla CUPS-a.
118 %package -n gstreamer-bluetooth
119 Summary: Bluetooth support for gstreamer
120 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
122 Requires: bluez-libs >= %{version}-%{release}
123 Requires: gstreamer >= 0.10.30
124 Requires: gstreamer-plugins-base >= 0.10
126 %description -n gstreamer-bluetooth
127 Bluetooth support for gstreamer.
129 %description -n gstreamer-bluetooth -l pl.UTF-8
130 Obsługa Bluetooth dla gstreamera.
133 Summary: Bluetooth libraries
134 Summary(pl.UTF-8): Biblioteki Bluetooth
139 Libraries for use in Bluetooth applications.
141 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
143 %description libs -l pl.UTF-8
144 Biblioteki do używania w aplikacjach Bluetooth.
146 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
149 Summary: Header files for Bluetooth applications
150 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
151 Group: Development/Libraries
152 Requires: %{name}-libs = %{version}-%{release}
153 Obsoletes: bluez-sdp-devel
155 %description libs-devel
156 bluez-libs-devel contains header files for use in Bluetooth
159 %description libs-devel -l pl.UTF-8
160 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
164 Summary: Static Bluetooth libraries
165 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
166 Group: Development/Libraries
167 Requires: %{name}-libs-devel = %{version}-%{release}
168 Obsoletes: bluez-sdp-static
170 %description libs-static
171 bluez-libs-static contains development static libraries for use in
172 Bluetooth applications.
174 %description libs-static -l pl.UTF-8
175 Ten pakiet zawiera biblioteki statyczne, których można używać do
192 --with-ouifile=%{_datadir}/hwdata/oui.txt \
193 --with-systemdsystemunitdir=%{systemdunitdir} \
194 --disable-silent-rules \
215 --enable-thermometer \
222 rulesdir=%{udevdir}/rules.d \
226 rm -rf $RPM_BUILD_ROOT
227 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
228 $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins
231 DESTDIR=$RPM_BUILD_ROOT \
233 rulesdir=%{udevdir}/rules.d \
236 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
237 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
238 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
239 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
240 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
242 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
243 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
244 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
245 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
247 mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
249 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
252 rm -rf $RPM_BUILD_ROOT
255 /sbin/chkconfig --add bluetooth
256 /sbin/chkconfig --add dund
257 /sbin/chkconfig --add pand
258 /sbin/chkconfig --add rfcomm
259 %service bluetooth restart
260 %service dund restart
261 %service pand restart
262 %service rfcomm restart
263 %systemd_post bluetooth.service
266 if [ "$1" = "0" ]; then
267 %service bluetooth stop
271 /sbin/chkconfig --del bluetooth
272 /sbin/chkconfig --del dund
273 /sbin/chkconfig --del pand
274 /sbin/chkconfig --del rfcomm
276 %systemd_preun bluetooth.service
281 %triggerpostun -- bluez < 4.98-3
282 %systemd_trigger bluetooth.service
284 %post libs -p /sbin/ldconfig
285 %postun libs -p /sbin/ldconfig
288 %defattr(644,root,root,755)
289 %doc AUTHORS ChangeLog README
290 %attr(755,root,root) %{_bindir}/ciptool
291 %attr(755,root,root) %{_bindir}/dfutool
292 %attr(755,root,root) %{_bindir}/dund
293 %attr(755,root,root) %{_bindir}/gatttool
294 %attr(755,root,root) %{_bindir}/hcitool
295 %attr(755,root,root) %{_bindir}/hidd
296 %attr(755,root,root) %{_bindir}/l2ping
297 %attr(755,root,root) %{_bindir}/pand
298 %attr(755,root,root) %{_bindir}/rfcomm
299 %attr(755,root,root) %{_bindir}/sdptool
300 %attr(755,root,root) %{_sbindir}/bccmd
301 %attr(755,root,root) %{_sbindir}/bluetoothd
302 %attr(755,root,root) %{_sbindir}/hciattach
303 %attr(755,root,root) %{_sbindir}/hciconfig
304 %dir %{_libdir}/bluetooth
305 %dir %{_libdir}/bluetooth/plugins
306 %dir %{_sysconfdir}/bluetooth
307 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
308 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
309 %attr(754,root,root) /etc/rc.d/init.d/dund
310 %attr(754,root,root) /etc/rc.d/init.d/pand
311 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
312 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
313 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
314 %{systemdunitdir}/bluetooth.service
315 %{_datadir}/dbus-1/system-services/org.bluez.service
316 %attr(755,root,root) %{udevdir}/bluetooth_serial
317 %attr(755,root,root) %{udevdir}/hid2hci
318 %{udevdir}/rules.d/97-bluetooth.rules
319 %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
320 %{udevdir}/rules.d/97-bluetooth-serial.rules
321 %{_mandir}/man1/ciptool.1*
322 %{_mandir}/man1/dfutool.1*
323 %{_mandir}/man1/dund.1*
324 %{_mandir}/man1/hcitool.1*
325 %{_mandir}/man1/hidd.1*
326 %{_mandir}/man1/pand.1*
327 %{_mandir}/man1/rfcomm.1*
328 %{_mandir}/man1/sdptool.1*
329 %{_mandir}/man8/bccmd.8*
330 %{_mandir}/man8/bluetoothd.8*
331 %{_mandir}/man8/hciattach.8*
332 %{_mandir}/man8/hciconfig.8*
333 %{_mandir}/man8/hid2hci.8*
334 %{_mandir}/man8/l2ping.8*
336 %files -n alsa-plugins-bluetooth
337 %defattr(644,root,root,755)
338 %{_sysconfdir}/alsa/bluetooth.conf
339 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
340 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
342 %files -n cups-backend-bluetooth
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
346 %files -n gstreamer-bluetooth
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
353 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_libdir}/libbluetooth.so
358 %{_includedir}/bluetooth
359 %{_pkgconfigdir}/bluez.pc
362 %defattr(644,root,root,755)
363 %{_libdir}/libbluetooth.a