"Fossies" - the Fresh Open Source Software Archive

Member "logrotate-3.18.1/logrotate.spec" (21 May 2021, 2215 Bytes) of package /linux/privat/logrotate-3.18.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "logrotate.spec": 3.18.0_vs_3.18.1.

    1 Summary: Rotates, compresses, removes and mails system log files
    2 Name: logrotate
    3 Version: 3.18.1
    4 Release: 1%{?dist}
    5 License: GPLv2+
    6 Group: System Environment/Base
    7 Source: https://github.com/logrotate/logrotate/releases/download/%{version}/logrotate-%{version}.tar.gz
    8 Requires: coreutils >= 5.92 libsepol libselinux popt
    9 BuildRequires: libselinux-devel popt-devel
   10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
   11 
   12 %{!?_licensedir:%global license %%doc}
   13 
   14 %description
   15 The logrotate utility is designed to simplify the administration of
   16 log files on a system which generates a lot of log files.  Logrotate
   17 allows for the automatic rotation compression, removal and mailing of
   18 log files.  Logrotate can be set to handle a log file daily, weekly,
   19 monthly or when the log file gets to a certain size.  Normally,
   20 logrotate runs as a daily cron job.
   21 
   22 Install the logrotate package if you need a utility to deal with the
   23 log files on your system.
   24 
   25 %prep
   26 %setup -q
   27 
   28 %build
   29 %configure \
   30   --with-selinux
   31 make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
   32 
   33 %install
   34 rm -rf $RPM_BUILD_ROOT
   35 make install DESTDIR=$RPM_BUILD_ROOT
   36 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
   37 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
   38 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib
   39 
   40 install -p -m 644 examples/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.conf
   41 install -p -m 644 examples/btmp $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/btmp
   42 install -p -m 644 examples/wtmp $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/wtmp
   43 install -p -m 755 examples/logrotate.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/logrotate
   44 touch $RPM_BUILD_ROOT%{_localstatedir}/lib/logrotate.status
   45 
   46 %clean
   47 rm -rf $RPM_BUILD_ROOT
   48 
   49 %files
   50 %defattr(-,root,root)
   51 %license COPYING
   52 %attr(0755, root, root) %{_sbindir}/logrotate
   53 %attr(0644, root, root) %{_mandir}/man8/logrotate.8*
   54 %attr(0644, root, root) %{_mandir}/man5/logrotate.conf.5*
   55 %attr(0755, root, root) %{_sysconfdir}/cron.daily/logrotate
   56 %attr(0644, root, root) %config(noreplace) %{_sysconfdir}/logrotate.conf
   57 %attr(0755, root, root) %{_sysconfdir}/logrotate.d
   58 %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate.status