2 # - check init script, add support for rfcomm bind on startup
4 Summary: Bluetooth utilities
5 Summary(pl): Narzêdzia Bluetooth
11 Group: Applications/System
12 Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
13 # Source0-md5: 42be19b0029a83824358baa0106da947
15 Source2: %{name}.sysconfig
16 Patch0: %{name}-etc_dir.patch
17 Patch1: %{name}-dbus.patch
18 Patch2: %{name}-dbuslate.patch
19 URL: http://bluez.sourceforge.net/
20 BuildRequires: autoconf
21 BuildRequires: automake
23 BuildRequires: bluez-libs-devel >= 2.15
24 BuildRequires: dbus-devel >= 0.33
25 BuildRequires: libtool
26 BuildRequires: libusb-devel
27 # alsa-lib-devel, openobex-devel - currently only checked for, not used
29 Requires: bluez-libs >= 2.15
32 Conflicts: bluez-bluefw
33 ExcludeArch: s390 s390x
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 # currently lib, not %{_lib} (see cups.spec)
37 %define cupsdir /usr/lib/cups/backend
47 - PCMCIA configuration files
49 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
58 - skrypty startowe (PLD)
59 - pliki konfiguracji PCMCIA
61 %package -n cups-backend-bluetooth
62 Summary: Bluetooth backend for CUPS
63 Summary(pl): Backend Bluetooth dla CUPS-a
64 Group: Applications/Printing
65 Requires: bluez-libs >= 2.11
68 %description -n cups-backend-bluetooth
69 Bluetooth backend for CUPS.
71 %description -n cups-backend-bluetooth -l pl
72 Backend Bluetooth dla CUPS-a.
75 Summary: Init script for Bluetooth subsystem
76 Summary(pl): Skrypt init dla podsystemu Bluetooth
77 Group: Applications/System
78 Requires: %{name} = %{epoch}:%{version}-%{release}
79 Requires(post,preun): /sbin/chkconfig
82 Init script for Bluetooth subsystem.
84 %description init -l pl
85 Skrypt init dla podsystemu Bluetooth.
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
111 DESTDIR=$RPM_BUILD_ROOT \
114 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
115 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
118 rm -rf $RPM_BUILD_ROOT
121 /sbin/chkconfig --add bluetooth
122 if [ -f /var/lock/subsys/bluetooth ]; then
123 /etc/rc.d/init.d/bluetooth restart >&2
125 echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
129 if [ "$1" = "0" ]; then
130 if [ -f /var/lock/subsys/bluetooth ]; then
131 /etc/rc.d/init.d/bluetooth stop 1>&2
133 /sbin/chkconfig --del bluetooth
137 %defattr(644,root,root,755)
138 %doc AUTHORS ChangeLog README
139 %attr(755,root,root) %{_bindir}/*
140 %attr(755,root,root) %{_sbindir}/*
142 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bluetooth
143 %dir %{_sysconfdir}/bluetooth
144 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
145 %attr(755,root,root) %{_sysconfdir}/hotplug/usb/bcm203x
146 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/hotplug/usb/bcm203x.usermap
147 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
148 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth
150 %files -n cups-backend-bluetooth
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
155 %defattr(644,root,root,755)
156 %attr(754,root,root) /etc/rc.d/init.d/bluetooth