Browse Source

logrotate-3.9.2-2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10378 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
52752eca01
1 changed files with 9 additions and 5 deletions
  1. 9 5
      l/logrotate/logrotate-vl.spec

+ 9 - 5
l/logrotate/logrotate-vl.spec

@@ -2,14 +2,14 @@ Summary: Rotates, compresses, removes and mails system log files.
 Summary(ja): システムのログファイルを圧縮/削除するプログラム
 Name: logrotate
 Version: 3.9.2
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 License: GPL
 Group: System Environment/Base
 Url: https://fedorahosted.org/logrotate/
+Vendor: Project Vine
+Distribution: Vine Linux
 
 Source: https://github.com/logrotate/logrotate/archive/logrotate-%{version}.tar.gz
-# Change the location of status file
-Patch0: logrotate-3.9.1-statusfile.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: acl libacl-devel popt-devel
@@ -41,10 +41,11 @@ logrotate パッケージをインストールして下さい.
 
 %prep
 %setup -q
-%patch0 -p1 -b .statusfile
+
+perl -pi -e 's|/usr/sbin/logrotate|/usr/sbin/logrotate -l syslog|' examples/logrotate.cron
 
 %build
-export CFLAGS="$RPM_OPT_FLAGS"
+export CFLAGS="$RPM_OPT_FLAGS -DSTATEFILE=\\\"/var/lib/logrotate/logrotate.status\\\""
 
 ./autogen.sh
 %configure
@@ -91,6 +92,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status
 
 %changelog
+* Sun Jun 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-2
+- drop Patch0 (get the same effect by another way).
+
 * Sat Jun 18 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.2-1
 - new upstream release.
 - changed location of Source0.