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: b54a199004b578ec5652014a5e62aeaa
12 Source2: %{name}.sysconfig
16 Patch0: %{name}-etc_dir.patch
17 Patch2: %{name}-wacom-mode-2.patch
18 URL: http://www.bluez.org/
19 BuildRequires: alsa-lib-devel >= 1.0.10-1
20 BuildRequires: autoconf >= 2.50
21 BuildRequires: automake
23 BuildRequires: dbus-glib-devel >= 0.60
24 BuildRequires: glib2-devel >= 2.0
25 BuildRequires: gstreamer-devel >= 0.10
26 BuildRequires: gstreamer-plugins-base-devel >= 0.10
27 BuildRequires: libnl-devel
28 BuildRequires: libsndfile-devel
29 BuildRequires: libtool
30 BuildRequires: libusb-compat-devel
31 BuildRequires: pkgconfig >= 1:0.9.0
32 BuildRequires: udev-devel
33 BuildRequires: rpmbuild(macros) >= 1.268
34 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
36 Obsoletes: bluez-hciemu
39 Obsoletes: bluez-utils
40 Obsoletes: bluez-utils-init
41 Conflicts: bluez-bluefw
42 Provides: bluez-utils = %{epoch}:%{version}-%{release}
43 ExcludeArch: s390 s390x
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 # currently lib, not %{_lib} (see cups.spec)
47 %define cupsdir /usr/lib/cups/backend
48 %define udevdir /lib/udev
62 - PCMCIA configuration files
64 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
66 %description -l pl.UTF-8
77 - skrypty startowe (PLD)
78 - pliki konfiguracji PCMCIA
80 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
82 %package -n alsa-plugins-bluetooth
83 Summary: ALSA plugins for Bluetooth audio devices
84 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
86 # bluetoothd + audio service
87 Requires: %{name} = %{epoch}:%{version}-%{release}
88 Requires: alsa-lib >= 1.0.10-1
90 %description -n alsa-plugins-bluetooth
91 ALSA plugins for Bluetooth audio devices.
93 %description -n alsa-plugins-bluetooth -l pl.UTF-8
94 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
96 %package -n cups-backend-bluetooth
97 Summary: Bluetooth backend for CUPS
98 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
99 Group: Applications/Printing
100 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
103 %description -n cups-backend-bluetooth
104 Bluetooth backend for CUPS.
106 %description -n cups-backend-bluetooth -l pl.UTF-8
107 Backend Bluetooth dla CUPS-a.
109 %package -n gstreamer-bluetooth
110 Summary: Bluetooth support for gstreamer
111 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
113 Requires: bluez-libs >= %{epoch}:%{version}-%{release}
114 Requires: gstreamer >= 0.10
115 Requires: gstreamer-plugins-base >= 0.10
117 %description -n gstreamer-bluetooth
118 Bluetooth support for gstreamer.
120 %description -n gstreamer-bluetooth -l pl.UTF-8
121 Obsługa Bluetooth dla gstreamera.
124 Summary: Bluetooth libraries
125 Summary(pl.UTF-8): Biblioteki Bluetooth
126 Group: Development/Libraries
130 Libraries for use in Bluetooth applications.
132 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
134 %description libs -l pl.UTF-8
135 Biblioteki do używania w aplikacjach Bluetooth.
137 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
140 Summary: Header files for Bluetooth applications
141 Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
142 Group: Development/Libraries
143 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
144 Obsoletes: bluez-sdp-devel
146 %description libs-devel
147 bluez-libs-devel contains header files for use in Bluetooth
150 %description libs-devel -l pl.UTF-8
151 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
155 Summary: Static Bluetooth libraries
156 Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
157 Group: Development/Libraries
158 Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
159 Obsoletes: bluez-sdp-static
161 %description libs-static
162 bluez-libs-static contains development static libraries for use in
163 Bluetooth applications.
165 %description libs-static -l pl.UTF-8
166 Ten pakiet zawiera biblioteki statyczne, których można używać do
186 --enable-configfiles \
209 rm -rf $RPM_BUILD_ROOT
210 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
213 DESTDIR=$RPM_BUILD_ROOT \
217 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
218 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
219 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
220 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
221 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
222 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
223 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
224 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
227 rm -rf $RPM_BUILD_ROOT
230 /sbin/chkconfig --add bluetooth
231 /sbin/chkconfig --add dund
232 /sbin/chkconfig --add pand
233 /sbin/chkconfig --add rfcomm
234 %service bluetooth restart
235 %service dund restart
236 %service pand restart
237 %service rfcomm restart
240 if [ "$1" = "0" ]; then
241 %service bluetooth stop
245 /sbin/chkconfig --del bluetooth
246 /sbin/chkconfig --del dund
247 /sbin/chkconfig --del pand
248 /sbin/chkconfig --del rfcomm
251 %post libs -p /sbin/ldconfig
252 %postun libs -p /sbin/ldconfig
255 %defattr(644,root,root,755)
256 %doc AUTHORS ChangeLog README
257 %attr(755,root,root) %{_bindir}/*
258 %attr(755,root,root) %{_sbindir}/*
259 %dir %{_libdir}/bluetooth
260 %dir %{_libdir}/bluetooth/plugins
261 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
262 %dir %{_sysconfdir}/bluetooth
263 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
264 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
265 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
266 %attr(754,root,root) /etc/rc.d/init.d/dund
267 %attr(754,root,root) /etc/rc.d/init.d/pand
268 %attr(754,root,root) /etc/rc.d/init.d/rfcomm
269 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
270 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
271 %attr(755,root,root) %{udevdir}/bluetooth_serial
272 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth.rules
273 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-hid2hci.rules
274 %config(noreplace) %verify(not md5 mtime size) %{udevdir}/rules.d/97-bluetooth-serial.rules
277 %files -n alsa-plugins-bluetooth
278 %defattr(644,root,root,755)
279 %dir %{_sysconfdir}/alsa
280 %{_sysconfdir}/alsa/bluetooth.conf
281 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
282 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
284 %files -n cups-backend-bluetooth
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
288 %files -n gstreamer-bluetooth
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
295 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/libbluetooth.so
300 %{_libdir}/libbluetooth.la
301 %{_includedir}/bluetooth
302 %{_pkgconfigdir}/bluez.pc
305 %defattr(644,root,root,755)
306 %{_libdir}/libbluetooth.a