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
26 BuildRequires: hal-devel >= 0.5.8
27 BuildRequires: libtool
28 BuildRequires: libusb-devel
29 BuildRequires: pkgconfig >= 0.9.0
30 BuildRequires: rpmbuild(macros) >= 1.268
31 # used only by noinst bluetoothd-service-sync
32 #BuildRequires: libopensync-devel
33 # used only by noinst bluetoothd-service-transfer
34 #BuildRequires: openobex-devel >= 1.1
35 Requires: bluez-libs >= 3.16
39 Obsoletes: bluez-utils-init
40 Conflicts: bluez-bluefw
41 ExcludeArch: s390 s390x
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 # currently lib, not %{_lib} (see cups.spec)
45 %define cupsdir /usr/lib/cups/backend
55 - PCMCIA configuration files
57 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
59 %description -l pl.UTF-8
66 - skrypty startowe (PLD)
67 - pliki konfiguracji PCMCIA
69 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
71 %package -n alsa-plugins-bluetooth
72 Summary: ALSA plugins for Bluetooth audio devices
73 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
75 # bluetoothd + audio service
76 Requires: %{name} = %{epoch}:%{version}-%{release}
77 Requires: alsa-lib >= 1.0.10-1
79 %description -n alsa-plugins-bluetooth
80 ALSA plugins for Bluetooth audio devices.
82 %description -n alsa-plugins-bluetooth -l pl.UTF-8
83 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
85 %package -n cups-backend-bluetooth
86 Summary: Bluetooth backend for CUPS
87 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
88 Group: Applications/Printing
89 Requires: bluez-libs >= 3.16
92 %description -n cups-backend-bluetooth
93 Bluetooth backend for CUPS.
95 %description -n cups-backend-bluetooth -l pl.UTF-8
96 Backend Bluetooth dla CUPS-a.
98 %package -n gstreamer-bluetooth
99 Summary: Bluetooth support for gstreamer
100 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamer-a
102 Requires: bluez-libs >= 3.16
105 %description -n gstreamer-bluetooth
106 Bluetooth support for gstreamer.
108 %description -n gstreamer-bluetooth -l pl.UTF-8
109 Obsługa Bluetooth dla gstreamera.
129 --enable-pcmciarules \
137 rm -rf $RPM_BUILD_ROOT
138 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
139 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev}
142 DESTDIR=$RPM_BUILD_ROOT \
146 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
147 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
148 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
149 install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
150 install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
151 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
152 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
154 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
157 rm -rf $RPM_BUILD_ROOT
160 /sbin/chkconfig --add bluetooth
161 %service bluetooth restart
164 if [ "$1" = "0" ]; then
165 %service bluetooth stop
166 /sbin/chkconfig --del bluetooth
170 %defattr(644,root,root,755)
171 %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
172 %attr(755,root,root) %{_bindir}/*
173 %attr(755,root,root) %{_sbindir}/*
174 %dir %{_libdir}/bluetooth
175 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio
176 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network
177 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial
178 %dir %{_sysconfdir}/bluetooth
179 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
180 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
181 %{_sysconfdir}/bluetooth/audio.service
182 %{_sysconfdir}/bluetooth/network.service
183 %{_sysconfdir}/bluetooth/serial.service
184 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
185 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
186 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
187 %attr(755,root,root) /lib/udev/bluetooth.sh
188 %attr(755,root,root) /lib/udev/bluetooth_serial
189 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
190 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
192 %{_mandir}/man5/hcid.conf.5*
194 %files -n alsa-plugins-bluetooth
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
197 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
199 %files -n cups-backend-bluetooth
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
203 %files -n gstreamer-bluetooth
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so