@ -11,13 +11,19 @@
%global _without_aom 1
%global _without_dav1d 1
%global _without_frei0r 1
%global _without_mfx 1
%global _without_opus 1
%global _without_srt 1
%global _without_vpx 1
%endif
%if 0%{?fedora} || 0%{?rhel} > 7
%if 0%{?rhel} > 7
%ifarch x86_64 i686
%global _with_vapoursynth 1
%endif
%endif
%ifarch x86_64
%global _with_mfx 1
%global _with_vmaf 1
%endif
%endif
@ -49,7 +55,7 @@
# extras flags
%if 0%{!?_cuda_version:1}
%global _cuda_version 10.1
%global _cuda_version 10.2
%endif
%global _cuda_version_rpm %(echo %{_cuda_version} | sed -e 's/\\./-/')
%global _cuda_bindir %{_cuda_prefix}/bin
@ -82,8 +88,8 @@ ExclusiveArch: armv7hnl
Summary: Digital VCR and streaming server
Name: ffmpeg%{?flavor}
Version: 4.2.2
Release: 2%{?date}%{?date:git}%{?rel} %{?dist}
Version: 4.2.10
Release: 1 %{?dist}
License: %{ffmpeg_license}
URL: http://ffmpeg.org/
%if 0%{?date}
@ -92,6 +98,7 @@ Source0: ffmpeg-%{?branch}%{date}.tar.bz2
Source0: http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
%endif
Patch0: fix_ppc_build.patch
Patch1: fix-vmaf-model-path.patch
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel}
%{?_with_libnpp:BuildRequires: pkgconfig(nppc-%{_cuda_version})}
@ -132,15 +139,17 @@ BuildRequires: libmodplug-devel
BuildRequires: librsvg2-devel
%{?_with_rtmp:BuildRequires: librtmp-devel}
%{?_with_smb:BuildRequires: libsmbclient-devel}
%{!?_without_srt:BuildRequires: srt-devel > 1.3.0}
BuildRequires: libssh-devel
BuildRequires: libtheora-devel
BuildRequires: libv4l-devel
%{?!_without_vaapi:BuildRequires: libva-devel >= 0.31.0}
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
%{?_with_vapoursynth:BuildRequires: vapoursynth-devel}
%{?!_without_vpx:BuildRequires: libvpx-devel >= 1.4.0}
%{?_with_mfx:BuildRequires: pkgconfig(libmfx) >= 1.23-1}
%ifarch %{ix86} x86_64
%{!?_without_mfx:BuildRequires: pkgconfig(libmfx) >= 1.23-1}
BuildRequires: nasm
%endif
%{?_with_webp:BuildRequires: libwebp-devel}
@ -284,6 +293,7 @@ This package contains development files for %{name}
%{?_with_rubberband:--enable-librubberband} \\\
%{?_with_smb:--enable-libsmbclient} \\\
%{?_with_snappy:--enable-libsnappy} \\\
%{!?_without_srt:--enable-libsrt} \\\
--enable-libsoxr \\\
--enable-libspeex \\\
--enable-libssh \\\
@ -293,7 +303,8 @@ This package contains development files for %{name}
--enable-libvorbis \\\
--enable-libv4l2 \\\
%{!?_without_vidstab:--enable-libvidstab} \\\
%{?_with_vmaf:--enable-libvmaf} \\\
%{?_with_vmaf:--enable-libvmaf --enable-version3} \\\
%{?_with_vapoursynth:--enable-vapoursynth} \\\
%{!?_without_vpx:--enable-libvpx} \\\
%{?_with_webp:--enable-libwebp} \\\
%{!?_without_x264:--enable-libx264} \\\
@ -304,6 +315,7 @@ This package contains development files for %{name}
%{!?_without_zvbi:--enable-libzvbi} \\\
--enable-avfilter \\\
--enable-avresample \\\
--enable-libmodplug \\\
--enable-postproc \\\
--enable-pthreads \\\
--disable-static \\\
@ -315,12 +327,11 @@ This package contains development files for %{name}
%prep
%if 0%{?date}
%setup -q -n ffmpeg-%{?branch}%{date}
%autosetup -p1 -n ffmpeg-%{?branch}%{date}
echo "git-snapshot-%{?branch}%{date}-rpmfusion" > VERSION
%else
%setup -q -n ffmpeg-%{version}
%autosetup -p1 -n ffmpeg-%{version}
%endif
%patch0 -p1
# fix -O3 -g in host_cflags
sed -i "s|check_host_cflags -O3|check_host_cflags %{optflags}|" configure
mkdir -p _doc/examples
@ -337,9 +348,7 @@ cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/
%ifarch %{ix86}
--cpu=%{_target_cpu} \
%endif
%ifarch %{ix86} x86_64
%{!?_without_mfx:--enable-libmfx} \
%endif
%{?_with_mfx:--enable-libmfx} \
%ifarch %{ix86} x86_64 %{power64}
--enable-runtime-cpudetect \
%endif
@ -427,6 +436,61 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
%changelog
* Sun Aug 04 2024 Leigh Scott <leigh123linux@gmail.com> - 4.2.10-1
- Update to 4.2.10
* Sat Apr 22 2023 Leigh Scott <leigh123linux@gmail.com> - 4.2.9-1
- Update to 4.2.9 release
* Mon Oct 17 2022 Leigh Scott <leigh123linux@gmail.com> - 4.2.8-1
- Update to 4.2.8 release
* Thu May 26 2022 Leigh Scott <leigh123linux@gmail.com> - 4.2.7-1
- Update to 4.2.7 release
* Sat Apr 16 2022 Leigh Scott <leigh123linux@gmail.com> - 4.2.6-1
- Update to 4.2.6 release
* Wed Dec 01 2021 Leigh Scott <leigh123linux@gmail.com> - 4.2.5-2
- rebuilt
* Fri Oct 15 2021 Leigh Scott <leigh123linux@gmail.com> - 4.2.5-1
- Update to 4.2.5 release
* Sun Jun 13 2021 Leigh Scott <leigh123linux@gmail.com> - 4.2.4-2
- Rebuild for aom bump
* Thu Jul 09 2020 Leigh Scott <leigh123linux@gmail.com> - 4.2.4-1
- Update to 4.2.4 release
- Enable vapoursynth for el8
* Sat Jul 04 2020 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-6
- Disable vapoursynth
* Thu Jul 02 2020 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-5
- Rebuilt
* Wed Jun 24 2020 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-4
- Enable vapoursynth
* Sat Jun 06 2020 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-3
- Enable libmodplug (rfbz#5670)
* Sat May 23 2020 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-2
- Fix vmaf model path
* Thu May 21 2020 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-1
- Update to 4.2.3 release
* Fri Apr 10 2020 Nicolas Chauvet <kwizart@gmail.com> - 4.2.2-5
- Enable libsrt by default
* Thu Mar 12 2020 leigh123linux <leigh123linux@googlemail.com> - 4.2.2-4
- Rebuilt for i686
* Sun Feb 23 2020 Leigh Scott <leigh123linux@gmail.com> - 4.2.2-3
- Rebuild for x265
* Tue Feb 04 2020 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 4.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild