This commit is contained in:
10
lz4.spec
10
lz4.spec
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user