From fc3de15d232d9a6dfbb7b9923176c9db4921af0e541f3ff71769771882da2deb Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 8 Feb 2015 14:45:51 +0000 Subject: [PATCH] Make use of OOT building OBS-URL: https://build.opensuse.org/package/show/Archiving/plzip?expand=0&rev=15 --- plzip.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/plzip.spec b/plzip.spec index cc65a6c..8b75c37 100644 --- a/plzip.spec +++ b/plzip.spec @@ -50,7 +50,10 @@ distribution and data archiving. %setup -q %build -./configure \ +mkdir build +pushd build +# not autoconf +../configure \ --prefix="%{_prefix}" \ --bindir="%{_bindir}" \ --datadir="%{_datadir}" \ @@ -63,14 +66,18 @@ distribution and data archiving. CXX="%__cxx" \ CPPFLAGS="%{optflags}" \ CXXFLAGS="%{optflags}" - -%__make %{?_smp_flags} +make %{?_smp_flags} +popd %install -%__make DESTDIR="%{buildroot}" LDCONFIG=echo install +pushd build +%make_install LDCONFIG=echo +popd %check -%__make check +pushd build +make check +popd %post %install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}".info%{ext_info}