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: %{name}-libs = %{version}-%{release}
39 Requires: glib2 >= 1:2.16
40 Requires: hwdata >= 0.225
42 Requires: systemd-units >= 37-0.10
43 Provides: bluez-utils = %{version}-%{release}
44 Obsoletes: bluez-hciemu
47 Obsoletes: bluez-systemd
48 Obsoletes: bluez-utils
49 Obsoletes: bluez-utils-init
50 Conflicts: bluez-bluefw
51 ExcludeArch: s390 s390x
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 # currently lib, not %{_lib} (see cups.spec)
55 %define cupsdir /usr/lib/cups/backend
56 %define udevdir /lib/udev
70 - PCMCIA configuration files
72 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
74 %description -l pl.UTF-8
85 - skrypty startowe (PLD)
86 - pliki konfiguracji PCMCIA
88 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
90 %package -n alsa-plugins-bluetooth
91 Summary: ALSA plugins for Bluetooth audio devices
92 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
94 # bluetoothd + audio service
95 Requires: %{name} = %{version}-%{release}
96 Requires: alsa-lib >= 1.0.10-1
98 %description -n alsa-plugins-bluetooth
99 ALSA plugins for Bluetooth audio devices.
101 %description -n alsa-plugins-bluetooth -l pl.UTF-8
102 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
104 %package -n cups-backend-bluetooth
105 Summary: Bluetooth backend for CUPS
106 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
107 Group: Applications/Printing
108 Requires: bluez-libs >= %{version}-%{release}
111 %description -n cups-backend-bluetooth
112 Bluetooth backend for CUPS.
114 %description -n cups-backend-bluetooth -l pl.UTF-8
115 Backend Bluetooth dla CUPS-a.
117 %package -n gstreamer-bluetooth
118 Summary: Bluetooth support for gstreamer
119 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
121 Requires: bluez-libs >= %{version}-%{release}
122 Requires: gstreamer >= 0.10.30
123 Requires: gstreamer-plugins-base >= 0.10
125 %description -n gstreamer-bluetooth
126 Bluetooth support for gstreamer.
128 %description -n gstreamer-bluetooth -l pl.UTF-8
129 Obsługa Bluetooth dla gstreamera.
132 Summary: Bluetooth libraries
133 Summary(pl.UTF-8): Biblioteki Bluetooth
138 Libraries for use in Bluetooth applications.
140 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
142 %description libs -l pl.UTF-8
143 Biblioteki do używania w aplikacjach Bluetooth.
145 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
148 Summary: Header files for Bluetooth applications
149 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
150 Group: Development/Libraries
151 Requires: %{name}-libs = %{version}-%{release}
152 Obsoletes: bluez-sdp-devel
154 %description libs-devel
155 bluez-libs-devel contains header files for use in Bluetooth
158 %description libs-devel -l pl.UTF-8
159 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
163 Summary: Static Bluetooth libraries
164 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
165 Group: Development/Libraries
166 Requires: %{name}-libs-devel = %{version}-%{release}
167 Obsoletes: bluez-sdp-static
169 %description libs-static
170 bluez-libs-static contains development static libraries for use in
171 Bluetooth applications.
173 %description libs-static -l pl.UTF-8
174 Ten pakiet zawiera biblioteki statyczne, których można używać do
191 --with-ouifile=%{_datadir}/hwdata/oui.txt \
192 --with-systemdsystemunitdir=%{systemdunitdir} \
193 --disable-silent-rules \
214 --enable-thermometer \
221 rulesdir=%{udevdir}/rules.d \
225 rm -rf $RPM_BUILD_ROOT
226 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
229 DESTDIR=$RPM_BUILD_ROOT \
231 rulesdir=%{udevdir}/rules.d \
234 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
235 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
236 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
237 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
238 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
240 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
241 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
242 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
243 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
245 mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
247 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
250 rm -rf $RPM_BUILD_ROOT
253 /sbin/chkconfig --add bluetooth
254 /sbin/chkconfig --add dund
255 /sbin/chkconfig --add pand
256 /sbin/chkconfig --add rfcomm
257 %service bluetooth restart
258 %service dund restart
259 %service pand restart
260 %service rfcomm restart
261 %systemd_post bluetooth.service
264 if [ "$1" = "0" ]; then
265 %service bluetooth stop
269 /sbin/chkconfig --del bluetooth
270 /sbin/chkconfig --del dund
271 /sbin/chkconfig --del pand
272 /sbin/chkconfig --del rfcomm
274 %systemd_preun bluetooth.service
279 %triggerpostun -- bluez < 4.98-3
280 %systemd_trigger bluetooth.service
282 %post libs -p /sbin/ldconfig
283 %postun libs -p /sbin/ldconfig
286 %defattr(644,root,root,755)
287 %doc AUTHORS ChangeLog README
288 %attr(755,root,root) %{_bindir}/ciptool
289 %attr(755,root,root) %{_bindir}/dfutool
290 %attr(755,root,root) %{_bindir}/dund
291 %attr(755,root,root) %{_bindir}/gatttool
292 %attr(755,root,root) %{_bindir}/hcitool
293 %attr(755,root,root) %{_bindir}/hidd
294 %attr(755,root,root) %{_bindir}/l2ping
295 %attr(755,root,root) %{_bindir}/pand
296 %attr(755,root,root) %{_bindir}/rfcomm
297 %attr(755,root,root) %{_bindir}/sdptool
298 %attr(755,root,root) %{_sbindir}/bccmd
299 %attr(755,root,root) %{_sbindir}/bluetoothd
300 %attr(755,root,root) %{_sbindir}/hciattach
301 %attr(755,root,root) %{_sbindir}/hciconfig
302 %dir %{_libdir}/bluetooth
303 %dir %{_libdir}/bluetooth/plugins
304 %dir %{_sysconfdir}/bluetooth
305 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
306 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
307 %attr(754,root,root) /etc/rc.d/init.d/dund
308 %attr(754,root,root) /etc/rc.d/init.d/pand
309 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
310 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
311 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
312 %{systemdunitdir}/bluetooth.service
313 %{_datadir}/dbus-1/system-services/org.bluez.service
314 %attr(755,root,root) %{udevdir}/bluetooth_serial
315 %attr(755,root,root) %{udevdir}/hid2hci
316 %{udevdir}/rules.d/97-bluetooth.rules
317 %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
318 %{udevdir}/rules.d/97-bluetooth-serial.rules
319 %{_mandir}/man1/ciptool.1*
320 %{_mandir}/man1/dfutool.1*
321 %{_mandir}/man1/dund.1*
322 %{_mandir}/man1/hcitool.1*
323 %{_mandir}/man1/hidd.1*
324 %{_mandir}/man1/pand.1*
325 %{_mandir}/man1/rfcomm.1*
326 %{_mandir}/man1/sdptool.1*
327 %{_mandir}/man8/bccmd.8*
328 %{_mandir}/man8/bluetoothd.8*
329 %{_mandir}/man8/hciattach.8*
330 %{_mandir}/man8/hciconfig.8*
331 %{_mandir}/man8/hid2hci.8*
332 %{_mandir}/man8/l2ping.8*
334 %files -n alsa-plugins-bluetooth
335 %defattr(644,root,root,755)
336 %{_sysconfdir}/alsa/bluetooth.conf
337 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
338 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
340 %files -n cups-backend-bluetooth
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
344 %files -n gstreamer-bluetooth
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
351 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/libbluetooth.so
356 %{_includedir}/bluetooth
357 %{_pkgconfigdir}/bluez.pc
360 %defattr(644,root,root,755)
361 %{_libdir}/libbluetooth.a