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