use out-of-tree build
OBS-URL: https://build.opensuse.org/package/show/Archiving/lzlib?expand=0&rev=19
This commit is contained in:
parent
2c9f5c09cc
commit
11f0718ad6
29
lzlib.spec
29
lzlib.spec
@ -70,29 +70,26 @@ applications that want to make use of libcerror.
|
|||||||
# not autoconf!
|
# not autoconf!
|
||||||
# don't use the configure macro here, as it will cause the configure script to
|
# don't use the configure macro here, as it will cause the configure script to
|
||||||
# skip parameters as soon as it encounters one that it doesn't understand
|
# skip parameters as soon as it encounters one that it doesn't understand
|
||||||
./configure \
|
mkdir build
|
||||||
--prefix="%_prefix" \
|
pushd build/
|
||||||
--bindir="%_bindir" \
|
../configure --prefix="%_prefix" --bindir="%_bindir" --datadir="%_datadir" \
|
||||||
--datadir="%_datadir" \
|
--includedir="%_includedir" --infodir="%_infodir" --libdir="%_libdir" \
|
||||||
--includedir="%_includedir" \
|
--mandir="%_mandir" --sysconfdir="%_sysconfdir" --enable-shared \
|
||||||
--infodir="%_infodir" \
|
CC="%__cc" CFLAGS="%optflags" CXX="%__cxx" CXXFLAGS="%optflags"
|
||||||
--libdir="%_libdir" \
|
|
||||||
--mandir="%_mandir" \
|
|
||||||
--sysconfdir="%_sysconfdir" \
|
|
||||||
--enable-shared \
|
|
||||||
CXX="g++" \
|
|
||||||
CPPFLAGS="%optflags" \
|
|
||||||
CXXFLAGS="%optflags"
|
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install LDCONFIG=echo
|
pushd build/
|
||||||
|
%make_install LDCONFIG=true
|
||||||
|
popd
|
||||||
# configure had no --disable-static
|
# configure had no --disable-static
|
||||||
rm -f "%buildroot/%_libdir"/*.a
|
rm -f "%buildroot/%_libdir"/*.a
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
pushd build/
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
|
popd
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
@ -110,6 +107,6 @@ make %{?_smp_mflags} check
|
|||||||
%files devel
|
%files devel
|
||||||
%_includedir/lzlib.h
|
%_includedir/lzlib.h
|
||||||
%_libdir/liblz.so
|
%_libdir/liblz.so
|
||||||
%_infodir/lzlib.info%ext_info
|
%_infodir/lzlib.info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user