]> git.pld-linux.org Git - packages/logrotate.git/blob - logrotate.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/logrotate.git] / logrotate.spec
1 Summary:        Rotates, compresses, removes and mails system log files
2 Summary(de):    Rotiert, komprimiert und verschickt Systemlogs
3 Summary(es):    Hace el rutado, comprime y envía mail de logs del sistema
4 Summary(fr):    Fait tourner, compresse, et envoie par mail les connexions au système
5 Summary(pl):    System rotacji i kompresowania logów
6 Summary(tr):    Sistem günlüklerini yönlendirir, sýkýþtýrýr ve mektup olarak yollar
7 Name:           logrotate
8 Version:        3.6
9 Release:        4
10 License:        GPL
11 Group:          Applications/System
12 Source0:        ftp://ftp.redhat.com/pub/redhat/code/logrotate/%{name}-%{version}.tar.gz
13 Source1:        %{name}.conf
14 Requires:       /bin/mail
15 Requires(post): fileutils
16 BuildRequires:  popt-devel >= 1.3
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The logrotate utility is designed to simplify the administration of
21 log files on a system which generates a lot of log files. Logrotate
22 allows for the automatic rotation compression, removal and mailing of
23 log files. Logrotate can be set to handle a log file daily, weekly,
24 monthly or when the log file gets to a certain size. Normally,
25 logrotate runs as a daily cron job.
26
27 %description -l de
28 Logrotate vereinfacht die Verwaltung von Systemen, die sehr viele
29 Log-Dateien erzeugen, indem es das automatische Rotieren,
30 Komprimieren, Entfernen, und Senden von Log-Dateien ermöglicht. Jede
31 Log-Datei kann täglich, wöchentlich oder monatlich verarbeitet werden,
32 wenn sie zu groß wird.
33
34 %description -l es
35 Logrotate fue proyectado para facilitar la administración de sistemas
36 que generan gran número de archivos de log. Permite automatización en
37 la rotación, compresión, remoción y envío de mail de archivos de logs.
38 Cada archivo de log puede ser tratado diariamente, semanalmente,
39 mensualmente o cuanto crezca demasiado.
40
41 %description -l fr
42 Logrotate est conçu pour faciliter l'administration de systèmes qui
43 générent un grand nombre de fichiers de \"log\". Il permet le
44 roulement, la suppréssion la compression et l'envoi automatiques de
45 ces fichiers. Chaque fichier de \"log\" peut être pris en charge de
46 manière quotidienne, hebdomadaire, mensuelle, ou quand il devient trop
47 volumineux.
48
49 %description -l pl
50 Logrotate jest przeznaczony do ³atwej administracji plikami logów.
51 Program ten pozwala na automatyczn± kompresjê logów. Mo¿e kontrolowaæ
52 logi raz dziennie, raz na miesi±c, raz na tydzieñ lub wtedy kiedy
53 pliki z logami systemowymi s± ju¿ du¿e.
54
55 %description -l tr
56 logrotate çok fazla sayýda günlük dosyasý üreten sistemlerin
57 yönetimini kolaylaþtýrmak için tasarlanmýþtýr. Kayýt dosyalarýnýn
58 otomatik olarak yönlendirilmesini, sýkýþtýrýlmasýný, silinmesiný ve
59 mektup olarak yollanmasýný saðlar. Her dosya günlük, haftalýk, aylýk
60 olarak ya da çok büyük boyutlara ulaþtýðýnda iþlenebilir.
61
62 %prep
63 %setup -q
64
65 %build
66 %{__make} CC=%{__cc} RPM_OPT_FLAGS="%{rpmcflags}"
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT/{etc/{cron.daily,logrotate.d},var/{lib,log/archiv}} \
71         $RPM_BUILD_ROOT%{_mandir}
72
73 %{__make} install \
74         BINDIR=$RPM_BUILD_ROOT%{_sbindir} \
75         MANDIR=$RPM_BUILD_ROOT%{_mandir}
76
77 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.conf
78 install examples/logrotate.cron $RPM_BUILD_ROOT/etc/cron.daily/logrotate
79 > $RPM_BUILD_ROOT/var/lib/logrotate.status
80
81 gzip -9nf CHANGES
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 touch /var/lib/logrotate.status
88 chmod 000 /var/lib/logrotate.status
89 chown root.root /var/lib/logrotate.status
90 chmod 640 /var/lib/logrotate.status
91
92 %files
93 %defattr(644,root,root,755)
94 %doc CHANGES.gz
95 %attr(755,root,root) %{_sbindir}/logrotate
96 %attr(750,root,root) %dir /etc/logrotate.d
97 %attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/cron.daily/logrotate
98 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*.conf
99 %attr(640,root,root) %ghost /var/lib/logrotate.status
100 %attr(750,root,root) %dir /var/log/archiv
101
102 %{_mandir}/man8/*
This page took 0.196924 seconds and 4 git commands to generate.