build out of source tree

This commit is contained in:
Kamil Dudka 2016-12-02 15:42:31 +01:00
parent 71254b3676
commit b64b45e8eb

View File

@ -29,7 +29,7 @@ log files on your system.
%prep %prep
%autosetup -S git %autosetup -S git
printf "/autom4te.cache\n" >> .gitignore printf "/autom4te.cache\n/build\n" >> .gitignore
git add .gitignore git add .gitignore
git commit -m "update .gitignore" git commit -m "update .gitignore"
@ -38,14 +38,16 @@ git add configure
git commit -m "force autoreconf" --allow-empty git commit -m "force autoreconf" --allow-empty
%build %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} make %{?_smp_mflags}
%check %check
make check make check -C build
%install %install
%make_install %make_install -C build
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily
@ -84,6 +86,7 @@ fi
%changelog %changelog
* Fri Dec 02 2016 Kamil Dudka <kdudka@redhat.com> - 3.11.0-1 * Fri Dec 02 2016 Kamil Dudka <kdudka@redhat.com> - 3.11.0-1
- build out of source tree
- new upstream version 3.11.0 - new upstream version 3.11.0
* Thu Nov 24 2016 Kamil Dudka <kdudka@redhat.com> - 3.10.0-4 * Thu Nov 24 2016 Kamil Dudka <kdudka@redhat.com> - 3.10.0-4