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}-etc_dir.patch
11 URL: http://bluez.sourceforge.net/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: bluez-libs-devel >= 2.0
15 BuildRequires: libtool
16 Requires(post,preun): /sbin/chkconfig
17 ExcludeArch: s390 s390x
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Bluetooth utilities (bluez-utils):
28 - PCMCIA configuration files
30 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
33 Narzêdzia Bluetooth (bluez-utils):
39 - skrypty startowe (PLD)
40 - pliki konfiguracji PCMCIA
56 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT \
59 confdir=%{_sysconfdir}/bluetooth \
62 %{__make} -C scripts \
63 DESTDIR=$RPM_BUILD_ROOT \
67 rm -rf $RPM_BUILD_ROOT
70 /sbin/chkconfig --add bluetooth
71 if [ -f /var/lock/subsys/bluetooth ]; then
72 /etc/rc.d/init.d/bluetooth restart >&2
74 echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
78 if [ "$1" = "0" ]; then
79 if [ -f /var/lock/subsys/bluetooth ]; then
80 /etc/rc.d/init.d/bluetooth stop 1>&2
82 /sbin/chkconfig --del bluetooth
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog README
88 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
89 %attr(755,root,root) %{_bindir}/*
90 %attr(755,root,root) %{_sbindir}/*
92 %dir %{_sysconfdir}/bluetooth
93 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
94 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
95 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth