forked from pool/plzip
Make use of OOT building
OBS-URL: https://build.opensuse.org/package/show/Archiving/plzip?expand=0&rev=15
This commit is contained in:
parent
98c2c97104
commit
fc3de15d23
17
plzip.spec
17
plzip.spec
@ -50,7 +50,10 @@ distribution and data archiving.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure \
|
mkdir build
|
||||||
|
pushd build
|
||||||
|
# not autoconf
|
||||||
|
../configure \
|
||||||
--prefix="%{_prefix}" \
|
--prefix="%{_prefix}" \
|
||||||
--bindir="%{_bindir}" \
|
--bindir="%{_bindir}" \
|
||||||
--datadir="%{_datadir}" \
|
--datadir="%{_datadir}" \
|
||||||
@ -63,14 +66,18 @@ distribution and data archiving.
|
|||||||
CXX="%__cxx" \
|
CXX="%__cxx" \
|
||||||
CPPFLAGS="%{optflags}" \
|
CPPFLAGS="%{optflags}" \
|
||||||
CXXFLAGS="%{optflags}"
|
CXXFLAGS="%{optflags}"
|
||||||
|
make %{?_smp_flags}
|
||||||
%__make %{?_smp_flags}
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%__make DESTDIR="%{buildroot}" LDCONFIG=echo install
|
pushd build
|
||||||
|
%make_install LDCONFIG=echo
|
||||||
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%__make check
|
pushd build
|
||||||
|
make check
|
||||||
|
popd
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}".info%{ext_info}
|
%install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}".info%{ext_info}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user