2 # - check init script, add support for rfcomm bind on startup
4 Summary: Bluetooth utilities
5 Summary(pl): Narzêdzia Bluetooth
10 Group: Applications/System
11 Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
12 # Source0-md5: 5b67e008efa785175cdbc3c8dcdebab2
14 Source2: %{name}.sysconfig
15 Patch0: %{name}-opt.patch
16 Patch1: %{name}-etc_dir.patch
17 Patch2: %{name}-cups.patch
18 URL: http://bluez.sourceforge.net/
19 BuildRequires: autoconf
20 BuildRequires: automake
22 BuildRequires: bluez-libs-devel >= 2.7
23 BuildRequires: libtool
25 Requires(post,preun): /sbin/chkconfig
26 Requires: bluez-libs >= 2.7
28 ExcludeArch: s390 s390x
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Bluetooth utilities (bluez-utils):
39 - PCMCIA configuration files
41 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
44 Narzêdzia Bluetooth (bluez-utils):
50 - skrypty startowe (PLD)
51 - pliki konfiguracji PCMCIA
53 %package -n cups-backend-bluetooth
54 Summary: Bluetooth backend for CUPS
55 Summary(pl): Backend Bluetooth dla CUPS-a
56 Group: Applications/Printing
57 Requires: bluez-libs >= 2.7
60 %description -n cups-backend-bluetooth
61 Bluetooth backend for CUPS.
63 %description -n cups-backend-bluetooth -l pl
64 Backend Bluetooth dla CUPS-a.
72 # fix path (default prefix was /)
73 sed -e "s@pin_helper.*bluepin;@pin_helper %{_bindir}/bluepin;@" \
74 hcid/hcid.conf > hcid.conf.tmp
75 mv -f hcid.conf.tmp hcid/hcid.conf
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
92 DESTDIR=$RPM_BUILD_ROOT
94 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
95 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
98 rm -rf $RPM_BUILD_ROOT
101 /sbin/chkconfig --add bluetooth
102 if [ -f /var/lock/subsys/bluetooth ]; then
103 /etc/rc.d/init.d/bluetooth restart >&2
105 echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
109 if [ "$1" = "0" ]; then
110 if [ -f /var/lock/subsys/bluetooth ]; then
111 /etc/rc.d/init.d/bluetooth stop 1>&2
113 /sbin/chkconfig --del bluetooth
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog README
119 %attr(755,root,root) %{_bindir}/*
120 %attr(755,root,root) %{_sbindir}/*
122 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
123 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bluetooth
124 %dir %{_sysconfdir}/bluetooth
125 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
126 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
127 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth
129 %files -n cups-backend-bluetooth
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth