2016-04-02 23:45:52 +00:00
committed by Git OBS Bridge
parent 3f17948b3e
commit fb8c9d8784
2 changed files with 48 additions and 10 deletions

View File

@@ -75,14 +75,16 @@ applications that want to make use of liblz4.
%build
# Goddammit, lz4
perl -i -pe 's{^\t@}{\t}g' Makefile */Makefile
make -C lib %{?_smp_mflags} CFLAGS="%optflags"
make -C programs %{?_smp_mflags} CFLAGS="%optflags" lz4 lz4c
# don't bother building here, because make install builds it again - unconditionally :-(
%install
make install DESTDIR="%buildroot" PREFIX="%_prefix" LIBDIR="%_libdir"
make install CFLAGS="%optflags -DXXH_NAMESPACE=LZ4_" \
DESTDIR="%buildroot" PREFIX="%_prefix" LIBDIR="%_libdir"
rm -f "%buildroot/%_libdir"/*.a
%check
LD_LIBRARY_PATH="%buildroot/%_libdir" ldd -r "%buildroot/%_bindir/lz4"
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig