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: a2d5a88fb1058f2b0422bfcce335b3a2
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.50
23 BuildRequires: automake
25 BuildRequires: dbus-glib-devel >= 0.60
26 BuildRequires: glib2-devel >= 2.0
27 BuildRequires: gstreamer-devel >= 0.10
28 BuildRequires: gstreamer-plugins-base-devel >= 0.10
29 BuildRequires: libnl-devel
30 BuildRequires: libsndfile-devel
31 BuildRequires: libtool
32 BuildRequires: libusb-compat-devel
33 BuildRequires: pkgconfig >= 1:0.9.0
34 BuildRequires: rpmbuild(macros) >= 1.268
35 BuildRequires: udev-devel
36 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
37 Requires: hwdata >= 0.225
39 Provides: bluez-utils = %{epoch}:%{version}-%{release}
40 Obsoletes: bluez-hciemu
43 Obsoletes: bluez-utils
44 Obsoletes: bluez-utils-init
45 Conflicts: bluez-bluefw
46 ExcludeArch: s390 s390x
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 # currently lib, not %{_lib} (see cups.spec)
50 %define cupsdir /usr/lib/cups/backend
51 %define udevdir /lib/udev
65 - PCMCIA configuration files
67 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
69 %description -l pl.UTF-8
80 - skrypty startowe (PLD)
81 - pliki konfiguracji PCMCIA
83 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
85 %package -n alsa-plugins-bluetooth
86 Summary: ALSA plugins for Bluetooth audio devices
87 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
89 # bluetoothd + audio service
90 Requires: %{name} = %{epoch}:%{version}-%{release}
91 Requires: alsa-lib >= 1.0.10-1
93 %description -n alsa-plugins-bluetooth
94 ALSA plugins for Bluetooth audio devices.
96 %description -n alsa-plugins-bluetooth -l pl.UTF-8
97 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
99 %package -n cups-backend-bluetooth
100 Summary: Bluetooth backend for CUPS
101 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
102 Group: Applications/Printing
103 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
106 %description -n cups-backend-bluetooth
107 Bluetooth backend for CUPS.
109 %description -n cups-backend-bluetooth -l pl.UTF-8
110 Backend Bluetooth dla CUPS-a.
112 %package -n gstreamer-bluetooth
113 Summary: Bluetooth support for gstreamer
114 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
116 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
117 Requires: gstreamer >= 0.10
118 Requires: gstreamer-plugins-base >= 0.10
120 %description -n gstreamer-bluetooth
121 Bluetooth support for gstreamer.
123 %description -n gstreamer-bluetooth -l pl.UTF-8
124 Obsługa Bluetooth dla gstreamera.
127 Summary: Bluetooth libraries
128 Summary(pl.UTF-8): Biblioteki Bluetooth
129 Group: Development/Libraries
133 Libraries for use in Bluetooth applications.
135 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
137 %description libs -l pl.UTF-8
138 Biblioteki do używania w aplikacjach Bluetooth.
140 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
143 Summary: Header files for Bluetooth applications
144 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
145 Group: Development/Libraries
146 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
147 Obsoletes: bluez-sdp-devel
149 %description libs-devel
150 bluez-libs-devel contains header files for use in Bluetooth
153 %description libs-devel -l pl.UTF-8
154 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
158 Summary: Static Bluetooth libraries
159 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
160 Group: Development/Libraries
161 Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
162 Obsoletes: bluez-sdp-static
164 %description libs-static
165 bluez-libs-static contains development static libraries for use in
166 Bluetooth applications.
168 %description libs-static -l pl.UTF-8
169 Ten pakiet zawiera biblioteki statyczne, których można używać do
191 --enable-configfiles \
214 rm -rf $RPM_BUILD_ROOT
215 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
218 DESTDIR=$RPM_BUILD_ROOT \
222 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
223 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
224 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
225 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
226 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
228 install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
229 install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
230 install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
231 install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
233 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
234 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
235 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
238 rm -rf $RPM_BUILD_ROOT
241 /sbin/chkconfig --add bluetooth
242 /sbin/chkconfig --add dund
243 /sbin/chkconfig --add pand
244 /sbin/chkconfig --add rfcomm
245 %service bluetooth restart
246 %service dund restart
247 %service pand restart
248 %service rfcomm restart
251 if [ "$1" = "0" ]; then
252 %service bluetooth stop
256 /sbin/chkconfig --del bluetooth
257 /sbin/chkconfig --del dund
258 /sbin/chkconfig --del pand
259 /sbin/chkconfig --del rfcomm
262 %post libs -p /sbin/ldconfig
263 %postun libs -p /sbin/ldconfig
266 %defattr(644,root,root,755)
267 %doc AUTHORS ChangeLog README
268 %attr(755,root,root) %{_bindir}/*
269 %attr(755,root,root) %{_sbindir}/*
270 %dir %{_libdir}/bluetooth
271 %dir %{_libdir}/bluetooth/plugins
272 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
273 %dir %{_sysconfdir}/bluetooth
274 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
275 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
276 %attr(754,root,root) /etc/rc.d/init.d/dund
277 %attr(754,root,root) /etc/rc.d/init.d/pand
278 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
279 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
280 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
281 %attr(755,root,root) %{udevdir}/bluetooth_serial
282 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth.rules
283 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
284 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-serial.rules
287 %files -n alsa-plugins-bluetooth
288 %defattr(644,root,root,755)
289 %dir %{_sysconfdir}/alsa
290 %{_sysconfdir}/alsa/bluetooth.conf
291 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
292 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
294 %files -n cups-backend-bluetooth
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
298 %files -n gstreamer-bluetooth
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
305 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/libbluetooth.so
310 %{_libdir}/libbluetooth.la
311 %{_includedir}/bluetooth
312 %{_pkgconfigdir}/bluez.pc
315 %defattr(644,root,root,755)
316 %{_libdir}/libbluetooth.a