]> git.pld-linux.org Git - packages/ffmpeg.git/commitdiff
add static_libs bcond
authorJan Palus <atler@pld-linux.org>
Tue, 16 Apr 2024 11:39:20 +0000 (13:39 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 16 Apr 2024 11:39:20 +0000 (13:39 +0200)
ffmpeg.spec

index af3771180aae629282b4adde6a71ec3e16f4fb3c..b5f8c46f41bd5b1cb78ab926a4d30272d1da9c81 100644 (file)
@@ -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)
This page took 1.065308 seconds and 4 git commands to generate.