]> git.pld-linux.org Git - packages/autolog.git/blobdiff - autolog.spec
- orphaned, outdated
[packages/autolog.git] / autolog.spec
index 0ea3bc23dc32e7b9a9aff9065aa27ea359ee0aca..57cddb41c7fd8bbe43d6031bb2efbeda39f82a74 100644 (file)
@@ -8,8 +8,9 @@ Group:          Daemons
 Source0:       ftp://sunsite.unc.edu/pub/Linux/system/admin/idle/%{name}-%{version}.tar.gz
 # Source0-md5: bcca87156acfdce9171acc90b35f9d0d
 Source1:       %{name}.init
-PreReq:                rc-scripts
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -31,7 +32,9 @@ u
 # Remove stale binaries
 %{__make} clean
 
-%{__make} CFLAGS="%{rpmcflags}"
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -50,17 +53,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add autolog
-if [ -f /var/lock/subsys/autolog ]; then
-       /etc/rc.d/init.d/autolog restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/autolog start\" to activate autolog."
-fi
+%service autolog restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/autolog ]; then
-               /etc/rc.d/init.d/autolog stop >&2
-       fi
+       %service autolog stop
        /sbin/chkconfig --del autolog
 fi
 
@@ -68,7 +65,7 @@ fi
 %defattr(644,root,root,755)
 %doc README CHANGES
 %attr(755,root,root) %{_sbindir}/%{name}
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/autolog.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autolog.conf
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 %{_mandir}/man?/*
 %attr(640,root,root) %ghost /var/log/autolog.log
This page took 0.034725 seconds and 4 git commands to generate.