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: a87bd1e87923ff60c5855be74f0d3f7a
13 Source2: %{name}.sysconfig
14 Source3: %{name}-udev.rules
15 Source4: %{name}-udev.script
16 Patch0: %{name}-etc_dir.patch
17 Patch1: %{name}-bnep_ifup.patch
18 Patch2: %{name}-nap_bridge_fix.patch
19 URL: http://www.bluez.org/
20 BuildRequires: alsa-lib-devel >= 1.0.10-1
21 BuildRequires: autoconf >= 2.50
22 BuildRequires: automake
24 BuildRequires: bluez-libs-devel >= 3.31
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: hal-devel >= 0.5.8
30 #BuildRequires: libopensync-devel < 0.30
31 BuildRequires: libtool
32 BuildRequires: libusb-devel
33 BuildRequires: openobex-devel >= 1.1
34 BuildRequires: pkgconfig >= 1:0.9.0
35 BuildRequires: rpmbuild(macros) >= 1.268
36 Requires: bluez-libs >= 3.31
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
47 %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
72 - skrypty startowe (PLD)
73 - pliki konfiguracji PCMCIA
75 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
77 %package -n alsa-plugins-bluetooth
78 Summary: ALSA plugins for Bluetooth audio devices
79 Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
81 # bluetoothd + audio service
82 Requires: %{name} = %{epoch}:%{version}-%{release}
83 Requires: alsa-lib >= 1.0.10-1
85 %description -n alsa-plugins-bluetooth
86 ALSA plugins for Bluetooth audio devices.
88 %description -n alsa-plugins-bluetooth -l pl.UTF-8
89 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
91 %package -n cups-backend-bluetooth
92 Summary: Bluetooth backend for CUPS
93 Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
94 Group: Applications/Printing
95 Requires: bluez-libs >= 3.31
98 %description -n cups-backend-bluetooth
99 Bluetooth backend for CUPS.
101 %description -n cups-backend-bluetooth -l pl.UTF-8
102 Backend Bluetooth dla CUPS-a.
104 %package -n gstreamer-bluetooth
105 Summary: Bluetooth support for gstreamer
106 Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
108 Requires: bluez-libs >= 3.31
109 Requires: gstreamer >= 0.10
110 Requires: gstreamer-plugins-base >= 0.10
112 %description -n gstreamer-bluetooth
113 Bluetooth support for gstreamer.
115 %description -n gstreamer-bluetooth -l pl.UTF-8
116 Obsługa Bluetooth dla gstreamera.
145 --enable-pcmciarules \
159 rm -rf $RPM_BUILD_ROOT
160 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
161 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
164 DESTDIR=$RPM_BUILD_ROOT \
169 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
171 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
172 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
173 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
174 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
175 install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
176 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
177 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
179 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
180 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
181 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
184 rm -rf $RPM_BUILD_ROOT
187 /sbin/chkconfig --add bluetooth
188 %service bluetooth restart
191 if [ "$1" = "0" ]; then
192 %service bluetooth stop
193 /sbin/chkconfig --del bluetooth
197 %defattr(644,root,root,755)
198 %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
199 %attr(755,root,root) %{_bindir}/*
200 %attr(755,root,root) %{_sbindir}/*
201 %dir %{_libdir}/bluetooth
202 %dir %{_libdir}/bluetooth/plugins
203 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
204 %dir %{_sysconfdir}/bluetooth
205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
206 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
207 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
208 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
209 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
210 %attr(755,root,root) %{udevdir}/bluetooth.sh
211 %attr(755,root,root) %{udevdir}/bluetooth_serial
212 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
213 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
215 %{_mandir}/man5/hcid.conf.5*
217 %files -n alsa-plugins-bluetooth
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
220 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
222 %files -n cups-backend-bluetooth
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
226 %files -n gstreamer-bluetooth
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so