2 %bcond_with verbose # verbose build (V=1)
4 Summary: Bluetooth utilities
5 Summary(pl.UTF-8): Narzędzia Bluetooth
10 Group: Applications/System
11 #Source0Download: http://www.bluez.org/download.html
12 Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
13 # Source0-md5: fb01ec1469feea654f3f9f598f47cc2d
15 Source2: %{name}.sysconfig
19 Patch0: %{name}-etc_dir.patch
20 Patch1: %{name}-oui.patch
21 Patch2: %{name}-wacom-mode-2.patch
22 Patch3: %{name}-try-utf8-harder.patch
23 URL: http://www.bluez.org/
24 BuildRequires: alsa-lib-devel >= 1.0.10-1
25 BuildRequires: autoconf >= 2.50
26 BuildRequires: automake
28 BuildRequires: dbus-glib-devel >= 0.60
29 BuildRequires: glib2-devel >= 2.0
30 BuildRequires: gstreamer-devel >= 0.10
31 BuildRequires: gstreamer-plugins-base-devel >= 0.10
32 BuildRequires: libcap-ng-devel
33 BuildRequires: libnl-devel
34 BuildRequires: libsndfile-devel
35 BuildRequires: libtool
36 BuildRequires: libusb-compat-devel
37 BuildRequires: pkgconfig >= 1:0.9.0
38 BuildRequires: rpmbuild(macros) >= 1.268
39 BuildRequires: udev-devel
40 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
41 Requires: hwdata >= 0.225
43 Provides: bluez-utils = %{epoch}:%{version}-%{release}
44 Obsoletes: bluez-hciemu
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} = %{epoch}:%{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 >= %{epoch}:%{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 >= %{epoch}:%{version}-%{release}
121 Requires: gstreamer >= 0.10
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
133 Group: Development/Libraries
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 = %{epoch}:%{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 = %{epoch}:%{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
195 --enable-configfiles \
214 rulesdir=%{udevdir}/rules.d \
219 rm -rf $RPM_BUILD_ROOT
220 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
223 DESTDIR=$RPM_BUILD_ROOT \
225 rulesdir=%{udevdir}/rules.d \
229 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
230 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
231 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
232 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
233 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
235 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
236 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
237 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
238 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
240 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
241 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
242 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
245 rm -rf $RPM_BUILD_ROOT
248 /sbin/chkconfig --add bluetooth
249 /sbin/chkconfig --add dund
250 /sbin/chkconfig --add pand
251 /sbin/chkconfig --add rfcomm
252 %service bluetooth restart
253 %service dund restart
254 %service pand restart
255 %service rfcomm restart
258 if [ "$1" = "0" ]; then
259 %service bluetooth stop
263 /sbin/chkconfig --del bluetooth
264 /sbin/chkconfig --del dund
265 /sbin/chkconfig --del pand
266 /sbin/chkconfig --del rfcomm
269 %post libs -p /sbin/ldconfig
270 %postun libs -p /sbin/ldconfig
273 %defattr(644,root,root,755)
274 %doc AUTHORS ChangeLog README
275 %attr(755,root,root) %{_bindir}/*
276 %attr(755,root,root) %{_sbindir}/*
277 %dir %{_libdir}/bluetooth
278 %dir %{_libdir}/bluetooth/plugins
279 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
280 %dir %{_sysconfdir}/bluetooth
281 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
282 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
283 %attr(754,root,root) /etc/rc.d/init.d/dund
284 %attr(754,root,root) /etc/rc.d/init.d/pand
285 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
286 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
287 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
288 %attr(755,root,root) %{udevdir}/bluetooth_serial
289 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth.rules
290 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
291 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-serial.rules
294 %files -n alsa-plugins-bluetooth
295 %defattr(644,root,root,755)
296 %dir %{_sysconfdir}/alsa
297 %{_sysconfdir}/alsa/bluetooth.conf
298 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
299 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
301 %files -n cups-backend-bluetooth
302 %defattr(644,root,root,755)
303 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
305 %files -n gstreamer-bluetooth
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
312 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/libbluetooth.so
317 %{_libdir}/libbluetooth.la
318 %{_includedir}/bluetooth
319 %{_pkgconfigdir}/bluez.pc
322 %defattr(644,root,root,755)
323 %{_libdir}/libbluetooth.a