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

Revision 10378, 7.7 KB checked in by tomop, 8 years ago (diff)

logrotate-3.9.2-2

Line 
1Summary: Rotates, compresses, removes and mails system log files.
2Summary(ja): システムのログファイルを圧縮/削除するプログラム
3Name: logrotate
4Version: 3.9.2
5Release: 2%{?_dist_release}
6License: GPL
7Group: System Environment/Base
8Url: https://fedorahosted.org/logrotate/
9Vendor: Project Vine
10Distribution: Vine Linux
11
12Source: https://github.com/logrotate/logrotate/archive/logrotate-%{version}.tar.gz
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
45perl -pi -e 's|/usr/sbin/logrotate|/usr/sbin/logrotate -l syslog|' examples/logrotate.cron
46
47%build
48export CFLAGS="$RPM_OPT_FLAGS -DSTATEFILE=\\\"/var/lib/logrotate/logrotate.status\\\""
49
50./autogen.sh
51%configure
52make %{?_smp_mflags}
53
54%check
55make test
56
57%install
58rm -rf $RPM_BUILD_ROOT
59make install DESTDIR=$RPM_BUILD_ROOT
60mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
61mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily
62mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/logrotate
63
64install -p -m 644 examples/logrotate-default $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.conf
65install -p -m 755 examples/logrotate.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/logrotate
66touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/logrotate/logrotate.status
67
68%pre
69# If /var/lib/logrotate/logrotate.status does not exist, create it and copy
70# the /var/lib/logrotate.status in it (if it exists). We have to do that in pre
71# script, otherwise the /var/lib/logrotate/logrotate.status would not be there,
72# because during the update, it is removed/renamed.
73if [ ! -d %{_localstatedir}/lib/logrotate/ -a -f %{_localstatedir}/lib/logrotate.status ]; then
74  mkdir -p %{_localstatedir}/lib/logrotate
75  cp -a %{_localstatedir}/lib/logrotate.status %{_localstatedir}/lib/logrotate
76fi
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files
82%defattr(-,root,root)
83%{!?_licensedir:%global license %%doc}
84%license COPYING
85%doc CHANGES
86%attr(0755, root, root) %{_sbindir}/logrotate
87%attr(0644, root, root) %{_mandir}/man8/logrotate.8*
88%attr(0644, root, root) %{_mandir}/man5/logrotate.conf.5*
89%attr(0755, root, root) %{_sysconfdir}/cron.daily/logrotate
90%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/logrotate.conf
91%attr(0755, root, root) %dir %{_sysconfdir}/logrotate.d
92%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status
93
94%changelog
95* Sun Jun 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-2
96- drop Patch0 (get the same effect by another way).
97
98* Sat Jun 18 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-1
99- new upstream release.
100- changed location of Source0.
101- imported Patch0 from rawhide.
102
103* Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.6-1
104- rebuild with VineSeed environment
105
106* Thu Oct 03 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8.6-1
107- new upstream release
108
109* Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.9-1
110- new upstream release
111- add Url
112- add patches from fedora
113  - fix #688520 - fixed CVE-2011-1154, CVE-2011-1155 and CVE-2011-1098
114  - fix #671926 - fixed crash when tabooext is used in config file
115  - fix #661181 - fixed SIGBUS when config file is empty or 4096 bytes
116  - fix #666677 - preserve ACLs when rotating files
117  - fix #644309 - mention all logrotate params in man page
118  - fix #638629 - better size directive description
119  - fixed AUTHORS in man page
120
121* Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.7-1
122- new upstream release
123- spec in UTF-8
124
125* Wed Jun  7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.4-1vl1
126- based on 3.7.4-1 from Rawhide
127  * Wed May 17 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-1
128  - add new "minsize" option (#173088)
129  * Tue Mar 28 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.3-3
130  - correct man page "extension" option description  (#185318)
131  * Mon Nov 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-11
132  - man description for "nodateext" option (#171577)
133  - remove not working "pattern" option (#171577)
134  * Wed Sep 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-3
135  - even when sharedscript option used, do postrotate
136    script before compress (#167575)
137  * Wed Aug 17 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-2
138  - allow yearly rotations(#134612)
139  * Wed Jun 22 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-12
140  - enhance logrotate with "dateext", "maxage"
141
142* Fri Apr 11 2003 Ryoichi INAGAKI <ryo1@ueda.info.waseda.ac.jp> 3.6.8-1vl1
143- based on 3.6.8-1 from Rawhide
144- add Requires, BuildRequires popt
145  * Mon Jan 20 2003 Elliot Lee <sopwith@redhat.com> 3.6.8-1
146  - Old patch from pm@debian.org
147  * Tue Jan 14 2003 Elliot Lee <sopwith@redhat.com> 3.6.7-1
148  - Fixes from bugzilla
149  * Fri Nov 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.6-1
150  - Commit patch from Fidelis Assis <fidelis@embratel.net.br>
151  * Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 3.6.5-1
152  - Commit fix for #65299
153  * Mon Apr 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.4-1
154  - Commit fix for #62560
155  * Wed Mar 13 2002 Elliot Lee <sopwith@redhat.com> 3.6.3-1
156  - Apply various bugfix patches from the openwall people
157  * Tue Jan 29 2002 Elliot Lee <sopwith@redhat.com> 3.6.2-1
158  - Fix bug #55809 (include logrotate.status in %files)
159  - Fix bug #58328 (incorrect error detection when reading state file)
160  - Allow 'G' size specifier from bug #57242
161  * Wed Nov 28 2001 Preston Brown <pbrown@redhat.com> 3.6-1
162  - patch from Alexander Kourakos <awk@awks.org> to stop the shared
163    postrotate/prerotate scripts from running if none of the log(s) need
164    rotating.  All log files are now checked for rotation in one batch,
165    rather than sequentially.
166  - more fixes from Paul Martin <pm@debian.org>
167
168* Thu Oct  4 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 3.5.4-1vl2
169- added noreplace flag (%%config file is not replaced)
170
171* Sun Jan 14 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
172- 3.5.4-1vl1
173- based on 3.5.4-1 from Rawhide
174- use better macros (%%{_tmppath}, %%{_sbindir})
175- added Japanese summary and description
176
177* Thu Jan  4 2001 Bill Nottingham <notting@redhat.com>
178- %defattr
179
180* Wed Jan 03 2001 Preston Brown <pbrown@redhat.com>
181- see CHANGES
182
183* Tue Aug 15 2000 Erik Troan <ewt@redhat.com>
184- see CHANGES
185
186* Sun Jul 23 2000 Erik Troan <ewt@redhat.com>
187- see CHANGES
188
189* Tue Jul 11 2000 Erik Troan <ewt@redhat.com>
190- support spaces in filenames
191- added sharedscripts
192
193* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
194- use %%{_mandir} for man pages
195
196* Thu Feb 24 2000 Erik Troan <ewt@redhat.com>
197- don't rotate lastlog
198
199* Thu Feb 03 2000 Erik Troan <ewt@redhat.com>
200- gzipped manpages
Note: See TracBrowser for help on using the repository browser.