!1 del unuse info

Merge pull request !1 from wsp1991/logrotate
This commit is contained in:
openeuler-ci-bot 2020-01-14 23:11:08 +08:00 committed by Gitee
commit 9756bb06e0
2 changed files with 4 additions and 8 deletions

View File

@ -2,12 +2,11 @@
Name: logrotate
Version: 3.15.1
Release: 1
Release: 2
Summary: simplify the administration of log files
License: GPLv2+
Url: https://github.com/logrotate/logrotate
Source0: https://github.com/logrotate/logrotate/releases/download/%{version}/logrotate-%{version}.tar.xz
Source1: rwtab
BuildRequires: acl gcc automake libacl-devel libselinux-devel popt-devel
Requires: coreutils
@ -39,10 +38,6 @@ install -p -m 644 examples/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.c
install -p -m 644 examples/*tmp %{buildroot}%{_sysconfdir}/logrotate.d/
install -p -m 755 examples/logrotate.cron %{buildroot}%{_sysconfdir}/cron.daily/logrotate
# logrotate run on read-only root
mkdir -p %{buildroot}%{_sysconfdir}/rwtab.d
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rwtab.d/logrotate
%check
%make_build -C build check
@ -67,7 +62,6 @@ fi
%config(noreplace) %{_sysconfdir}/logrotate.conf
%dir %{_sysconfdir}/logrotate.d
%config(noreplace) %{_sysconfdir}/logrotate.d/*tmp
%config(noreplace) %{_sysconfdir}/rwtab.d/logrotate
%{_sbindir}/logrotate
%dir %{_localstatedir}/lib/logrotate
%ghost %verify(not size md5 mtime) %attr(0644, root, root) %{_localstatedir}/lib/logrotate/logrotate.status
@ -79,5 +73,8 @@ fi
%{_mandir}/man5/logrotate.conf.5*
%changelog
* Tue Jan 14 2020 openEuler Buildteam <buildteam@huawei.com> - 3.15.1-2
- del unuse info
* Sat Oct 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.15.1-1
- update version to 3.15.1

1
rwtab
View File

@ -1 +0,0 @@
dirs /var/lib/logrotate