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.gz
10 # Source0-md5: 986a08fb5c94ebd7d1a4d702e45ee34e
12 Source2: %{name}.sysconfig
16 Patch0: %{name}-etc_dir.patch
17 Patch1: %{name}-oui.patch
18 Patch2: %{name}-wacom-mode-2.patch
19 Patch3: %{name}-try-utf8-harder.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: dbus-devel >= 1.0
26 BuildRequires: glib2-devel >= 1:2.14
27 BuildRequires: gstreamer-devel >= 0.10
28 BuildRequires: gstreamer-plugins-base-devel >= 0.10
29 BuildRequires: libcap-ng-devel
30 BuildRequires: libnl-devel
31 BuildRequires: libsndfile-devel
32 BuildRequires: libtool
33 BuildRequires: libusb-compat-devel
34 BuildRequires: pkgconfig >= 1:0.9.0
35 BuildRequires: rpmbuild(macros) >= 1.268
36 BuildRequires: udev-devel
37 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
38 Requires: glib2 >= 1:2.14
39 Requires: hwdata >= 0.225
41 Provides: bluez-utils = %{epoch}:%{version}-%{release}
42 Obsoletes: bluez-hciemu
45 Obsoletes: bluez-utils
46 Obsoletes: bluez-utils-init
47 Conflicts: bluez-bluefw
48 ExcludeArch: s390 s390x
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 # currently lib, not %{_lib} (see cups.spec)
52 %define cupsdir /usr/lib/cups/backend
53 %define udevdir /lib/udev
67 - PCMCIA configuration files
69 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
71 %description -l pl.UTF-8
82 - skrypty startowe (PLD)
83 - pliki konfiguracji PCMCIA
85 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
87 %package -n alsa-plugins-bluetooth
88 Summary: ALSA plugins for Bluetooth audio devices
89 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
91 # bluetoothd + audio service
92 Requires: %{name} = %{epoch}:%{version}-%{release}
93 Requires: alsa-lib >= 1.0.10-1
95 %description -n alsa-plugins-bluetooth
96 ALSA plugins for Bluetooth audio devices.
98 %description -n alsa-plugins-bluetooth -l pl.UTF-8
99 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
101 %package -n cups-backend-bluetooth
102 Summary: Bluetooth backend for CUPS
103 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
104 Group: Applications/Printing
105 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
108 %description -n cups-backend-bluetooth
109 Bluetooth backend for CUPS.
111 %description -n cups-backend-bluetooth -l pl.UTF-8
112 Backend Bluetooth dla CUPS-a.
114 %package -n gstreamer-bluetooth
115 Summary: Bluetooth support for gstreamer
116 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
118 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
119 Requires: gstreamer >= 0.10
120 Requires: gstreamer-plugins-base >= 0.10
122 %description -n gstreamer-bluetooth
123 Bluetooth support for gstreamer.
125 %description -n gstreamer-bluetooth -l pl.UTF-8
126 Obsługa Bluetooth dla gstreamera.
129 Summary: Bluetooth libraries
130 Summary(pl.UTF-8): Biblioteki Bluetooth
131 Group: Development/Libraries
135 Libraries for use in Bluetooth applications.
137 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
139 %description libs -l pl.UTF-8
140 Biblioteki do używania w aplikacjach Bluetooth.
142 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
145 Summary: Header files for Bluetooth applications
146 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
147 Group: Development/Libraries
148 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
149 Obsoletes: bluez-sdp-devel
151 %description libs-devel
152 bluez-libs-devel contains header files for use in Bluetooth
155 %description libs-devel -l pl.UTF-8
156 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
160 Summary: Static Bluetooth libraries
161 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
162 Group: Development/Libraries
163 Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
164 Obsoletes: bluez-sdp-static
166 %description libs-static
167 bluez-libs-static contains development static libraries for use in
168 Bluetooth applications.
170 %description libs-static -l pl.UTF-8
171 Ten pakiet zawiera biblioteki statyczne, których można używać do
188 --disable-silent-rules \
195 --enable-configfiles \
214 rulesdir=%{udevdir}/rules.d \
218 rm -rf $RPM_BUILD_ROOT
219 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
222 DESTDIR=$RPM_BUILD_ROOT \
224 rulesdir=%{udevdir}/rules.d \
227 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
228 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
229 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
230 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
231 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
233 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
234 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
235 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
236 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
238 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
239 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
240 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
243 rm -rf $RPM_BUILD_ROOT
246 /sbin/chkconfig --add bluetooth
247 /sbin/chkconfig --add dund
248 /sbin/chkconfig --add pand
249 /sbin/chkconfig --add rfcomm
250 %service bluetooth restart
251 %service dund restart
252 %service pand restart
253 %service rfcomm restart
256 if [ "$1" = "0" ]; then
257 %service bluetooth stop
261 /sbin/chkconfig --del bluetooth
262 /sbin/chkconfig --del dund
263 /sbin/chkconfig --del pand
264 /sbin/chkconfig --del rfcomm
267 %post libs -p /sbin/ldconfig
268 %postun libs -p /sbin/ldconfig
271 %defattr(644,root,root,755)
272 %doc AUTHORS ChangeLog README
273 %attr(755,root,root) %{_bindir}/*
274 %attr(755,root,root) %{_sbindir}/*
275 %dir %{_libdir}/bluetooth
276 %dir %{_libdir}/bluetooth/plugins
277 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
278 %dir %{_sysconfdir}/bluetooth
279 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
280 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
281 %attr(754,root,root) /etc/rc.d/init.d/dund
282 %attr(754,root,root) /etc/rc.d/init.d/pand
283 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
284 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
285 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
286 %attr(755,root,root) %{udevdir}/bluetooth_serial
287 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth.rules
288 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
289 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-serial.rules
292 %files -n alsa-plugins-bluetooth
293 %defattr(644,root,root,755)
294 %dir %{_sysconfdir}/alsa
295 %{_sysconfdir}/alsa/bluetooth.conf
296 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
297 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
299 %files -n cups-backend-bluetooth
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
303 %files -n gstreamer-bluetooth
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
310 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_libdir}/libbluetooth.so
315 %{_libdir}/libbluetooth.la
316 %{_includedir}/bluetooth
317 %{_pkgconfigdir}/bluez.pc
320 %defattr(644,root,root,755)
321 %{_libdir}/libbluetooth.a