1 # TODO: PLDify init script
2 Summary: Bluetooth utilities
3 Summary(pl): Narzêdzia Bluetooth
8 Group: Applications/System
9 Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
10 Patch0: %{name}-opt.patch
11 Patch1: %{name}-etc_dir.patch
12 URL: http://bluez.sourceforge.net/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: bluez-libs-devel >= 2.0
16 BuildRequires: libtool
17 Requires(post,preun): /sbin/chkconfig
18 ExcludeArch: s390 s390x
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Bluetooth utilities (bluez-utils):
29 - PCMCIA configuration files
31 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
34 Narzêdzia Bluetooth (bluez-utils):
40 - skrypty startowe (PLD)
41 - pliki konfiguracji PCMCIA
58 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT \
61 confdir=%{_sysconfdir}/bluetooth \
64 %{__make} -C scripts \
65 DESTDIR=$RPM_BUILD_ROOT \
69 rm -rf $RPM_BUILD_ROOT
72 /sbin/chkconfig --add bluetooth
73 if [ -f /var/lock/subsys/bluetooth ]; then
74 /etc/rc.d/init.d/bluetooth restart >&2
76 echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
80 if [ "$1" = "0" ]; then
81 if [ -f /var/lock/subsys/bluetooth ]; then
82 /etc/rc.d/init.d/bluetooth stop 1>&2
84 /sbin/chkconfig --del bluetooth
88 %defattr(644,root,root,755)
89 %doc AUTHORS ChangeLog README
90 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
91 %attr(755,root,root) %{_bindir}/*
92 %attr(755,root,root) %{_sbindir}/*
94 %dir %{_sysconfdir}/bluetooth
95 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
96 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
97 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth