]> git.pld-linux.org Git - packages/autolog.git/blobdiff - autolog.spec
- fixed Source0 URL
[packages/autolog.git] / autolog.spec
index 89221a4604a66feb3a4f97efc4932de801127ef1..c47fd7711fb384d7c113df27bf143e289f70019a 100644 (file)
@@ -5,11 +5,10 @@ Version:      0.40
 Release:       1
 License:       GPL
 Group:         Daemons
-Group(de):     Server
-Group(pl):     Serwery
-Source0:       ftp://sunsite.unc.edu/pub/Linux/system/Admin/idle/%{name}-%{version}.tar.gz
-Source1:       autolog.init
-Prereq:                /sbin/chkconfig
+Source0:       ftp://sunsite.unc.edu/pub/Linux/system/admin/idle/%{name}-%{version}.tar.gz
+Source1:       %{name}.init
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,22 +34,20 @@ u
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_sysconfdir}/rc.d/init.d}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/rc.d/init.d}
 
 install autolog $RPM_BUILD_ROOT%{_sbindir}
 install autolog.conf $RPM_BUILD_ROOT%{_sysconfdir}
 install autolog.8.gz $RPM_BUILD_ROOT%{_mandir}/man8
 install autolog.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
-
-gzip -9nf README CHANGES 
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add autolog
-if [ -f /var/lock/subsys/autolog ]; then
+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."
@@ -58,7 +55,7 @@ fi
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/autolog ]; then
+       if [ -f /var/lock/subsys/autolog ]; then
                /etc/rc.d/init.d/autolog stop >&2
        fi
        /sbin/chkconfig --del autolog
@@ -66,8 +63,8 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc README.gz CHANGES.gz
+%doc README CHANGES
 %attr(755,root,root) %{_sbindir}/%{name}
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/autolog.conf
-%attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
 %{_mandir}/man?/*
This page took 0.06967 seconds and 4 git commands to generate.