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: 4fc292b635ba7b442c7aaf5680199012
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.32
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: libopensync-devel < 0.30
29 BuildRequires: libtool
30 BuildRequires: libusb-devel
31 BuildRequires: openobex-devel >= 1.1
32 BuildRequires: pkgconfig >= 1:0.9.0
33 BuildRequires: rpmbuild(macros) >= 1.268
34 Requires: bluez-libs >= 3.32
36 Obsoletes: bluez-hciemu
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
46 %define udevdir /%{_lib}/udev
59 - PCMCIA configuration files
61 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
63 %description -l pl.UTF-8
73 - skrypty startowe (PLD)
74 - pliki konfiguracji PCMCIA
76 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
78 %package -n alsa-plugins-bluetooth
79 Summary: ALSA plugins for Bluetooth audio devices
80 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
82 # bluetoothd + audio service
83 Requires: %{name} = %{epoch}:%{version}-%{release}
84 Requires: alsa-lib >= 1.0.10-1
86 %description -n alsa-plugins-bluetooth
87 ALSA plugins for Bluetooth audio devices.
89 %description -n alsa-plugins-bluetooth -l pl.UTF-8
90 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
92 %package -n cups-backend-bluetooth
93 Summary: Bluetooth backend for CUPS
94 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
95 Group: Applications/Printing
96 Requires: bluez-libs >= 3.32
99 %description -n cups-backend-bluetooth
100 Bluetooth backend for CUPS.
102 %description -n cups-backend-bluetooth -l pl.UTF-8
103 Backend Bluetooth dla CUPS-a.
105 %package -n gstreamer-bluetooth
106 Summary: Bluetooth support for gstreamer
107 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
109 Requires: bluez-libs >= 3.32
110 Requires: gstreamer >= 0.10
111 Requires: gstreamer-plugins-base >= 0.10
113 %description -n gstreamer-bluetooth
114 Bluetooth support for gstreamer.
116 %description -n gstreamer-bluetooth -l pl.UTF-8
117 Obsługa Bluetooth dla gstreamera.
144 --enable-pcmciarules \
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
160 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
163 DESTDIR=$RPM_BUILD_ROOT \
168 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
170 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
171 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
172 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
173 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
174 install test/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
175 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
176 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
178 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
179 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
180 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
183 rm -rf $RPM_BUILD_ROOT
186 /sbin/chkconfig --add bluetooth
187 %service bluetooth restart
190 if [ "$1" = "0" ]; then
191 %service bluetooth stop
192 /sbin/chkconfig --del bluetooth
196 %defattr(644,root,root,755)
197 %doc AUTHORS ChangeLog README audio/audio-api.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
198 %attr(755,root,root) %{_bindir}/*
199 %attr(755,root,root) %{_sbindir}/*
200 %dir %{_libdir}/bluetooth
201 %dir %{_libdir}/bluetooth/plugins
202 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
203 %dir %{_sysconfdir}/bluetooth
204 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
206 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
208 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
209 %attr(755,root,root) %{udevdir}/bluetooth.sh
210 %attr(755,root,root) %{udevdir}/bluetooth_serial
211 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
212 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
214 %{_mandir}/man5/hcid.conf.5*
216 %files -n alsa-plugins-bluetooth
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
219 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
221 %files -n cups-backend-bluetooth
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
225 %files -n gstreamer-bluetooth
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so