source: projects/specs/trunk/l/logrotate/logrotate-vl.spec @ 10377

Revision 10377, 7.5 KB checked in by tomop, 8 years ago (diff)

logrotate-3.9.2-1

Line 
1Summary: Rotates, compresses, removes and mails system log files.
2Summary(ja): システムのログファイルを圧縮/削除するプログラム
3Name: logrotate
4Version: 3.9.2
5Release: 1%{?_dist_release}
6License: GPL
7Group: System Environment/Base
8Url: https://fedorahosted.org/logrotate/
9
10Source: https://github.com/logrotate/logrotate/archive/logrotate-%{version}.tar.gz
11# Change the location of status file
12Patch0: logrotate-3.9.1-statusfile.patch
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15BuildRequires: acl libacl-devel popt-devel
16Requires: coreutils >= 5.92
17Requires: popt
18
19%description
20The logrotate utility is designed to simplify the administration of
21log files on a system which generates a lot of log files.  Logrotate
22allows for the automatic rotation compression, removal and mailing of
23log files.  Logrotate can be set to handle a log file daily, weekly,
24monthly or when the log file gets to a certain size.  Normally,
25logrotate runs as a daily cron job.
26
27Install the logrotate package if you need a utility to deal with the
28log files on your system.
29
30%description -l ja
31logrotate ユーティリティは,ログファイルを大量に生成するシステムでの
32ログファイル管理を楽にする目的で作られています.
33logrotate はログファイルを古いものから順にリネームしたり,
34圧縮したり,メールで送ったりすることが出来ます.
35logrotate の処理は,毎日/毎週/毎月といった単位でも設定出来ますし,
36ログファイルが一定サイズに達した時に処理する様にすることも出来ます.
37通常は logrotate は cron によって毎日実行される様になっています.
38
39システム上のログファイルを管理するツールが必要なら
40logrotate パッケージをインストールして下さい.
41
42%prep
43%setup -q
44%patch0 -p1 -b .statusfile
45
46%build
47export CFLAGS="$RPM_OPT_FLAGS"
48
49./autogen.sh
50%configure
51make %{?_smp_mflags}
52
53%check
54make test
55
56%install
57rm -rf $RPM_BUILD_ROOT
58make install DESTDIR=$RPM_BUILD_ROOT
59mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
60mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily
61mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/logrotate
62
63install -p -m 644 examples/logrotate-default $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.conf
64install -p -m 755 examples/logrotate.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/logrotate
65touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/logrotate/logrotate.status
66
67%pre
68# If /var/lib/logrotate/logrotate.status does not exist, create it and copy
69# the /var/lib/logrotate.status in it (if it exists). We have to do that in pre
70# script, otherwise the /var/lib/logrotate/logrotate.status would not be there,
71# because during the update, it is removed/renamed.
72if [ ! -d %{_localstatedir}/lib/logrotate/ -a -f %{_localstatedir}/lib/logrotate.status ]; then
73  mkdir -p %{_localstatedir}/lib/logrotate
74  cp -a %{_localstatedir}/lib/logrotate.status %{_localstatedir}/lib/logrotate
75fi
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%files
81%defattr(-,root,root)
82%{!?_licensedir:%global license %%doc}
83%license COPYING
84%doc CHANGES
85%attr(0755, root, root) %{_sbindir}/logrotate
86%attr(0644, root, root) %{_mandir}/man8/logrotate.8*
87%attr(0644, root, root) %{_mandir}/man5/logrotate.conf.5*
88%attr(0755, root, root) %{_sysconfdir}/cron.daily/logrotate
89%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/logrotate.conf
90%attr(0755, root, root) %dir %{_sysconfdir}/logrotate.d
91%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status
92
93%changelog
94* Sat Jun 18 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-1
95- new upstream release.
96- changed location of Source0.
97- imported Patch0 from rawhide.
98
99* Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.6-1
100- rebuild with VineSeed environment
101
102* Thu Oct 03 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8.6-1
103- new upstream release
104
105* Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.9-1
106- new upstream release
107- add Url
108- add patches from fedora
109  - fix #688520 - fixed CVE-2011-1154, CVE-2011-1155 and CVE-2011-1098
110  - fix #671926 - fixed crash when tabooext is used in config file
111  - fix #661181 - fixed SIGBUS when config file is empty or 4096 bytes
112  - fix #666677 - preserve ACLs when rotating files
113  - fix #644309 - mention all logrotate params in man page
114  - fix #638629 - better size directive description
115  - fixed AUTHORS in man page
116
117* Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.7-1
118- new upstream release
119- spec in UTF-8
120
121* Wed Jun  7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.4-1vl1
122- based on 3.7.4-1 from Rawhide
123  * Wed May 17 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-1
124  - add new "minsize" option (#173088)
125  * Tue Mar 28 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.3-3
126  - correct man page "extension" option description  (#185318)
127  * Mon Nov 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-11
128  - man description for "nodateext" option (#171577)
129  - remove not working "pattern" option (#171577)
130  * Wed Sep 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-3
131  - even when sharedscript option used, do postrotate
132    script before compress (#167575)
133  * Wed Aug 17 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-2
134  - allow yearly rotations(#134612)
135  * Wed Jun 22 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-12
136  - enhance logrotate with "dateext", "maxage"
137
138* Fri Apr 11 2003 Ryoichi INAGAKI <ryo1@ueda.info.waseda.ac.jp> 3.6.8-1vl1
139- based on 3.6.8-1 from Rawhide
140- add Requires, BuildRequires popt
141  * Mon Jan 20 2003 Elliot Lee <sopwith@redhat.com> 3.6.8-1
142  - Old patch from pm@debian.org
143  * Tue Jan 14 2003 Elliot Lee <sopwith@redhat.com> 3.6.7-1
144  - Fixes from bugzilla
145  * Fri Nov 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.6-1
146  - Commit patch from Fidelis Assis <fidelis@embratel.net.br>
147  * Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 3.6.5-1
148  - Commit fix for #65299
149  * Mon Apr 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.4-1
150  - Commit fix for #62560
151  * Wed Mar 13 2002 Elliot Lee <sopwith@redhat.com> 3.6.3-1
152  - Apply various bugfix patches from the openwall people
153  * Tue Jan 29 2002 Elliot Lee <sopwith@redhat.com> 3.6.2-1
154  - Fix bug #55809 (include logrotate.status in %files)
155  - Fix bug #58328 (incorrect error detection when reading state file)
156  - Allow 'G' size specifier from bug #57242
157  * Wed Nov 28 2001 Preston Brown <pbrown@redhat.com> 3.6-1
158  - patch from Alexander Kourakos <awk@awks.org> to stop the shared
159    postrotate/prerotate scripts from running if none of the log(s) need
160    rotating.  All log files are now checked for rotation in one batch,
161    rather than sequentially.
162  - more fixes from Paul Martin <pm@debian.org>
163
164* Thu Oct  4 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 3.5.4-1vl2
165- added noreplace flag (%%config file is not replaced)
166
167* Sun Jan 14 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
168- 3.5.4-1vl1
169- based on 3.5.4-1 from Rawhide
170- use better macros (%%{_tmppath}, %%{_sbindir})
171- added Japanese summary and description
172
173* Thu Jan  4 2001 Bill Nottingham <notting@redhat.com>
174- %defattr
175
176* Wed Jan 03 2001 Preston Brown <pbrown@redhat.com>
177- see CHANGES
178
179* Tue Aug 15 2000 Erik Troan <ewt@redhat.com>
180- see CHANGES
181
182* Sun Jul 23 2000 Erik Troan <ewt@redhat.com>
183- see CHANGES
184
185* Tue Jul 11 2000 Erik Troan <ewt@redhat.com>
186- support spaces in filenames
187- added sharedscripts
188
189* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
190- use %%{_mandir} for man pages
191
192* Thu Feb 24 2000 Erik Troan <ewt@redhat.com>
193- don't rotate lastlog
194
195* Thu Feb 03 2000 Erik Troan <ewt@redhat.com>
196- gzipped manpages
Note: See TracBrowser for help on using the repository browser.