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-utils
47 Obsoletes: bluez-utils-init
48 Conflicts: bluez-bluefw
49 ExcludeArch: s390 s390x
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 # currently lib, not %{_lib} (see cups.spec)
53 %define cupsdir /usr/lib/cups/backend
54 %define udevdir /lib/udev
68 - PCMCIA configuration files
70 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
72 %description -l pl.UTF-8
83 - skrypty startowe (PLD)
84 - pliki konfiguracji PCMCIA
86 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
88 %package -n alsa-plugins-bluetooth
89 Summary: ALSA plugins for Bluetooth audio devices
90 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
92 # bluetoothd + audio service
93 Requires: %{name} = %{version}-%{release}
94 Requires: alsa-lib >= 1.0.10-1
96 %description -n alsa-plugins-bluetooth
97 ALSA plugins for Bluetooth audio devices.
99 %description -n alsa-plugins-bluetooth -l pl.UTF-8
100 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
102 %package -n cups-backend-bluetooth
103 Summary: Bluetooth backend for CUPS
104 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
105 Group: Applications/Printing
106 Requires: bluez-libs >= %{version}-%{release}
109 %description -n cups-backend-bluetooth
110 Bluetooth backend for CUPS.
112 %description -n cups-backend-bluetooth -l pl.UTF-8
113 Backend Bluetooth dla CUPS-a.
115 %package -n gstreamer-bluetooth
116 Summary: Bluetooth support for gstreamer
117 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
119 Requires: bluez-libs >= %{version}-%{release}
120 Requires: gstreamer >= 0.10.30
121 Requires: gstreamer-plugins-base >= 0.10
123 %description -n gstreamer-bluetooth
124 Bluetooth support for gstreamer.
126 %description -n gstreamer-bluetooth -l pl.UTF-8
127 Obsługa Bluetooth dla gstreamera.
130 Summary: Bluetooth libraries
131 Summary(pl.UTF-8): Biblioteki Bluetooth
136 Libraries for use in Bluetooth applications.
138 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
140 %description libs -l pl.UTF-8
141 Biblioteki do używania w aplikacjach Bluetooth.
143 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
146 Summary: Header files for Bluetooth applications
147 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
148 Group: Development/Libraries
149 Requires: %{name}-libs = %{version}-%{release}
150 Obsoletes: bluez-sdp-devel
152 %description libs-devel
153 bluez-libs-devel contains header files for use in Bluetooth
156 %description libs-devel -l pl.UTF-8
157 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
161 Summary: Static Bluetooth libraries
162 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
163 Group: Development/Libraries
164 Requires: %{name}-libs-devel = %{version}-%{release}
165 Obsoletes: bluez-sdp-static
167 %description libs-static
168 bluez-libs-static contains development static libraries for use in
169 Bluetooth applications.
171 %description libs-static -l pl.UTF-8
172 Ten pakiet zawiera biblioteki statyczne, których można używać do
188 --with-ouifile=%{_datadir}/hwdata/oui.txt \
189 --with-systemdsystemunitdir=%{systemdunitdir} \
190 --disable-silent-rules \
211 --enable-thermometer \
218 rulesdir=%{udevdir}/rules.d \
222 rm -rf $RPM_BUILD_ROOT
223 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
226 DESTDIR=$RPM_BUILD_ROOT \
228 rulesdir=%{udevdir}/rules.d \
231 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
232 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
233 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
234 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
235 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
237 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
238 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
239 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
240 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
242 mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
244 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
247 rm -rf $RPM_BUILD_ROOT
250 /sbin/chkconfig --add bluetooth
251 /sbin/chkconfig --add dund
252 /sbin/chkconfig --add pand
253 /sbin/chkconfig --add rfcomm
254 %service bluetooth restart
255 %service dund restart
256 %service pand restart
257 %service rfcomm restart
258 %systemd_post bluetooth.service
261 if [ "$1" = "0" ]; then
262 %service bluetooth stop
266 /sbin/chkconfig --del bluetooth
267 /sbin/chkconfig --del dund
268 /sbin/chkconfig --del pand
269 /sbin/chkconfig --del rfcomm
271 %systemd_preun bluetooth.service
276 %triggerpostun -- bluez < 4.98-3
277 %systemd_trigger bluetooth.service
279 %post libs -p /sbin/ldconfig
280 %postun libs -p /sbin/ldconfig
283 %defattr(644,root,root,755)
284 %doc AUTHORS ChangeLog README
285 %attr(755,root,root) %{_bindir}/ciptool
286 %attr(755,root,root) %{_bindir}/dfutool
287 %attr(755,root,root) %{_bindir}/dund
288 %attr(755,root,root) %{_bindir}/gatttool
289 %attr(755,root,root) %{_bindir}/hcitool
290 %attr(755,root,root) %{_bindir}/hidd
291 %attr(755,root,root) %{_bindir}/l2ping
292 %attr(755,root,root) %{_bindir}/pand
293 %attr(755,root,root) %{_bindir}/rfcomm
294 %attr(755,root,root) %{_bindir}/sdptool
295 %attr(755,root,root) %{_sbindir}/bccmd
296 %attr(755,root,root) %{_sbindir}/bluetoothd
297 %attr(755,root,root) %{_sbindir}/hciattach
298 %attr(755,root,root) %{_sbindir}/hciconfig
299 %dir %{_libdir}/bluetooth
300 %dir %{_libdir}/bluetooth/plugins
301 %dir %{_sysconfdir}/bluetooth
302 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
303 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
304 %attr(754,root,root) /etc/rc.d/init.d/dund
305 %attr(754,root,root) /etc/rc.d/init.d/pand
306 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
307 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
308 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
309 %{systemdunitdir}/bluetooth.service
310 %{_datadir}/dbus-1/system-services/org.bluez.service
311 %attr(755,root,root) %{udevdir}/bluetooth_serial
312 %attr(755,root,root) %{udevdir}/hid2hci
313 %{udevdir}/rules.d/97-bluetooth.rules
314 %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
315 %{udevdir}/rules.d/97-bluetooth-serial.rules
316 %{_mandir}/man1/ciptool.1*
317 %{_mandir}/man1/dfutool.1*
318 %{_mandir}/man1/dund.1*
319 %{_mandir}/man1/hcitool.1*
320 %{_mandir}/man1/hidd.1*
321 %{_mandir}/man1/pand.1*
322 %{_mandir}/man1/rfcomm.1*
323 %{_mandir}/man1/sdptool.1*
324 %{_mandir}/man8/bccmd.8*
325 %{_mandir}/man8/bluetoothd.8*
326 %{_mandir}/man8/hciattach.8*
327 %{_mandir}/man8/hciconfig.8*
328 %{_mandir}/man8/hid2hci.8*
329 %{_mandir}/man8/l2ping.8*
331 %files -n alsa-plugins-bluetooth
332 %defattr(644,root,root,755)
333 %{_sysconfdir}/alsa/bluetooth.conf
334 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
335 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
337 %files -n cups-backend-bluetooth
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
341 %files -n gstreamer-bluetooth
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
348 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/libbluetooth.so
353 %{_includedir}/bluetooth
354 %{_pkgconfigdir}/bluez.pc
357 %defattr(644,root,root,755)
358 %{_libdir}/libbluetooth.a