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: 4aca8a0929250212e9a75fb60dd75b05
12 Source2: %{name}.sysconfig
16 Patch0: %{name}-etc_dir.patch
17 Patch1: %{name}-wacom-mode-2.patch
18 Patch2: %{name}-systemd.patch
19 URL: http://www.bluez.org/
20 BuildRequires: alsa-lib-devel >= 1.0.10-1
21 BuildRequires: autoconf >= 2.60
22 BuildRequires: automake
24 BuildRequires: check-devel >= 0.9.4
25 BuildRequires: dbus-devel >= 1.0
26 BuildRequires: glib2-devel >= 1:2.16
27 BuildRequires: gstreamer-devel >= 0.10.30
28 BuildRequires: gstreamer-plugins-base-devel >= 0.10
29 BuildRequires: libcap-ng-devel
30 BuildRequires: libsndfile-devel
31 BuildRequires: libtool
32 BuildRequires: libusb-compat-devel
33 BuildRequires: pkgconfig >= 1:0.9.0
34 BuildRequires: readline-devel
35 BuildRequires: rpmbuild(macros) >= 1.626
36 BuildRequires: udev-devel
37 Requires: %{name}-libs = %{version}-%{release}
38 Requires: glib2 >= 1:2.16
39 Requires: hwdata >= 0.225
41 Requires: systemd-units >= 37-0.10
42 Provides: bluez-utils = %{version}-%{release}
43 Obsoletes: bluez-hciemu
46 Obsoletes: bluez-systemd
47 Obsoletes: bluez-utils
48 Obsoletes: bluez-utils-init
49 Conflicts: bluez-bluefw
50 ExcludeArch: s390 s390x
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 # currently lib, not %{_lib} (see cups.spec)
54 %define cupsdir /usr/lib/cups/backend
55 %define udevdir /lib/udev
69 - PCMCIA configuration files
71 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
73 %description -l pl.UTF-8
84 - skrypty startowe (PLD)
85 - pliki konfiguracji PCMCIA
87 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
89 %package -n alsa-plugins-bluetooth
90 Summary: ALSA plugins for Bluetooth audio devices
91 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
93 # bluetoothd + audio service
94 Requires: %{name} = %{version}-%{release}
95 Requires: alsa-lib >= 1.0.10-1
97 %description -n alsa-plugins-bluetooth
98 ALSA plugins for Bluetooth audio devices.
100 %description -n alsa-plugins-bluetooth -l pl.UTF-8
101 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
103 %package -n cups-backend-bluetooth
104 Summary: Bluetooth backend for CUPS
105 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
106 Group: Applications/Printing
107 Requires: bluez-libs >= %{version}-%{release}
110 %description -n cups-backend-bluetooth
111 Bluetooth backend for CUPS.
113 %description -n cups-backend-bluetooth -l pl.UTF-8
114 Backend Bluetooth dla CUPS-a.
116 %package -n gstreamer-bluetooth
117 Summary: Bluetooth support for gstreamer
118 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
120 Requires: bluez-libs >= %{version}-%{release}
121 Requires: gstreamer >= 0.10.30
122 Requires: gstreamer-plugins-base >= 0.10
124 %description -n gstreamer-bluetooth
125 Bluetooth support for gstreamer.
127 %description -n gstreamer-bluetooth -l pl.UTF-8
128 Obsługa Bluetooth dla gstreamera.
131 Summary: Bluetooth libraries
132 Summary(pl.UTF-8): Biblioteki Bluetooth
137 Libraries for use in Bluetooth applications.
139 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
141 %description libs -l pl.UTF-8
142 Biblioteki do używania w aplikacjach Bluetooth.
144 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
147 Summary: Header files for Bluetooth applications
148 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
149 Group: Development/Libraries
150 Requires: %{name}-libs = %{version}-%{release}
151 Obsoletes: bluez-sdp-devel
153 %description libs-devel
154 bluez-libs-devel contains header files for use in Bluetooth
157 %description libs-devel -l pl.UTF-8
158 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
162 Summary: Static Bluetooth libraries
163 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
164 Group: Development/Libraries
165 Requires: %{name}-libs-devel = %{version}-%{release}
166 Obsoletes: bluez-sdp-static
168 %description libs-static
169 bluez-libs-static contains development static libraries for use in
170 Bluetooth applications.
172 %description libs-static -l pl.UTF-8
173 Ten pakiet zawiera biblioteki statyczne, których można używać do
189 --with-ouifile=%{_datadir}/hwdata/oui.txt \
190 --with-systemdsystemunitdir=%{systemdunitdir} \
191 --disable-silent-rules \
212 --enable-thermometer \
219 rulesdir=%{udevdir}/rules.d \
223 rm -rf $RPM_BUILD_ROOT
224 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
227 DESTDIR=$RPM_BUILD_ROOT \
229 rulesdir=%{udevdir}/rules.d \
232 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
233 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
234 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
235 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
236 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
238 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
239 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
240 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
241 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
243 mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
245 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
248 rm -rf $RPM_BUILD_ROOT
251 /sbin/chkconfig --add bluetooth
252 /sbin/chkconfig --add dund
253 /sbin/chkconfig --add pand
254 /sbin/chkconfig --add rfcomm
255 %service bluetooth restart
256 %service dund restart
257 %service pand restart
258 %service rfcomm restart
259 %systemd_post bluetooth.service
262 if [ "$1" = "0" ]; then
263 %service bluetooth stop
267 /sbin/chkconfig --del bluetooth
268 /sbin/chkconfig --del dund
269 /sbin/chkconfig --del pand
270 /sbin/chkconfig --del rfcomm
272 %systemd_preun bluetooth.service
277 %triggerpostun -- bluez < 4.98-3
278 %systemd_trigger bluetooth.service
280 %post libs -p /sbin/ldconfig
281 %postun libs -p /sbin/ldconfig
284 %defattr(644,root,root,755)
285 %doc AUTHORS ChangeLog README
286 %attr(755,root,root) %{_bindir}/ciptool
287 %attr(755,root,root) %{_bindir}/dfutool
288 %attr(755,root,root) %{_bindir}/dund
289 %attr(755,root,root) %{_bindir}/gatttool
290 %attr(755,root,root) %{_bindir}/hcitool
291 %attr(755,root,root) %{_bindir}/hidd
292 %attr(755,root,root) %{_bindir}/l2ping
293 %attr(755,root,root) %{_bindir}/pand
294 %attr(755,root,root) %{_bindir}/rfcomm
295 %attr(755,root,root) %{_bindir}/sdptool
296 %attr(755,root,root) %{_sbindir}/bccmd
297 %attr(755,root,root) %{_sbindir}/bluetoothd
298 %attr(755,root,root) %{_sbindir}/hciattach
299 %attr(755,root,root) %{_sbindir}/hciconfig
300 %dir %{_libdir}/bluetooth
301 %dir %{_libdir}/bluetooth/plugins
302 %dir %{_sysconfdir}/bluetooth
303 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
304 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
305 %attr(754,root,root) /etc/rc.d/init.d/dund
306 %attr(754,root,root) /etc/rc.d/init.d/pand
307 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
308 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
309 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
310 %{systemdunitdir}/bluetooth.service
311 %{_datadir}/dbus-1/system-services/org.bluez.service
312 %attr(755,root,root) %{udevdir}/bluetooth_serial
313 %attr(755,root,root) %{udevdir}/hid2hci
314 %{udevdir}/rules.d/97-bluetooth.rules
315 %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
316 %{udevdir}/rules.d/97-bluetooth-serial.rules
317 %{_mandir}/man1/ciptool.1*
318 %{_mandir}/man1/dfutool.1*
319 %{_mandir}/man1/dund.1*
320 %{_mandir}/man1/hcitool.1*
321 %{_mandir}/man1/hidd.1*
322 %{_mandir}/man1/pand.1*
323 %{_mandir}/man1/rfcomm.1*
324 %{_mandir}/man1/sdptool.1*
325 %{_mandir}/man8/bccmd.8*
326 %{_mandir}/man8/bluetoothd.8*
327 %{_mandir}/man8/hciattach.8*
328 %{_mandir}/man8/hciconfig.8*
329 %{_mandir}/man8/hid2hci.8*
330 %{_mandir}/man8/l2ping.8*
332 %files -n alsa-plugins-bluetooth
333 %defattr(644,root,root,755)
334 %{_sysconfdir}/alsa/bluetooth.conf
335 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
336 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
338 %files -n cups-backend-bluetooth
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
342 %files -n gstreamer-bluetooth
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
349 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/libbluetooth.so
354 %{_includedir}/bluetooth
355 %{_pkgconfigdir}/bluez.pc
358 %defattr(644,root,root,755)
359 %{_libdir}/libbluetooth.a