1 Summary: Bluetooth utilities
2 Summary(pl.UTF-8): Narzędzia Bluetooth
8 Group: Applications/System
9 #Source0Download: http://www.bluez.org/download.html
10 Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
11 # Source0-md5: f6e5bf09d5f282671aa0abe50e700ee6
13 Source2: %{name}.sysconfig
14 Source3: %{name}-udev.rules
15 Source4: %{name}-udev.script
16 Patch0: %{name}-etc_dir.patch
17 URL: http://www.bluez.org/
18 BuildRequires: alsa-lib-devel >= 1.0.10-1
19 BuildRequires: autoconf >= 2.50
20 BuildRequires: automake
22 BuildRequires: bluez-libs-devel >= 3.16
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: hal-devel >= 0.5.8
28 BuildRequires: libtool
29 BuildRequires: libusb-devel
30 BuildRequires: pkgconfig >= 1:0.9.0
31 BuildRequires: rpmbuild(macros) >= 1.268
32 # used only by noinst bluetoothd-service-sync
33 #BuildRequires: libopensync-devel
34 # used only by noinst bluetoothd-service-transfer
35 #BuildRequires: openobex-devel >= 1.1
36 Requires: bluez-libs >= 3.16
40 Obsoletes: bluez-utils-init
41 Conflicts: bluez-bluefw
42 ExcludeArch: s390 s390x
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 # currently lib, not %{_lib} (see cups.spec)
46 %define cupsdir /usr/lib/cups/backend
56 - PCMCIA configuration files
58 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
60 %description -l pl.UTF-8
67 - skrypty startowe (PLD)
68 - pliki konfiguracji PCMCIA
70 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
72 %package -n alsa-plugins-bluetooth
73 Summary: ALSA plugins for Bluetooth audio devices
74 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
76 # bluetoothd + audio service
77 Requires: %{name} = %{epoch}:%{version}-%{release}
78 Requires: alsa-lib >= 1.0.10-1
80 %description -n alsa-plugins-bluetooth
81 ALSA plugins for Bluetooth audio devices.
83 %description -n alsa-plugins-bluetooth -l pl.UTF-8
84 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
86 %package -n cups-backend-bluetooth
87 Summary: Bluetooth backend for CUPS
88 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
89 Group: Applications/Printing
90 Requires: bluez-libs >= 3.16
93 %description -n cups-backend-bluetooth
94 Bluetooth backend for CUPS.
96 %description -n cups-backend-bluetooth -l pl.UTF-8
97 Backend Bluetooth dla CUPS-a.
99 %package -n gstreamer-bluetooth
100 Summary: Bluetooth support for gstreamer
101 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
103 Requires: bluez-libs >= 3.16
104 Requires: gstreamer >= 0.10
105 Requires: gstreamer-plugins-base >= 0.10
107 %description -n gstreamer-bluetooth
108 Bluetooth support for gstreamer.
110 %description -n gstreamer-bluetooth -l pl.UTF-8
111 Obsługa Bluetooth dla gstreamera.
133 --enable-pcmciarules \
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
144 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev}
147 DESTDIR=$RPM_BUILD_ROOT \
151 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
152 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
153 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
154 install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
155 install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
156 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
157 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
159 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
160 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
163 rm -rf $RPM_BUILD_ROOT
166 /sbin/chkconfig --add bluetooth
167 %service bluetooth restart
170 if [ "$1" = "0" ]; then
171 %service bluetooth stop
172 /sbin/chkconfig --del bluetooth
176 %defattr(644,root,root,755)
177 %doc AUTHORS ChangeLog README audio/audio-api.txt daemon/hal-namespace.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
178 %attr(755,root,root) %{_bindir}/*
179 %attr(755,root,root) %{_sbindir}/*
180 %dir %{_libdir}/bluetooth
181 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio
182 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network
183 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial
184 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-input
185 %dir %{_sysconfdir}/bluetooth
186 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
187 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
188 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.service
189 %{_sysconfdir}/bluetooth/audio.service
190 %{_sysconfdir}/bluetooth/network.service
191 %{_sysconfdir}/bluetooth/serial.service
192 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
193 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
194 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
195 %attr(755,root,root) /lib/udev/bluetooth.sh
196 %attr(755,root,root) /lib/udev/bluetooth_serial
197 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
198 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
200 %{_mandir}/man5/hcid.conf.5*
202 %files -n alsa-plugins-bluetooth
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
205 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
207 %files -n cups-backend-bluetooth
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
211 %files -n gstreamer-bluetooth
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so