commit 94bc01fd08e679417ba894230b764122e5cb053c Author: Jan Palus <at...@pld-linux.org> Date: Tue Apr 16 12:55:54 2024 +0200
add static_libs bcond libvpx.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) --- diff --git a/libvpx.spec b/libvpx.spec index c1efaae..e036dc6 100644 --- a/libvpx.spec +++ b/libvpx.spec @@ -1,9 +1,10 @@ # # Conditional build: -%bcond_without asm # x86 assembler -%bcond_without doc # don't build doc -%bcond_with tests # build tests (not useful, creates libgtest.a) -%bcond_without ssse3 # use SSSE3 instructions (Intel since Core2, Via Nano) +%bcond_without asm # x86 assembler +%bcond_without doc # don't build doc +%bcond_with tests # build tests (not useful, creates libgtest.a) +%bcond_without ssse3 # use SSSE3 instructions (Intel since Core2, Via Nano) +%bcond_without static_libs # static library %ifnarch %{ix86} %{x8664} x32 %undefine with_asm @@ -115,6 +116,7 @@ CFLAGS="%{rpmcflags} %{rpmcppflags}" \ %endif --target=%{vpxtarget} \ --enable-shared \ + %{!?with_static_libs:--disable-static} \ %{!?with_ssse3:--disable-ssse3} \ --disable-optimizations \ --%{!?with_tests:dis}%{?with_tests:en}able-unit-tests \ @@ -168,9 +170,11 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/vpx %{_pkgconfigdir}/vpx.pc +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libvpx.a +%endif %files tools %defattr(644,root,root,755) ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/libvpx.git/commitdiff/94bc01fd08e679417ba894230b764122e5cb053c _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit