/[packages]/cauldron/logrotate/pristine/SPECS/logrotate.spec
ViewVC logotype

Contents of /cauldron/logrotate/pristine/SPECS/logrotate.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 281 - (show annotations) (download)
Fri Jan 7 19:48:42 2011 UTC (14 years, 1 month ago) by tmb
File size: 2089 byte(s)
Copying release 3.7.9-2.mga1 to pristine/ directory.
1 Name: logrotate
2 Version: 3.7.9
3 Release: %mkrel 2
4 Summary: Rotates, compresses, removes and mails system log files
5 License: GPL
6 Group: File tools
7 URL: https://fedorahosted.org/logrotate/
8 Source0: https://fedorahosted.org/releases/l/o/logrotate/%{name}-%{version}.tar.gz
9 Source1: logrotate.conf
10 Source2: logrotate.cron
11 Patch0: logrotate-3.7.9-fix-format-errrors.patch
12 # ease upgrade regarding #20745
13 Conflicts: sysklogd < 1.4.2
14 Conflicts: syslog-ng < 1.6.9-1
15 BuildRequires: popt-devel
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
17
18 %description
19 The logrotate utility is designed to simplify the administration of
20 log files on a system which generates a lot of log files. Logrotate
21 allows for the automatic rotation compression, removal and mailing of
22 log files. Logrotate can be set to handle a log file daily, weekly,
23 monthly or when the log file gets to a certain size. Normally,
24 logrotate runs as a daily cron job.
25
26 Install the logrotate package if you need a utility to deal with the
27 log files on your system.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32
33 %build
34 export LDFLAGS="`rpm --eval %%configure|grep LDFLAGS|cut -d\\" -f2|sed -e 's/\$LDFLAGS\ //'`"
35
36 %make RPM_OPT_FLAGS="%{optflags}" WITH_SELINUX=no LDFLAGS="$LDFLAGS"
37 %make test
38
39 %install
40 %{__rm} -rf %{buildroot}
41 %{make} PREFIX=%{buildroot} MANDIR=%{_mandir} install
42
43 %{__mkdir_p} %{buildroot}%{_sysconfdir}
44 install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.conf
45
46 %{__mkdir_p} %{buildroot}%{_sysconfdir}/cron.daily
47 %{__install} -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.daily/%{name}
48
49 install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}.d
50
51 %clean
52 %{__rm} -rf %{buildroot}
53
54 %post
55 if [ $1 = 1 ]; then
56 # installation
57 /bin/touch %{_var}/lib/logrotate.status
58 fi
59
60 %files
61 %defattr(-,root,root)
62 %doc CHANGES COPYING examples README*
63 %config(noreplace) %{_sysconfdir}/%{name}.conf
64 %{_sysconfdir}/cron.daily/%{name}
65 %{_sysconfdir}/%{name}.d
66 %{_sbindir}/%{name}
67 %{_mandir}/man8/%{name}.8*
68 %{_mandir}/man5/%{name}.conf.5*
69
70

  ViewVC Help
Powered by ViewVC 1.1.30