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: 432509193ea508da5ce23fe056625d0f
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 Patch4: %{name}-parallel-make.patch
21 URL: http://www.bluez.org/
22 BuildRequires: alsa-lib-devel >= 1.0.10-1
23 BuildRequires: autoconf >= 2.50
24 BuildRequires: automake
26 BuildRequires: dbus-glib-devel >= 0.60
27 BuildRequires: glib2-devel >= 2.0
28 BuildRequires: gstreamer-devel >= 0.10
29 BuildRequires: gstreamer-plugins-base-devel >= 0.10
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: 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
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
193 --enable-configfiles \
216 rm -rf $RPM_BUILD_ROOT
217 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
220 DESTDIR=$RPM_BUILD_ROOT \
224 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
225 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
226 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
227 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
228 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
229 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
230 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
231 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
234 rm -rf $RPM_BUILD_ROOT
237 /sbin/chkconfig --add bluetooth
238 /sbin/chkconfig --add dund
239 /sbin/chkconfig --add pand
240 /sbin/chkconfig --add rfcomm
241 %service bluetooth restart
242 %service dund restart
243 %service pand restart
244 %service rfcomm restart
247 if [ "$1" = "0" ]; then
248 %service bluetooth stop
252 /sbin/chkconfig --del bluetooth
253 /sbin/chkconfig --del dund
254 /sbin/chkconfig --del pand
255 /sbin/chkconfig --del rfcomm
258 %post libs -p /sbin/ldconfig
259 %postun libs -p /sbin/ldconfig
262 %defattr(644,root,root,755)
263 %doc AUTHORS ChangeLog README
264 %attr(755,root,root) %{_bindir}/*
265 %attr(755,root,root) %{_sbindir}/*
266 %dir %{_libdir}/bluetooth
267 %dir %{_libdir}/bluetooth/plugins
268 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
269 %dir %{_sysconfdir}/bluetooth
270 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
271 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
272 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
273 %attr(754,root,root) /etc/rc.d/init.d/dund
274 %attr(754,root,root) /etc/rc.d/init.d/pand
275 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
276 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
277 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
278 %attr(755,root,root) %{udevdir}/bluetooth_serial
279 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth.rules
280 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
281 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-serial.rules
284 %files -n alsa-plugins-bluetooth
285 %defattr(644,root,root,755)
286 %dir %{_sysconfdir}/alsa
287 %{_sysconfdir}/alsa/bluetooth.conf
288 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
289 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
291 %files -n cups-backend-bluetooth
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
295 %files -n gstreamer-bluetooth
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
302 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libbluetooth.so
307 %{_libdir}/libbluetooth.la
308 %{_includedir}/bluetooth
309 %{_pkgconfigdir}/bluez.pc
312 %defattr(644,root,root,755)
313 %{_libdir}/libbluetooth.a