]> git.pld-linux.org Git - packages/at.git/blobdiff - at.spec
- rel 31
[packages/at.git] / at.spec
diff --git a/at.spec b/at.spec
index 6a817f7cd81b29f603e1888622078be1859bde54..97976efc3d3c1450dc8d4744863ee009a48ae82f 100644 (file)
--- a/at.spec
+++ b/at.spec
@@ -9,7 +9,7 @@ Summary(tr):    
 Summary(uk):   õÔÉ̦ÔÉ ÄÌѠצÄËÌÁÄÅÎÏÇÏ ÚÁÐÕÓËÕ ÚÁ×ÄÁÎØ
 Name:          at
 Version:       3.1.8
-Release:       30
+Release:       31
 License:       GPL
 Group:         Daemons
 Source0:       ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin/%{name}-%{version}.tar.gz
@@ -36,10 +36,11 @@ Patch14:    %{name}-env-tng.patch
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: flex
-PreReq:                rc-scripts >= 0.2.0
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post):        fileutils
 Requires(post,preun):  /sbin/chkconfig
 Requires:      /usr/lib/sendmail
+Requires:      rc-scripts >= 0.2.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/at
@@ -110,7 +111,7 @@ at 
 %patch14 -p1
 
 %build
-cp -f %{_datadir}/automake/config.* .
+cp -f /usr/share/automake/config.* .
 %{__aclocal}
 %{__autoconf}
 %configure \
@@ -125,7 +126,8 @@ cp -f %{_datadir}/automake/config.* .
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 
-%{__make} IROOT=$RPM_BUILD_ROOT install
+%{__make} install \
+       IROOT=$RPM_BUILD_ROOT
 
 install at.deny $RPM_BUILD_ROOT%{_sysconfdir}
 
@@ -157,37 +159,26 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/chkconfig --add atd
 touch /var/spool/at/.SEQ
-if [ -f /var/lock/subsys/atd ]; then
-       /etc/rc.d/init.d/atd restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/atd start\" to start atd daemon."
-fi
+%service atd restart "atd daemon"
 
 %preun
 if [ "$1" = "0" ] ; then
-       if [ -f /var/lock/subsys/atd ]; then
-               /etc/rc.d/init.d/atd stop >&2
-       fi
+       %service atd stop
        /sbin/chkconfig --del atd
 fi
 
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog README timespec
-
 %attr(750,root,root) %dir %{_sysconfdir}
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
-%attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/*
-
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
 %attr(754,root,root) /etc/rc.d/init.d/atd
 %attr(755,root,root) %{_sbindir}/*
-
 %attr(4755,root,root) %{_bindir}/at
-
 %attr(755,root,root) %{_bindir}/atq
 %attr(755,root,root) %{_bindir}/atrm
 %attr(755,root,root) %{_bindir}/batch
-
 %{_mandir}/man*/*
 %lang(es) %{_mandir}/es/man*/*
 %lang(fi) %{_mandir}/fi/man*/*
@@ -198,7 +189,6 @@ fi
 %lang(ja) %{_mandir}/ja/man*/*
 %lang(ko) %{_mandir}/ko/man*/*
 %lang(pl) %{_mandir}/pl/man*/*
-
 %attr(750,root,root) %dir /var/spool/at
 %attr(750,root,root) %dir /var/spool/at/spool
 %attr(600,root,root) %ghost /var/spool/at/.SEQ
This page took 0.069283 seconds and 4 git commands to generate.