2 # - check init script, add support for rfcomm bind on startup
3 Summary: Bluetooth utilities
4 Summary(pl): Narzêdzia Bluetooth
9 Group: Applications/System
10 Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
11 # Source0-md5: c8fa21bec5f226f3af8a36d281d77202
13 Source2: %{name}.sysconfig
14 Patch0: %{name}-opt.patch
15 Patch1: %{name}-etc_dir.patch
16 Patch2: %{name}-sdp.patch
17 URL: http://bluez.sourceforge.net/
18 BuildRequires: autoconf
19 BuildRequires: automake
21 BuildRequires: bluez-libs-devel >= 2.6
22 BuildRequires: libtool
24 Requires(post,preun): /sbin/chkconfig
25 Requires: bluez-libs >= 2.6
27 ExcludeArch: s390 s390x
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Bluetooth utilities (bluez-utils):
38 - PCMCIA configuration files
40 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
43 Narzêdzia Bluetooth (bluez-utils):
49 - skrypty startowe (PLD)
50 - pliki konfiguracji PCMCIA
58 # fix path (default prefix was /)
59 sed -e "s@pin_helper.*bluepin;@pin_helper %{_bindir}/bluepin;@" \
60 hcid/hcid.conf > hcid.conf.tmp
61 mv -f hcid.conf.tmp hcid/hcid.conf
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
77 DESTDIR=$RPM_BUILD_ROOT
79 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
80 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
83 rm -rf $RPM_BUILD_ROOT
86 /sbin/chkconfig --add bluetooth
87 if [ -f /var/lock/subsys/bluetooth ]; then
88 /etc/rc.d/init.d/bluetooth restart >&2
90 echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
94 if [ "$1" = "0" ]; then
95 if [ -f /var/lock/subsys/bluetooth ]; then
96 /etc/rc.d/init.d/bluetooth stop 1>&2
98 /sbin/chkconfig --del bluetooth
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog README
104 %attr(755,root,root) %{_bindir}/*
105 %attr(755,root,root) %{_sbindir}/*
107 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
108 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bluetooth
109 %dir %{_sysconfdir}/bluetooth
110 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
111 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
112 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth