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}