]> git.pld-linux.org Git - packages/at.git/blob - at.spec
05bea05bb90c6a39c8b50c7e47fd1f9c7f201bb2
[packages/at.git] / at.spec
1 Summary:     at job spooler
2 Summary(de): at-Job-Spooler
3 Summary(fr): Gestionnaire de taches at.
4 Summary(tr): Ýþ düzenleyici
5 Name:        at
6 Version:     3.1.7
7 Release:     5
8 Copyright:   GPL
9 Group:       Daemons
10 Source0:     ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin/at-3.1.7.tar.gz
11 Source1:     atd.init
12 Patch0:      at-3.1.7-lockfile.patch
13 Patch1:      at-3.1.7-paths.patch
14 Patch2:      at-makefile.patch
15 Buildroot:   /tmp/%{name}-%{version}-root
16 Prereq:      fileutils chkconfig
17 Conflicts:   crontabs <= 1.5
18
19 %description
20 at and batch read commands from standard input or a specified file
21 which are to be executed at a later time, using /bin/sh.
22
23 %description -l de
24 Stapelverarbeitung von Lesebefehlen von einer Standard- oder einer 
25 genannten Datei zu einem späteren Zeitpunkt unter Verwendung von /bin/sh.
26
27 %description -l fr
28 at et batch lisent, sur l'entrée standard ou dans un fichier, des
29 commandes qui doivent être exécutées plus tard en utilisant /bin/sh.
30
31 %description -l tr
32 at ve batch /bin/sh kabuðunu kullanarak, belli bir saatte çalýþtýrmak üzere
33 standart giriþden ya da bir dosyadan komut okur.
34
35 %prep
36 %setup -q
37 %patch0 -p1 -b .lockfile
38 # The next path is a brute-force fix that will have to be updated
39 # when new versions of at are released.
40 %patch1 -p1 -b .paths
41 %patch2 -p1 -b .makefile
42
43 %build
44 CFLAGS=$RPM_OPT_FLAGS ./configure \
45         --with-atspool=/var/spool/at/spool \
46         --with-jobdir=/var/spool/at
47 make
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
52
53 make install IROOT=$RPM_BUILD_ROOT
54
55 echo > $RPM_BUILD_ROOT/etc/at.deny
56 mv $RPM_BUILD_ROOT/usr/doc/at $RPM_BUILD_ROOT/usr/doc/%{name}-%{version}
57
58 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/atd
59
60 rm -f $RPM_BUILD_ROOT/usr/man/man1/{atq,atrm,batch}.1
61 echo ".so at.1" > $RPM_BUILD_ROOT/usr/man/man1/atq.1
62 echo ".so at.1" > $RPM_BUILD_ROOT/usr/man/man1/atrm.1
63 echo ".so at.1" > $RPM_BUILD_ROOT/usr/man/man1/batch.1
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post
69 touch /var/spool/at/.SEQ
70 chmod 600 /var/spool/at/.SEQ
71 chown daemon.daemon /var/spool/at/.SEQ
72 /sbin/chkconfig --add atd
73
74 %preun
75 if [ "$1" = 0 ] ; then
76   /sbin/chkconfig --del atd
77 fi
78
79 %files
80 %attr(644, root, root, 755) %doc /usr/doc/%{name}-%{version}
81 %attr(600, root, root) %config /etc/at.deny
82 %attr(500, root, root) %config /etc/rc.d/init.d/atd
83 %attr(500, root, root) /usr/sbin/*
84 %attr(4711, root, root) /usr/bin/at
85 %attr(   -, root, root) /usr/bin/atq
86 %attr(   -, root, root) /usr/bin/atrm
87 %attr(755, root, root) /usr/bin/batch
88 %attr(644, root,  man) /usr/man/man[18]/*
89 %attr(700, daemon, daemon) %dir /var/spool/at
90 %attr(700, daemon, daemon) %dir /var/spool/at/spool
91 %attr(600, daemon, daemon) %ghost /var/spool/at/.SEQ
92
93 %changelog
94 * Thu Sep  8 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
95   [3.1.7-5]
96 - added -q %setup parameter,
97 - changed Buildroot to /tmp/%%{name}-%%{version}-root,
98 - added using %%{name} and %%{version} in Source,
99 - added using $RPM_OPT_FLAGS during compile,
100 - atq(1), atrm(1), batch(1) man pages are now maked as nroff include to at(1)
101   instead making sym link to at.1 (this allow compress man pages in future),
102 - added using %{SOURCE#} macro in %install,
103 - smarter instaling %doc,
104 - changed permission on some executables.
105 - added %attr and %defattr macros in %files (allow build package from
106   non-root account).
107
108 * Tue May 05 1998 Prospector System <bugs@redhat.com>
109 - translations modified for de, fr, tr
110
111 * Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com>
112 - enhanced initscript
113
114 * Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com>
115 - learned to spell
116
117 * Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com>
118 - updated to at version 3.1.7
119 - updated lock and sequence file handling with %ghost
120 - Use chkconfig and atd, now conflicts with old crontabs packages
121
122 * Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
123 - built against glibc
This page took 0.077025 seconds and 2 git commands to generate.