[packages/ffmpeg] add static_libs bcond

atler atler at pld-linux.org
Tue Apr 16 14:37:35 CEST 2024


commit 8b479c7c24b75cc51290d7be78d50c8e6c6e1195
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Apr 16 13:39:20 2024 +0200

    add static_libs bcond

 ffmpeg.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index af37711..b5f8c46 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -95,6 +95,7 @@
 %bcond_without	zmq		# 0MQ message passing
 %bcond_without	zvbi		# teletext via libzvbi
 %bcond_without	doc		# HTML documentation
+%bcond_without	static_libs	# static libraries
 %bcond_with	tests		# "make check" (some tests fail as of 2.5)
 
 %if %{with bootstrap}
@@ -753,6 +754,7 @@ EOF
 	--enable-pthreads \
 	%{?with_rkmpp:--enable-rkmpp} \
 	--enable-shared \
+	%{!?with_static_libs:--disable-static} \
 	--enable-swscale \
 	%{!?with_va:--disable-vaapi} \
 	%{?with_vapoursynth:--enable-vapoursynth} \
@@ -906,6 +908,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libavcodec.a
@@ -916,6 +919,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libpostproc.a
 %{_libdir}/libswresample.a
 %{_libdir}/libswscale.a
+%endif
 
 %files ffplay
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ffmpeg.git/commitdiff/043128df7eb3a2ef75c277bc47b62a3d35cf3f84



More information about the pld-cvs-commit mailing list