2 # - check init script, add support for rfcomm bind on startup
3 # - security http://www.gentoo.org/security/en/glsa/glsa-200508-09.xml
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: f61b3b87177d876c4fcfaba890b049b4
15 Source2: %{name}.sysconfig
16 Patch0: %{name}-etc_dir.patch
17 Patch1: %{name}-dbuslate.patch
18 URL: http://bluez.sourceforge.net/
19 BuildRequires: autoconf
20 BuildRequires: automake
22 BuildRequires: bluez-libs-devel >= 2.21
23 BuildRequires: dbus-devel >= 0.33
24 BuildRequires: libtool
25 BuildRequires: libusb-devel
26 # alsa-lib-devel, openobex-devel - currently only checked for, not used
28 Requires: bluez-libs >= 2.21
31 Conflicts: bluez-bluefw
32 ExcludeArch: s390 s390x
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 # currently lib, not %{_lib} (see cups.spec)
36 %define cupsdir /usr/lib/cups/backend
46 - PCMCIA configuration files
48 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
57 - skrypty startowe (PLD)
58 - pliki konfiguracji PCMCIA
60 %package -n cups-backend-bluetooth
61 Summary: Bluetooth backend for CUPS
62 Summary(pl): Backend Bluetooth dla CUPS-a
63 Group: Applications/Printing
64 Requires: bluez-libs >= 2.21
67 %description -n cups-backend-bluetooth
68 Bluetooth backend for CUPS.
70 %description -n cups-backend-bluetooth -l pl
71 Backend Bluetooth dla CUPS-a.
74 Summary: Init script for Bluetooth subsystem
75 Summary(pl): Skrypt init dla podsystemu Bluetooth
76 Group: Applications/System
77 Requires: %{name} = %{epoch}:%{version}-%{release}
78 Requires(post,preun): /sbin/chkconfig
81 Init script for Bluetooth subsystem.
83 %description init -l pl
84 Skrypt init dla podsystemu Bluetooth.
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
109 DESTDIR=$RPM_BUILD_ROOT \
112 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
113 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
116 rm -rf $RPM_BUILD_ROOT
119 /sbin/chkconfig --add bluetooth
120 if [ -f /var/lock/subsys/bluetooth ]; then
121 /etc/rc.d/init.d/bluetooth restart >&2
123 echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
127 if [ "$1" = "0" ]; then
128 if [ -f /var/lock/subsys/bluetooth ]; then
129 /etc/rc.d/init.d/bluetooth stop 1>&2
131 /sbin/chkconfig --del bluetooth
135 %defattr(644,root,root,755)
136 %doc AUTHORS ChangeLog README
137 %attr(755,root,root) %{_bindir}/*
138 %attr(755,root,root) %{_sbindir}/*
140 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
141 %dir %{_sysconfdir}/bluetooth
142 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*
143 %attr(755,root,root) %{_sysconfdir}/hotplug/usb/bcm203x
144 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hotplug/usb/bcm203x.usermap
145 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pcmcia/bluetooth.conf
146 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pcmcia/bluetooth
148 %files -n cups-backend-bluetooth
149 %defattr(644,root,root,755)
150 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
153 %defattr(644,root,root,755)
154 %attr(754,root,root) /etc/rc.d/init.d/bluetooth