[packages/libx264] add static_libs bcond

atler atler at pld-linux.org
Sat Apr 6 19:55:44 CEST 2024


commit 09a0110162167e36b7a2ac4d233b7d0231ca0b90
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Apr 6 19:36:10 2024 +0200

    add static_libs bcond

 libx264.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libx264.spec b/libx264.spec
index 2a5065c..8304db8 100644
--- a/libx264.spec
+++ b/libx264.spec
@@ -3,6 +3,7 @@
 %bcond_with	bootstrap	# no ffmpeg/gpac support in x264 utility
 %bcond_without	asm		# disable asm
 %bcond_without	lsmash		# lsmash for MP4 (preferred over gpac)
+%bcond_without	static_libs	# static library
 
 %ifnarch %{ix86} %{x8664} aarch64
 %undefine	with_asm
@@ -119,7 +120,7 @@ CC="%{__cc}" \
 	%{!?with_asm:--disable-asm} \
 	--enable-pic \
 	--enable-shared \
-	--enable-static
+	%{?with_static_libs:--enable-static}
 
 %{__make}
 
@@ -147,9 +148,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/x264_config.h
 %{_pkgconfigdir}/x264.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libx264.a
+%endif
 
 %files -n x264
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libx264.git/commitdiff/09a0110162167e36b7a2ac4d233b7d0231ca0b90



More information about the pld-cvs-commit mailing list