]> git.pld-linux.org Git - packages/bluez-utils.git/commitdiff
- pl description (but changed note about init scripts - it isn't RedHat)
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 10 Mar 2003 20:14:17 +0000 (20:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixed some perms, added noreplace and verify for config files

Changed files:
    bluez-utils.spec -> 1.4

bluez-utils.spec

index 04dcd15fc62e0e7d05a710f6af14d92e4a14ff46..3f6a1511b73563c96d61c4f732d117981290ab04 100644 (file)
@@ -1,15 +1,19 @@
 Summary:       Bluetooth utilities
+Summary(pl):   Narzêdzia Bluetooth
 Name:          bluez-utils
 Version:       2.2
 Release:       2
 License:       GPL v2
 Group:         Applications/System
 Source0:       http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-URL:           http://bluez.sourceforge.net
+URL:           http://bluez.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: bluez-libs-devel >= 2.0
+BuildRequires: libtool
 Requires(post,preun):  /sbin/chkconfig
 ExcludeArch:   s390 s390x
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Bluetooth utilities (bluez-utils):
@@ -18,15 +22,22 @@ Bluetooth utilities (bluez-utils):
  - hciconfig
  - hcid
  - l2ping
- - start scripts (RedHat)
- - pcmcia configuration files
+ - start scripts (PLD)
+ - PCMCIA configuration files
 
 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
 
-
+%description -l pl
+Narzêdzia Bluetooth (bluez-utils):
+ - hcitool
+ - hciattach
+ - hciconfig
+ - hcid
+ - l2ping
+ - skrypty startowe (PLD)
+ - pliki konfiguracji PCMCIA
 %prep
-rm -rf $RPM_BUILD_ROOT
-
 %setup -q
 
 %build
@@ -40,9 +51,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT \
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
        confdir=%{_sysconfdir}/bluetooth \
        mandir=%{_mandir}
+
 %{__make} -C scripts \
        DESTDIR=$RPM_BUILD_ROOT \
        redhat
@@ -52,6 +65,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add bluetooth
+if [ -f /var/lock/subsys/bluetooth ]; then
+       /etc/rc.d/init.d/bluetooth restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
+fi
 
 %postun
 if [ "$1" = "0" ]; then
@@ -64,11 +82,11 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
-/etc/rc.d/init.d/bluetooth
+%attr(754,root,root) /etc/rc.d/init.d/bluetooth
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man*/*
-%dir %{_sysconfdir}/bluetooth/
-%config %{_sysconfdir}/bluetooth/*
-%config %{_sysconfdir}/pcmcia/bluetooth.conf
-%config %{_sysconfdir}/pcmcia/bluetooth
+%dir %{_sysconfdir}/bluetooth
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth
This page took 0.132874 seconds and 4 git commands to generate.