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

Revision 12370, 7.8 KB checked in by tomop, 4 years ago (diff)

updated 9 packages

dosfstools-4.1-1

fontconfig-2.13.1-1

gd-2.3.0-1

itstool-2.0.6-1

logrotate-3.16.0-1

ntfs-3g-2017.3.23-1

pciutils-3.6.4-1

redis-5.0.8-1

shared-mime-info-1.15-1

Line 
1Summary: Rotates, compresses, removes and mails system log files.
2Summary(ja): システムのログファイルを圧縮/削除するプログラム
3Name: logrotate
4Version: 3.16.0
5Release: 1%{?_dist_release}
6Group: System Environment/Base
7Vendor: Project Vine
8Distribution: Vine Linux
9
10License: GPL
11Url: https://fedorahosted.org/logrotate/
12Source: https://github.com/logrotate/logrotate/releases/download/%{version}/logrotate-%{version}.tar.xz
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
45#perl -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.conf $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* Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.16.0-1
96- new upstream release.
97
98* Sun Jun 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-2
99- drop Patch0 (get the same effect by another way).
100
101* Sat Jun 18 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-1
102- new upstream release.
103- changed location of Source0.
104- imported Patch0 from rawhide.
105
106* Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.6-1
107- rebuild with VineSeed environment
108
109* Thu Oct 03 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8.6-1
110- new upstream release
111
112* Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.9-1
113- new upstream release
114- add Url
115- add patches from fedora
116  - fix #688520 - fixed CVE-2011-1154, CVE-2011-1155 and CVE-2011-1098
117  - fix #671926 - fixed crash when tabooext is used in config file
118  - fix #661181 - fixed SIGBUS when config file is empty or 4096 bytes
119  - fix #666677 - preserve ACLs when rotating files
120  - fix #644309 - mention all logrotate params in man page
121  - fix #638629 - better size directive description
122  - fixed AUTHORS in man page
123
124* Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.7-1
125- new upstream release
126- spec in UTF-8
127
128* Wed Jun  7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.7.4-1vl1
129- based on 3.7.4-1 from Rawhide
130  * Wed May 17 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.4-1
131  - add new "minsize" option (#173088)
132  * Tue Mar 28 2006 Peter Vrabec <pvrabec@redhat.com> 3.7.3-3
133  - correct man page "extension" option description  (#185318)
134  * Mon Nov 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-11
135  - man description for "nodateext" option (#171577)
136  - remove not working "pattern" option (#171577)
137  * Wed Sep 07 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-3
138  - even when sharedscript option used, do postrotate
139    script before compress (#167575)
140  * Wed Aug 17 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.2-2
141  - allow yearly rotations(#134612)
142  * Wed Jun 22 2005 Peter Vrabec <pvrabec@redhat.com> 3.7.1-12
143  - enhance logrotate with "dateext", "maxage"
144
145* Fri Apr 11 2003 Ryoichi INAGAKI <ryo1@ueda.info.waseda.ac.jp> 3.6.8-1vl1
146- based on 3.6.8-1 from Rawhide
147- add Requires, BuildRequires popt
148  * Mon Jan 20 2003 Elliot Lee <sopwith@redhat.com> 3.6.8-1
149  - Old patch from pm@debian.org
150  * Tue Jan 14 2003 Elliot Lee <sopwith@redhat.com> 3.6.7-1
151  - Fixes from bugzilla
152  * Fri Nov 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.6-1
153  - Commit patch from Fidelis Assis <fidelis@embratel.net.br>
154  * Thu Jun 20 2002 Elliot Lee <sopwith@redhat.com> 3.6.5-1
155  - Commit fix for #65299
156  * Mon Apr 15 2002 Elliot Lee <sopwith@redhat.com> 3.6.4-1
157  - Commit fix for #62560
158  * Wed Mar 13 2002 Elliot Lee <sopwith@redhat.com> 3.6.3-1
159  - Apply various bugfix patches from the openwall people
160  * Tue Jan 29 2002 Elliot Lee <sopwith@redhat.com> 3.6.2-1
161  - Fix bug #55809 (include logrotate.status in %files)
162  - Fix bug #58328 (incorrect error detection when reading state file)
163  - Allow 'G' size specifier from bug #57242
164  * Wed Nov 28 2001 Preston Brown <pbrown@redhat.com> 3.6-1
165  - patch from Alexander Kourakos <awk@awks.org> to stop the shared
166    postrotate/prerotate scripts from running if none of the log(s) need
167    rotating.  All log files are now checked for rotation in one batch,
168    rather than sequentially.
169  - more fixes from Paul Martin <pm@debian.org>
170
171* Thu Oct  4 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 3.5.4-1vl2
172- added noreplace flag (%%config file is not replaced)
173
174* Sun Jan 14 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
175- 3.5.4-1vl1
176- based on 3.5.4-1 from Rawhide
177- use better macros (%%{_tmppath}, %%{_sbindir})
178- added Japanese summary and description
179
180* Thu Jan  4 2001 Bill Nottingham <notting@redhat.com>
181- %defattr
182
183* Wed Jan 03 2001 Preston Brown <pbrown@redhat.com>
184- see CHANGES
185
186* Tue Aug 15 2000 Erik Troan <ewt@redhat.com>
187- see CHANGES
188
189* Sun Jul 23 2000 Erik Troan <ewt@redhat.com>
190- see CHANGES
191
192* Tue Jul 11 2000 Erik Troan <ewt@redhat.com>
193- support spaces in filenames
194- added sharedscripts
195
196* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
197- use %%{_mandir} for man pages
198
199* Thu Feb 24 2000 Erik Troan <ewt@redhat.com>
200- don't rotate lastlog
201
202* Thu Feb 03 2000 Erik Troan <ewt@redhat.com>
203- gzipped manpages
Note: See TracBrowser for help on using the repository browser.