From b64b45e8eb21184de7d64364481a829eee707a67 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 2 Dec 2016 15:42:31 +0100 Subject: [PATCH] build out of source tree --- logrotate.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/logrotate.spec b/logrotate.spec index cb21e13..6cb6a0c 100644 --- a/logrotate.spec +++ b/logrotate.spec @@ -29,7 +29,7 @@ log files on your system. %prep %autosetup -S git -printf "/autom4te.cache\n" >> .gitignore +printf "/autom4te.cache\n/build\n" >> .gitignore git add .gitignore git commit -m "update .gitignore" @@ -38,14 +38,16 @@ git add configure git commit -m "force autoreconf" --allow-empty %build -%configure --with-state-file-path=%{_localstatedir}/lib/logrotate/logrotate.status +mkdir build && cd build && ln -s ../configure +%configure srcdir=.. \ + --with-state-file-path=%{_localstatedir}/lib/logrotate/logrotate.status make %{?_smp_mflags} %check -make check +make check -C build %install -%make_install +%make_install -C build mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily @@ -84,6 +86,7 @@ fi %changelog * Fri Dec 02 2016 Kamil Dudka - 3.11.0-1 +- build out of source tree - new upstream version 3.11.0 * Thu Nov 24 2016 Kamil Dudka - 3.10.0-4