]> git.pld-linux.org Git - packages/at.git/blobdiff - at.spec
- use %service
[packages/at.git] / at.spec
diff --git a/at.spec b/at.spec
index 34ee7ab8f9542e9ee78b85641ead486971b8f15c..a6fc22fcef2d7269ebbd4492c7cd64377759761a 100644 (file)
--- a/at.spec
+++ b/at.spec
@@ -36,17 +36,18 @@ 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
 
 %description
-At and batch read commands from standard input or from a specified
-file. At allows you to specify that a command will be run at a
+at and batch read commands from standard input or from a specified
+file. at allows you to specify that a command will be run at a
 particular time (now or a specified time in the future). Batch will
 execute commands when the system load levels drop to a particular
 level. Both commands use /bin/sh to run the commands.
@@ -65,7 +66,7 @@ at et batch lisent, sur l'entr
 commandes qui doivent être exécutées plus tard en utilisant /bin/sh.
 
 %description -l pl
-At i batch czytaj± komendy ze standardowego wej¶cia lub specyficznego
+at i batch czytaj± komendy ze standardowego wej¶cia lub specyficznego
 pliku, które s± nastêpnie wykonywane o okre¶lonej godzinie, przy
 pomocy /bin/sh.
 
@@ -74,9 +75,9 @@ at e batch l
 especificado que são executados mais tarde, usando /bin/sh.
 
 %description -l ru
-At É batch ÞÉÔÁÀÔ ËÏÍÁÎÄÙ ÓÏ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ ÉÌÉ ÕËÁÚÁÎÎÏÇÏ ÆÁÊÌÁ.
-At ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓÔÉÔØ ËÏÍÁÎÄÕ × ÏÐÒÅÄÅÌÅÎÎÏÅ ×ÒÅÍÑ (ÓÅÊÞÁÓ ÉÌÉ ×
-ÂÕÄÕÝÅÍ). Batch ÉÓÐÏÌÎÑÅÔ ËÏÍÁÎÄÙ ËÏÇÄÁ ÚÁÇÒÕÚËÁ ÓÉÓÔÅÍÙ ÐÁÄÁÅÔ ÄÏ
+at É batch ÞÉÔÁÀÔ ËÏÍÁÎÄÙ ÓÏ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÁ ÉÌÉ ÕËÁÚÁÎÎÏÇÏ ÆÁÊÌÁ.
+at ÐÏÚ×ÏÌÑÅÔ ÚÁÐÕÓÔÉÔØ ËÏÍÁÎÄÕ × ÏÐÒÅÄÅÌÅÎÎÏÅ ×ÒÅÍÑ (ÓÅÊÞÁÓ ÉÌÉ ×
+ÂÕÄÕÝÅÍ). batch ÉÓÐÏÌÎÑÅÔ ËÏÍÁÎÄÙ ËÏÇÄÁ ÚÁÇÒÕÚËÁ ÓÉÓÔÅÍÙ ÐÁÄÁÅÔ ÄÏ
 ÏÐÒÅÄÅÌÅÎÎÏÇÏ ÚÎÁÞÅÎÉÑ. ïÂÅ ÐÒÏÇÒÁÍÍÙ ÉÓÐÏÌØÚÕÀÔ /bin/sh ÄÌÑ ÚÁÐÕÓËÁ
 ÄÒÕÇÉÈ ÐÒÏÇÒÁÍÍ.
 
@@ -85,9 +86,9 @@ at ve batch /bin/sh kabu
 üzere standart giriþden ya da bir dosyadan komut okur.
 
 %description -l uk
-At ÔÁ batch ÞÉÔÁÀÔØ ËÏÍÁÎÄÉ Ú¦ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÕ ÁÂÏ ÚÁÚÎÁÞÅÎÏÇÏ
+at ÔÁ batch ÞÉÔÁÀÔØ ËÏÍÁÎÄÉ Ú¦ ÓÔÁÎÄÁÒÔÎÏÇÏ ××ÏÄÕ ÁÂÏ ÚÁÚÎÁÞÅÎÏÇÏ
 ÆÁÊÌÕ. At ÄÏÚ×ÏÌѤ ÚÁÐÕÓÔÉÔÉ ËÏÍÁÎÄÕ × ÚÁÚÎÁÞÅÎÉÊ ÞÁÓ (ÚÁÒÁÚ ÁÂÏ Õ
-ÍÁÊÂÕÔÎØÏÍÕ). Batch ×ÉËÏÎÕ¤ ËÏÍÁÎÄÉ ËÏÌÉ ÚÁ×ÁÎÔÁÖÅÎÎÑ ÓÉÓÔÅÍÉ ÐÁÄÁ¤ ÄÏ
+ÍÁÊÂÕÔÎØÏÍÕ). batch ×ÉËÏÎÕ¤ ËÏÍÁÎÄÉ ËÏÌÉ ÚÁ×ÁÎÔÁÖÅÎÎÑ ÓÉÓÔÅÍÉ ÐÁÄÁ¤ ÄÏ
 ×ÉÚÎÁÞÅÎÏÇÏ ÚÎÁÞÅÎÎÑ. ïÂÉÄצ ÐÒÏÇÒÁÍÉ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ /bin/sh ÄÌÑ
 ÚÁÐÕÓËÕ ¦ÎÛÉÈ ÐÒÏÇÒÁÍ.
 
@@ -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.045402 seconds and 4 git commands to generate.