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: 255c3dda8b93210ab0dcf8d04ddaf69f
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: dbus-devel >= 1.0
25 BuildRequires: glib2-devel >= 1:2.16
26 BuildRequires: gstreamer-devel >= 0.10.30
27 BuildRequires: gstreamer-plugins-base-devel >= 0.10
28 BuildRequires: libcap-ng-devel
29 BuildRequires: libsndfile-devel
30 BuildRequires: libtool
31 BuildRequires: libusb-compat-devel
32 BuildRequires: pkgconfig >= 1:0.9.0
33 BuildRequires: readline-devel
34 BuildRequires: rpmbuild(macros) >= 1.623
35 BuildRequires: udev-devel
36 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
37 Requires: glib2 >= 1:2.16
38 Requires: hwdata >= 0.225
40 Provides: bluez-utils = %{epoch}:%{version}-%{release}
41 Obsoletes: bluez-hciemu
44 Obsoletes: bluez-utils
45 Obsoletes: bluez-utils-init
46 Conflicts: bluez-bluefw
47 ExcludeArch: s390 s390x
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 # currently lib, not %{_lib} (see cups.spec)
51 %define cupsdir /usr/lib/cups/backend
52 %define udevdir /lib/udev
66 - PCMCIA configuration files
68 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
70 %description -l pl.UTF-8
81 - skrypty startowe (PLD)
82 - pliki konfiguracji PCMCIA
84 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
86 %package -n alsa-plugins-bluetooth
87 Summary: ALSA plugins for Bluetooth audio devices
88 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
90 # bluetoothd + audio service
91 Requires: %{name} = %{epoch}:%{version}-%{release}
92 Requires: alsa-lib >= 1.0.10-1
94 %description -n alsa-plugins-bluetooth
95 ALSA plugins for Bluetooth audio devices.
97 %description -n alsa-plugins-bluetooth -l pl.UTF-8
98 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
100 %package -n cups-backend-bluetooth
101 Summary: Bluetooth backend for CUPS
102 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
103 Group: Applications/Printing
104 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
107 %description -n cups-backend-bluetooth
108 Bluetooth backend for CUPS.
110 %description -n cups-backend-bluetooth -l pl.UTF-8
111 Backend Bluetooth dla CUPS-a.
113 %package -n gstreamer-bluetooth
114 Summary: Bluetooth support for gstreamer
115 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
117 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
118 Requires: gstreamer >= 0.10.30
119 Requires: gstreamer-plugins-base >= 0.10
121 %description -n gstreamer-bluetooth
122 Bluetooth support for gstreamer.
124 %description -n gstreamer-bluetooth -l pl.UTF-8
125 Obsługa Bluetooth dla gstreamera.
128 Summary: Bluetooth libraries
129 Summary(pl.UTF-8): Biblioteki Bluetooth
130 Group: Development/Libraries
134 Libraries for use in Bluetooth applications.
136 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
138 %description libs -l pl.UTF-8
139 Biblioteki do używania w aplikacjach Bluetooth.
141 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
144 Summary: Header files for Bluetooth applications
145 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
146 Group: Development/Libraries
147 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
148 Obsoletes: bluez-sdp-devel
150 %description libs-devel
151 bluez-libs-devel contains header files for use in Bluetooth
154 %description libs-devel -l pl.UTF-8
155 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
159 Summary: Static Bluetooth libraries
160 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
161 Group: Development/Libraries
162 Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
163 Obsoletes: bluez-sdp-static
165 %description libs-static
166 bluez-libs-static contains development static libraries for use in
167 Bluetooth applications.
169 %description libs-static -l pl.UTF-8
170 Ten pakiet zawiera biblioteki statyczne, których można używać do
174 Summary: systemd units for bluez
176 Requires: %{name} = %{epoch}:%{version}-%{release}
179 systemd units for bluez.
194 --with-ouifile=%{_datadir}/hwdata/oui.txt \
195 --with-systemdsystemunitdir=%{systemdunitdir} \
196 --disable-silent-rules \
203 --enable-configfiles \
225 rulesdir=%{udevdir}/rules.d \
229 rm -rf $RPM_BUILD_ROOT
230 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
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
267 if [ "$1" = "0" ]; then
268 %service bluetooth stop
272 /sbin/chkconfig --del bluetooth
273 /sbin/chkconfig --del dund
274 /sbin/chkconfig --del pand
275 /sbin/chkconfig --del rfcomm
278 %post libs -p /sbin/ldconfig
279 %postun libs -p /sbin/ldconfig
285 %systemd_preun bluetooth.service
288 %systemd_postun bluetooth.service
291 %defattr(644,root,root,755)
292 %doc AUTHORS ChangeLog README
293 %attr(755,root,root) %{_bindir}/ciptool
294 %attr(755,root,root) %{_bindir}/dfutool
295 %attr(755,root,root) %{_bindir}/dund
296 %attr(755,root,root) %{_bindir}/gatttool
297 %attr(755,root,root) %{_bindir}/hcitool
298 %attr(755,root,root) %{_bindir}/hidd
299 %attr(755,root,root) %{_bindir}/l2ping
300 %attr(755,root,root) %{_bindir}/pand
301 %attr(755,root,root) %{_bindir}/rfcomm
302 %attr(755,root,root) %{_bindir}/sdptool
303 %attr(755,root,root) %{_sbindir}/bccmd
304 %attr(755,root,root) %{_sbindir}/bluetoothd
305 %attr(755,root,root) %{_sbindir}/hciattach
306 %attr(755,root,root) %{_sbindir}/hciconfig
307 %dir %{_libdir}/bluetooth
308 %dir %{_libdir}/bluetooth/plugins
309 %dir %{_sysconfdir}/bluetooth
310 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
311 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
312 %attr(754,root,root) /etc/rc.d/init.d/dund
313 %attr(754,root,root) /etc/rc.d/init.d/pand
314 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
315 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
316 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
317 %attr(755,root,root) %{udevdir}/bluetooth_serial
318 %attr(755,root,root) %{udevdir}/hid2hci
319 %{udevdir}/rules.d/97-bluetooth.rules
320 %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
321 %{udevdir}/rules.d/97-bluetooth-serial.rules
322 %{_mandir}/man1/ciptool.1*
323 %{_mandir}/man1/dfutool.1*
324 %{_mandir}/man1/dund.1*
325 %{_mandir}/man1/hcitool.1*
326 %{_mandir}/man1/hidd.1*
327 %{_mandir}/man1/pand.1*
328 %{_mandir}/man1/rfcomm.1*
329 %{_mandir}/man1/sdptool.1*
330 %{_mandir}/man8/bccmd.8*
331 %{_mandir}/man8/bluetoothd.8*
332 %{_mandir}/man8/hciattach.8*
333 %{_mandir}/man8/hciconfig.8*
334 %{_mandir}/man8/hid2hci.8*
335 %{_mandir}/man8/l2ping.8*
337 %files -n alsa-plugins-bluetooth
338 %defattr(644,root,root,755)
339 %{_sysconfdir}/alsa/bluetooth.conf
340 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
341 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
343 %files -n cups-backend-bluetooth
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
347 %files -n gstreamer-bluetooth
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
354 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/libbluetooth.so
359 %{_includedir}/bluetooth
360 %{_pkgconfigdir}/bluez.pc
363 %defattr(644,root,root,755)
364 %{_libdir}/libbluetooth.a
367 %defattr(644,root,root,755)
368 %{systemdunitdir}/bluetooth.service
369 %{_datadir}/dbus-1/system-services/org.bluez.service