SHA256
1
0
forked from pool/ffmpeg-6
Jan Engelhardt 2024-01-15 16:48:53 +00:00 committed by Git OBS Bridge
parent 3474723ff0
commit f351f18d2a

View File

@ -16,11 +16,11 @@
# #
%define flavor @BUILD_FLAVOR@%{nil} %define flavor @BUILD_FLAVOR@%nil
# #
# preamble is present twice, watch out # preamble is present twice, watch out
# #
%if "%{flavor}" != "ffmpeg-6-mini" %if "%flavor" != "ffmpeg-6-mini"
# Create proper conflicts to make sure we require all from one version # Create proper conflicts to make sure we require all from one version
# p: Conflict string, eg if you need them all for requires instead # p: Conflict string, eg if you need them all for requires instead
@ -221,7 +221,6 @@ BuildRequires: pkgconfig(SvtAv1Enc) >= 0.9.0
%endif %endif
%endif %endif
%if %{with vulkan} %if %{with vulkan}
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 %if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600
BuildRequires: pkgconfig(libplacebo) >= 6.292.0 BuildRequires: pkgconfig(libplacebo) >= 6.292.0
@ -538,7 +537,7 @@ This subpackage contains the headers for FFmpeg libswscale.
%global _lto_cflags %_lto_cflags -ffat-lto-objects %global _lto_cflags %_lto_cflags -ffat-lto-objects
%endif %endif
CFLAGS="%optflags" \ CFLAGS="%optflags" \
%if %suse_version > 1500 %if 0%{?suse_version} > 1500
%ifarch %ix86 %ifarch %ix86
%else %else
LDFLAGS="%_lto_cflags" \ LDFLAGS="%_lto_cflags" \
@ -695,7 +694,7 @@ for i in %extratools; do
done done
%install %install
b=%{buildroot} b="%buildroot"
%make_install install-man %make_install install-man
rm -Rf "$b/%_datadir/ffmpeg/examples" rm -Rf "$b/%_datadir/ffmpeg/examples"
for i in %extratools; do for i in %extratools; do
@ -907,7 +906,7 @@ cat config.h
%make_build %make_build
%install %install
b=%{buildroot} b="%buildroot"
%make_install %make_install
rm -Rf "$b/%_datadir/ffmpeg/examples" rm -Rf "$b/%_datadir/ffmpeg/examples"