diff --git a/zstd.spec b/zstd.spec index a3bd442..aff995e 100644 --- a/zstd.spec +++ b/zstd.spec @@ -86,14 +86,14 @@ find -name .gitignore -delete %build for dir in lib programs; do - CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" %make_build -C "$dir" + CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" %make -C "$dir" done %if %{with pzstd} -CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" CXXFLAGS="%{optflags} -std=c++11" %make_build -C 'contrib/pzstd' +CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" CXXFLAGS="%{optflags} -std=c++11" %make -C 'contrib/pzstd' %endif %install -%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} +%makeinstall_std PREFIX=%{_prefix} LIBDIR=%{_libdir} # Don't install the static lib rm %{buildroot}%{_libdir}/libzstd.a