2018-07-04 10:12:41 +02:00
|
|
|
#
|
|
|
|
# spec file for package ffmpeg-4
|
|
|
|
#
|
2023-01-22 16:23:18 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-07-04 10:12:41 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-02-18 09:41:36 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-04 10:12:41 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Create proper conflicts to make sure we require all from one version
|
|
|
|
# p: Conflict string, eg if you need them all for requires instead
|
|
|
|
# Default value Conflicts:
|
|
|
|
# c: copmare string ie "<" or ">=", must be defined
|
|
|
|
# v: version string ie. "< 42.3.4" or ">= 15.0.2.1", must be defined
|
|
|
|
%define devel_conflicts(p:c:v:) \
|
|
|
|
%define preamble_string %{-p:%{-p*}}%{!-p:Conflicts:} \
|
|
|
|
%define comparator %{-c:%{-c*}}%{!-c:%{error:Comparator not defined}} \
|
|
|
|
%define conflicts_version %{-v:%{-v*}}%{!-v:%{error:Version not defined}} \
|
|
|
|
\
|
2019-09-19 21:59:49 +02:00
|
|
|
%preamble_string libavcodec-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavdevice-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavfilter-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavformat-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavresample-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libavutil-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libpostproc-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libswresample-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string libswscale-devel %comparator %conflicts_version \
|
|
|
|
%preamble_string ffmpeg-private-devel %comparator %conflicts_version \
|
|
|
|
%nil
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2018-12-06 01:38:22 +01:00
|
|
|
# nvcodec headers only present after leap15
|
2018-07-26 12:18:09 +02:00
|
|
|
%bcond_with nvcodec
|
2022-03-14 14:25:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-07-26 12:18:09 +02:00
|
|
|
%bcond_without nvcodec
|
|
|
|
%endif
|
2018-12-06 01:38:22 +01:00
|
|
|
%if 0%{?BUILD_ORIG}
|
2019-01-15 23:35:26 +01:00
|
|
|
%bcond_with amrwb
|
2018-12-06 01:38:22 +01:00
|
|
|
%bcond_without cuda_sdk
|
2018-07-26 12:18:09 +02:00
|
|
|
%else
|
2020-03-15 19:07:57 +01:00
|
|
|
%bcond_with cuda_sdk
|
2018-07-26 12:18:09 +02:00
|
|
|
%endif
|
2019-06-11 15:51:31 +02:00
|
|
|
%bcond_with fdk_aac_dlopen
|
2018-07-04 10:12:41 +02:00
|
|
|
%bcond_with librtmp
|
|
|
|
%bcond_with opencore
|
2022-02-16 21:49:35 +01:00
|
|
|
%bcond_with smbclient
|
2018-07-04 10:12:41 +02:00
|
|
|
%bcond_with x264
|
|
|
|
%bcond_with x265
|
|
|
|
%bcond_with xvid
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
2018-08-06 23:11:44 +02:00
|
|
|
%bcond_without libaom
|
2018-07-04 10:12:41 +02:00
|
|
|
%bcond_without mysofa
|
|
|
|
%bcond_without vidstab
|
|
|
|
%bcond_without srt
|
2018-07-18 14:16:12 +02:00
|
|
|
%bcond_without codec2
|
|
|
|
%bcond_without lv2
|
2020-07-17 11:39:17 +02:00
|
|
|
%bcond_without librav1e
|
2018-07-18 14:16:12 +02:00
|
|
|
%bcond_without rubberband
|
|
|
|
%bcond_without soxr
|
2018-07-18 14:55:02 +02:00
|
|
|
%bcond_without zmq
|
2021-05-21 01:32:45 +02:00
|
|
|
%bcond_without vulkan
|
2018-07-18 14:16:12 +02:00
|
|
|
%else
|
2018-08-06 23:11:44 +02:00
|
|
|
%bcond_with libaom
|
2018-07-27 11:30:17 +02:00
|
|
|
%bcond_with mysofa
|
|
|
|
%bcond_with vidstab
|
|
|
|
%bcond_with srt
|
2018-07-18 14:16:12 +02:00
|
|
|
%bcond_with codec2
|
|
|
|
%bcond_with lv2
|
2020-07-17 11:39:17 +02:00
|
|
|
%bcond_with librav1e
|
2018-07-18 14:16:12 +02:00
|
|
|
%bcond_with rubberband
|
|
|
|
%bcond_with soxr
|
2018-07-18 14:55:02 +02:00
|
|
|
%bcond_with zmq
|
2021-05-21 01:32:45 +02:00
|
|
|
%bcond_with vulkan
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
|
|
|
|
2018-07-27 11:30:17 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%bcond_without zimg
|
|
|
|
%bcond_without openmpt
|
|
|
|
%else
|
|
|
|
%bcond_with zimg
|
|
|
|
%bcond_with openmpt
|
|
|
|
%endif
|
|
|
|
|
2018-07-04 10:12:41 +02:00
|
|
|
%define _name ffmpeg
|
|
|
|
%define _major_version 4
|
|
|
|
%define _major_expected 5
|
|
|
|
Name: ffmpeg-4
|
2022-10-10 19:13:28 +02:00
|
|
|
Version: 4.4.3
|
2018-07-04 10:12:41 +02:00
|
|
|
Release: 0
|
2021-06-04 14:29:37 +02:00
|
|
|
Summary: Set of libraries for working with various multimedia formats
|
2020-03-31 17:36:12 +02:00
|
|
|
License: GPL-3.0-or-later
|
2018-07-04 10:12:41 +02:00
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
2020-01-10 16:26:55 +01:00
|
|
|
URL: https://ffmpeg.org/
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
#Freshcode-URL: http://freshcode.club/projects/ffmpeg
|
|
|
|
#Git-Clone: git://source.ffmpeg.org/ffmpeg
|
|
|
|
Source: https://www.ffmpeg.org/releases/%_name-%version.tar.xz
|
|
|
|
Source2: https://www.ffmpeg.org/releases/%_name-%version.tar.xz.asc
|
2019-03-02 08:38:30 +01:00
|
|
|
Source3: ffmpeg-4-rpmlintrc
|
2018-07-04 10:12:41 +02:00
|
|
|
Source4: enable_decoders
|
|
|
|
Source5: enable_encoders
|
2021-11-30 15:42:25 +01:00
|
|
|
Source98: http://ffmpeg.org/ffmpeg-devel.asc#/ffmpeg-4.keyring
|
2018-07-04 10:12:41 +02:00
|
|
|
Source99: baselibs.conf
|
2020-06-17 18:37:53 +02:00
|
|
|
Patch1: ffmpeg-arm6l.diff
|
|
|
|
Patch2: ffmpeg-new-coder-errors.diff
|
|
|
|
Patch3: ffmpeg-codec-choice.diff
|
|
|
|
Patch4: ffmpeg-4.2-dlopen-fdk_aac.patch
|
2020-07-05 00:16:36 +02:00
|
|
|
Patch5: soversion.patch
|
2020-10-19 13:58:05 +02:00
|
|
|
Patch8: vmaf-trim-usr-local.patch
|
2021-07-10 12:30:49 +02:00
|
|
|
Patch9: ffmpeg-4.4-CVE-2020-22046.patch
|
2022-01-16 20:01:07 +01:00
|
|
|
Patch10: ffmpeg-chromium.patch
|
2022-03-18 12:38:38 +01:00
|
|
|
Patch11: ffmpeg-libglslang-detection.patch
|
2022-11-16 12:55:32 +01:00
|
|
|
Patch12: ffmpeg-CVE-2022-3964.patch
|
2022-12-23 11:14:13 +01:00
|
|
|
Patch13: ffmpeg-CVE-2022-3109.patch
|
2023-01-22 16:23:18 +01:00
|
|
|
Patch14: ffmpeg-CVE-2022-3341.patch
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: ladspa-devel
|
|
|
|
BuildRequires: libgsm-devel
|
|
|
|
BuildRequires: libmp3lame-devel
|
|
|
|
%if %{with mysofa}
|
|
|
|
BuildRequires: libmysofa-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: pkg-config
|
2021-06-04 14:55:39 +02:00
|
|
|
%ifarch x86_64
|
2021-06-04 14:29:37 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
BuildRequires: pkgconfig(SvtAv1Enc) >= 0.8.4
|
|
|
|
%endif
|
2021-06-04 14:55:39 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(alsa)
|
2018-08-06 23:11:44 +02:00
|
|
|
%if %{with libaom}
|
|
|
|
BuildRequires: pkgconfig(aom)
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
BuildRequires: pkgconfig(celt) >= 0.11.0
|
2018-07-18 14:16:12 +02:00
|
|
|
%if %{with codec2}
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(codec2)
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
2021-04-17 11:33:08 +02:00
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
|
2019-03-28 22:28:32 +01:00
|
|
|
BuildRequires: pkgconfig(dav1d)
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(enca)
|
|
|
|
BuildRequires: pkgconfig(fontconfig) >= 2.4.2
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
|
|
|
BuildRequires: pkgconfig(fribidi) >= 0.19.0
|
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
BuildRequires: pkgconfig(jack)
|
|
|
|
BuildRequires: pkgconfig(libass)
|
|
|
|
BuildRequires: pkgconfig(libbluray)
|
|
|
|
BuildRequires: pkgconfig(libbs2b)
|
|
|
|
BuildRequires: pkgconfig(libcdio)
|
|
|
|
BuildRequires: pkgconfig(libcdio_paranoia)
|
|
|
|
BuildRequires: pkgconfig(libdc1394-2)
|
2018-07-27 09:03:21 +02:00
|
|
|
BuildRequires: pkgconfig(libdrm)
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(libgme)
|
|
|
|
BuildRequires: pkgconfig(libopenjp2) >= 2.1.0
|
|
|
|
%if %{with openmpt}
|
|
|
|
BuildRequires: pkgconfig(libopenmpt)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libraw1394)
|
|
|
|
BuildRequires: pkgconfig(libssh)
|
|
|
|
BuildRequires: pkgconfig(libv4l2)
|
|
|
|
BuildRequires: pkgconfig(libva) >= 0.35.0
|
2019-07-07 00:46:19 +02:00
|
|
|
BuildRequires: pkgconfig(libva-drm)
|
|
|
|
BuildRequires: pkgconfig(libva-x11)
|
2020-10-19 13:58:05 +02:00
|
|
|
BuildRequires: pkgconfig(libvmaf) >= 1.3.9
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(libwebp) >= 0.4
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2018-07-18 14:55:02 +02:00
|
|
|
%if %{with zmq}
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(libzmq)
|
2018-07-18 14:55:02 +02:00
|
|
|
%endif
|
2018-07-18 14:16:12 +02:00
|
|
|
%if %{with lv2}
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(lilv-0)
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(ogg)
|
|
|
|
BuildRequires: pkgconfig(opus)
|
2020-07-17 11:39:17 +02:00
|
|
|
%if %{with librav1e}
|
|
|
|
BuildRequires: pkgconfig(rav1e)
|
|
|
|
%endif
|
2018-07-18 14:16:12 +02:00
|
|
|
%if %{with rubberband}
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(rubberband)
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2020-03-31 17:36:12 +02:00
|
|
|
%if %{with smbclient}
|
|
|
|
BuildRequires: pkgconfig(smbclient)
|
|
|
|
%endif
|
2018-07-18 14:16:12 +02:00
|
|
|
%if %{with soxr}
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(soxr)
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(speex)
|
|
|
|
%if %{with srt}
|
|
|
|
BuildRequires: pkgconfig(srt)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(theora) >= 1.1
|
|
|
|
BuildRequires: pkgconfig(twolame)
|
|
|
|
BuildRequires: pkgconfig(vdpau)
|
|
|
|
%if %{with vidstab}
|
|
|
|
BuildRequires: pkgconfig(vidstab) >= 0.98
|
|
|
|
%endif
|
2021-05-21 01:32:45 +02:00
|
|
|
%if %{with vulkan}
|
2022-03-18 12:38:38 +01:00
|
|
|
BuildRequires: c++_compiler
|
2022-03-23 22:44:48 +01:00
|
|
|
BuildRequires: glslang-devel
|
|
|
|
BuildRequires: pkgconfig(SPIRV-Tools)
|
|
|
|
BuildRequires: pkgconfig(vulkan)
|
2021-05-21 01:32:45 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(vorbis)
|
|
|
|
BuildRequires: pkgconfig(vpx) >= 1.4.0
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-render)
|
|
|
|
BuildRequires: pkgconfig(xcb-shape)
|
|
|
|
BuildRequires: pkgconfig(xcb-shm)
|
|
|
|
BuildRequires: pkgconfig(xcb-xfixes)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
2020-07-07 12:15:40 +02:00
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
|
2019-07-07 00:46:19 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: pkgconfig(libmfx)
|
|
|
|
%endif
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
%if %{with zimg}
|
|
|
|
BuildRequires: pkgconfig(zimg)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
BuildRequires: pkgconfig(zvbi-0.2) >= 0.2.28
|
2019-07-04 14:18:23 +02:00
|
|
|
%if %{with fdk_aac_dlopen}
|
|
|
|
BuildRequires: pkgconfig(fdk-aac)
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
%if %{with librtmp}
|
|
|
|
BuildRequires: pkgconfig(librtmp)
|
|
|
|
%endif
|
2018-07-26 12:18:09 +02:00
|
|
|
%if %{with nvcodec}
|
2018-07-04 10:12:41 +02:00
|
|
|
BuildRequires: pkgconfig(ffnvcodec)
|
|
|
|
%endif
|
|
|
|
%if %{with xvid}
|
|
|
|
BuildRequires: libxvidcore-devel
|
|
|
|
%endif
|
|
|
|
%if %{with opencore}
|
|
|
|
BuildRequires: pkgconfig(opencore-amrnb)
|
|
|
|
%endif
|
2019-01-15 23:35:26 +01:00
|
|
|
%if %{with amrwb}
|
|
|
|
BuildRequires: pkgconfig(vo-amrwbenc)
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
%if %{with x264}
|
|
|
|
BuildRequires: pkgconfig(x264)
|
|
|
|
%endif
|
|
|
|
%if %{with x265}
|
|
|
|
BuildRequires: pkgconfig(x265)
|
|
|
|
%endif
|
2019-09-19 21:59:49 +02:00
|
|
|
Provides: ffmpeg-tools = %version
|
|
|
|
Obsoletes: ffmpeg-tools < %version
|
2018-07-04 10:12:41 +02:00
|
|
|
Provides: ffmpeg = %version
|
|
|
|
Obsoletes: ffmpeg < %version
|
2022-03-23 22:44:48 +01:00
|
|
|
Conflicts: ffmpeg-5
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavcodec58_134 = %version-%release
|
|
|
|
Requires: libavdevice58_13 = %version-%release
|
|
|
|
Requires: libavfilter7_110 = %version-%release
|
|
|
|
Requires: libavformat58_76 = %version-%release
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavresample4_0 = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavutil56_70 = %version-%release
|
|
|
|
Requires: libpostproc55_9 = %version-%release
|
|
|
|
Requires: libswresample3_9 = %version-%release
|
|
|
|
Requires: libswscale5_9 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
FFmpeg is a multimedia framework, able to decode, encode,
|
|
|
|
transcode, mux, demux, stream, filter and play several formats
|
|
|
|
that humans and machines have created.
|
|
|
|
%if !0%{?BUILD_ORIG}
|
|
|
|
|
|
|
|
This build of ffmpeg is limited in the number of codecs supported.
|
|
|
|
%endif
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%package -n libavcodec58_134
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg codec library
|
|
|
|
Group: System/Libraries
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavutil56_70 = %version-%release
|
|
|
|
Requires: libswresample3_9 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
%if 0%{?BUILD_ORIG}
|
|
|
|
Provides: libavcodec-full = %version-%release
|
2020-07-06 13:34:00 +02:00
|
|
|
# This can be (and is) required by packages like vlc-codecs -
|
|
|
|
# do follow the shlib name to not get random lib providers
|
2021-04-09 22:59:58 +02:00
|
|
|
Provides: libavcodec58_134(unrestricted)
|
2018-07-04 10:12:41 +02:00
|
|
|
%endif
|
2020-07-06 13:34:00 +02:00
|
|
|
# For mozillas
|
|
|
|
Provides: libavcodec = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%description -n libavcodec58_134
|
2018-07-04 10:12:41 +02:00
|
|
|
The libavcodec library provides a generic encoding/decoding framework
|
|
|
|
and contains multiple decoders and encoders for audio, video and
|
|
|
|
subtitle streams, and several bitstream filters.
|
|
|
|
%if !0%{?BUILD_ORIG}
|
|
|
|
|
|
|
|
This build of ffmpeg is limited in the number of codecs supported.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package libavcodec-devel
|
|
|
|
Summary: Development files for FFmpeg's codec library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavcodec-devel = %version-%release
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: libavcodec-devel < %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavresample-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavcodec58_134 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libavcodec-devel
|
|
|
|
The libavcodec library provides a generic encoding/decoding framework
|
|
|
|
and contains multiple decoders and encoders for audio, video and
|
|
|
|
subtitle streams, and several bitstream filters.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavcodec.
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%package -n libavdevice58_13
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg device library
|
|
|
|
Group: System/Libraries
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavcodec58_134 = %version-%release
|
|
|
|
Requires: libavfilter7_110 = %version-%release
|
|
|
|
Requires: libavformat58_76 = %version-%release
|
|
|
|
Requires: libavutil56_70 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%description -n libavdevice58_13
|
2018-07-04 10:12:41 +02:00
|
|
|
The libavdevice library provides a generic framework for grabbing from
|
|
|
|
and rendering to many common multimedia input/output devices, and
|
|
|
|
supports several input and output devices, including Video4Linux2, VfW,
|
|
|
|
DShow, and ALSA.
|
|
|
|
|
|
|
|
%package libavdevice-devel
|
|
|
|
Summary: Development files for FFmpeg's device library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: ffmpeg-devel = %version-%release
|
|
|
|
Conflicts: ffmpeg-devel
|
|
|
|
Provides: libavdevice-devel = %version-%release
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: libavdevice-devel < %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavcodec-devel = %version-%release
|
|
|
|
Requires: %name-libavfilter-devel = %version-%release
|
|
|
|
Requires: %name-libavformat-devel = %version-%release
|
|
|
|
Requires: %name-libavresample-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
|
|
|
Requires: %name-libpostproc-devel = %version-%release
|
|
|
|
Requires: %name-libswresample-devel = %version-%release
|
|
|
|
Requires: %name-libswscale-devel = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavdevice58_13 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libavdevice-devel
|
|
|
|
The libavdevice library provides a generic framework for grabbing from
|
|
|
|
and rendering to many common multimedia input/output devices, and
|
|
|
|
supports several input and output devices, including Video4Linux2, VfW,
|
|
|
|
DShow, and ALSA.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavcodec.
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%package -n libavfilter7_110
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg audio and video filtering library
|
|
|
|
Group: System/Libraries
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavcodec58_134 = %version-%release
|
|
|
|
Requires: libavformat58_76 = %version-%release
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavresample4_0 = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavutil56_70 = %version-%release
|
|
|
|
Requires: libpostproc55_9 = %version-%release
|
|
|
|
Requires: libswresample3_9 = %version-%release
|
|
|
|
Requires: libswscale5_9 = %version-%release
|
2020-07-06 13:34:00 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%description -n libavfilter7_110
|
2018-07-04 10:12:41 +02:00
|
|
|
The libavfilter library provides a generic audio/video filtering
|
|
|
|
framework containing several filters, sources and sinks.
|
|
|
|
|
|
|
|
%package libavfilter-devel
|
|
|
|
Summary: Development files for FFmpeg's audio/video filter library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavfilter-devel = %version-%release
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: libavfilter-devel < %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavcodec-devel = %version-%release
|
|
|
|
Requires: %name-libavformat-devel = %version-%release
|
|
|
|
Requires: %name-libavresample-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
|
|
|
Requires: %name-libpostproc-devel = %version-%release
|
|
|
|
Requires: %name-libswresample-devel = %version-%release
|
|
|
|
Requires: %name-libswscale-devel = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavfilter7_110 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libavfilter-devel
|
|
|
|
The libavfilter library provides a generic audio/video filtering
|
|
|
|
framework containing several filters, sources and sinks.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavfilter.
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%package -n libavformat58_76
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg's stream format library
|
|
|
|
Group: System/Libraries
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavcodec58_134 = %version-%release
|
|
|
|
Requires: libavutil56_70 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%description -n libavformat58_76
|
2018-07-04 10:12:41 +02:00
|
|
|
The libavformat library provides a generic framework for multiplexing
|
|
|
|
and demultiplexing (muxing and demuxing) audio, video and subtitle
|
|
|
|
streams. It encompasses multiple muxers and demuxers for multimedia
|
|
|
|
container formats.
|
|
|
|
%if !0%{?BUILD_ORIG}
|
|
|
|
|
|
|
|
This build of ffmpeg is limited in the number of codecs supported.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package libavformat-devel
|
|
|
|
Summary: Development files for FFmpeg's stream format library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavformat-devel = %version-%release
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: libavformat-devel < %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavcodec-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
|
|
|
Requires: %name-libswresample-devel = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavformat58_76 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libavformat-devel
|
|
|
|
The libavformat library provides a generic framework for multiplexing
|
|
|
|
and demultiplexing (muxing and demuxing) audio, video and subtitle
|
|
|
|
streams. It encompasses multiple muxers and demuxers for multimedia
|
|
|
|
container formats.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavformat.
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libavresample4_0
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg alternate audio resampling library
|
|
|
|
Group: System/Libraries
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavutil56_70 = %version-%release
|
2020-07-06 14:57:43 +02:00
|
|
|
Obsoletes: libavresample4 < %version-%release
|
|
|
|
Provides: libavresample4 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%description -n libavresample4_0
|
2018-07-04 10:12:41 +02:00
|
|
|
An audio resampling library that is being provided for drop-in
|
|
|
|
compatibility with libav.
|
|
|
|
|
|
|
|
It is advised to use libswresample for new code.
|
|
|
|
|
|
|
|
%package libavresample-devel
|
|
|
|
Summary: Development files for libavresample as present in FFmpeg
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavresample-devel = %version-%release
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: libavresample-devel < %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavresample4_0 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libavresample-devel
|
|
|
|
An audio resampling library that is being provided for drop-in
|
|
|
|
compatibility with libav.
|
|
|
|
|
|
|
|
It is advised to use libswresample for new code.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg's copy of libavresample.
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%package -n libavutil56_70
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg's utility library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%description -n libavutil56_70
|
2018-07-04 10:12:41 +02:00
|
|
|
The libavutil library is a utility library to aid portable multimedia
|
|
|
|
programming. It contains safe portable string functions, random
|
|
|
|
number generators, data structures, additional mathematics functions,
|
|
|
|
cryptography and multimedia related functionality (like enumerations
|
|
|
|
for pixel and sample formats).
|
|
|
|
|
|
|
|
%package libavutil-devel
|
|
|
|
Summary: Development files for FFmpeg's utility library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libavutil-devel = %version-%release
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: libavutil-devel < %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavutil56_70 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libavutil-devel
|
|
|
|
The libavutil library is a utility library to aid portable multimedia
|
|
|
|
programming. It contains safe portable string functions, random
|
|
|
|
number generators, data structures, additional mathematics functions,
|
|
|
|
cryptography and multimedia related functionality (like enumerations
|
|
|
|
for pixel and sample formats).
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libavutil.
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%package -n libpostproc55_9
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg post-processing library
|
|
|
|
Group: System/Libraries
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavutil56_70 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%description -n libpostproc55_9
|
2018-07-04 10:12:41 +02:00
|
|
|
A library with video postprocessing filters, such as deblocking and
|
|
|
|
deringing filters, noise reduction, automatic contrast and brightness
|
|
|
|
correction, linear/cubic interpolating deinterlacing.
|
|
|
|
|
|
|
|
%package libpostproc-devel
|
|
|
|
Summary: Development files for the FFmpeg post-processing library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libpostproc-devel = %version-%release
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: libpostproc-devel < %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libpostproc55_9 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libpostproc-devel
|
|
|
|
A library with video postprocessing filters, such as deblocking and
|
|
|
|
deringing filters, noise reduction, automatic contrast and brightness
|
|
|
|
correction, linear/cubic interpolating deinterlacing.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libpostproc.
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%package -n libswresample3_9
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg software resampling library
|
|
|
|
Group: System/Libraries
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavutil56_70 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%description -n libswresample3_9
|
2018-07-04 10:12:41 +02:00
|
|
|
The libswresample library performs audio conversion between different
|
|
|
|
sample rates, channel layout and channel formats.
|
|
|
|
|
|
|
|
%package libswresample-devel
|
|
|
|
Summary: Development files for the FFmpeg software resampling library
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-07-07 19:40:12 +02:00
|
|
|
Provides: libswresample-devel = %version-%release
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: libswresample-devel < %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libswresample3_9 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libswresample-devel
|
|
|
|
The libswresample library performs audio conversion between different
|
|
|
|
sample rates, channel layout and channel formats.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libswresample.
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%package -n libswscale5_9
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg image scaling and colorspace/pixel conversion library
|
|
|
|
Group: System/Libraries
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libavutil56_70 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%description -n libswscale5_9
|
2018-07-04 10:12:41 +02:00
|
|
|
The libswscale library performs image scaling and colorspace and
|
|
|
|
pixel format conversion operations.
|
|
|
|
|
|
|
|
%package libswscale-devel
|
|
|
|
Summary: Development files for FFmpeg's image scaling and colorspace library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libswscale-devel = %version-%release
|
|
|
|
Conflicts: libswscale-devel
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2021-04-09 22:59:58 +02:00
|
|
|
Requires: libswscale5_9 = %version-%release
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description libswscale-devel
|
|
|
|
The libswscale library performs image scaling and colorspace and
|
|
|
|
pixel format conversion operations.
|
|
|
|
|
|
|
|
This subpackage contains the headers for FFmpeg libswscale.
|
|
|
|
|
|
|
|
%package private-devel
|
|
|
|
Summary: Some FFmpeg private headers
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-09-19 21:59:49 +02:00
|
|
|
Requires: %name-libavcodec-devel = %version-%release
|
|
|
|
Requires: %name-libavformat-devel = %version-%release
|
|
|
|
Requires: %name-libavutil-devel = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
Provides: ffmpeg-private-devel = %version
|
2018-08-06 15:30:55 +02:00
|
|
|
Obsoletes: ffmpeg-private-devel < %version
|
2019-09-19 21:59:49 +02:00
|
|
|
%devel_conflicts -c < -v %_major_version
|
|
|
|
%devel_conflicts -c >= -v %_major_expected
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%description private-devel
|
|
|
|
FFmpeg is a multimedia framework, able to decode, encode,
|
|
|
|
transcode, mux, demux, stream, filter and play several formats
|
|
|
|
that humans and machines have created.
|
|
|
|
|
|
|
|
This package contains some private headers for libavformat, libavcodec and
|
|
|
|
libavutil which are needed by libav-tools to build. No other package apart
|
|
|
|
from libav should depend on these private headers which are expected to
|
|
|
|
break compatibility without any notice.
|
|
|
|
|
|
|
|
%prep
|
2021-02-05 22:22:06 +01:00
|
|
|
%autosetup -p1 -n %_name-%version
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%build
|
2019-08-18 14:36:58 +02:00
|
|
|
%ifarch %ix86 %arm
|
2019-09-19 21:59:49 +02:00
|
|
|
%define _lto_cflags %nil
|
2019-05-14 14:15:36 +02:00
|
|
|
%endif
|
2020-03-16 17:59:03 +01:00
|
|
|
%if "%_lto_cflags" != ""
|
|
|
|
%global _lto_cflags %_lto_cflags -ffat-lto-objects
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
CFLAGS="%optflags" \
|
2019-09-19 21:59:49 +02:00
|
|
|
%if %suse_version > 1500
|
2019-05-14 14:15:36 +02:00
|
|
|
%ifarch %ix86
|
|
|
|
%else
|
|
|
|
LDFLAGS="%_lto_cflags" \
|
|
|
|
%endif
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
./configure \
|
|
|
|
--prefix="%_prefix" \
|
|
|
|
--libdir="%_libdir" \
|
|
|
|
--shlibdir="%_libdir" \
|
|
|
|
--incdir="%_includedir/ffmpeg" \
|
|
|
|
--extra-cflags="%optflags" \
|
|
|
|
--optflags="%optflags" \
|
|
|
|
--disable-htmlpages \
|
|
|
|
--enable-pic \
|
|
|
|
--disable-stripping \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--enable-gpl \
|
2020-03-31 17:36:12 +02:00
|
|
|
--enable-version3 \
|
|
|
|
%if %{with smbclient}
|
|
|
|
--enable-libsmbclient \
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
--disable-openssl \
|
|
|
|
--enable-avresample \
|
|
|
|
--enable-gnutls \
|
|
|
|
--enable-ladspa \
|
2021-05-21 01:32:45 +02:00
|
|
|
%if %{with vulkan}
|
|
|
|
--enable-vulkan \
|
2022-03-18 12:38:38 +01:00
|
|
|
--enable-libglslang \
|
2021-05-21 01:32:45 +02:00
|
|
|
%endif
|
2018-12-06 01:38:22 +01:00
|
|
|
%if ! %{with cuda_sdk}
|
|
|
|
--disable-cuda-sdk \
|
2018-08-06 23:11:44 +02:00
|
|
|
%endif
|
|
|
|
%if %{with libaom}
|
|
|
|
--enable-libaom \
|
2018-07-04 10:12:41 +02:00
|
|
|
%endif
|
|
|
|
--enable-libass \
|
|
|
|
--enable-libbluray \
|
2019-03-02 08:38:30 +01:00
|
|
|
--enable-libbs2b \
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libcelt \
|
|
|
|
--enable-libcdio \
|
2018-07-18 14:16:12 +02:00
|
|
|
%if %{with codec2}
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libcodec2 \
|
2019-03-28 22:28:32 +01:00
|
|
|
%endif
|
2021-04-17 11:33:08 +02:00
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
|
2019-03-28 22:28:32 +01:00
|
|
|
--enable-libdav1d \
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libdc1394 \
|
2018-07-27 09:03:21 +02:00
|
|
|
--enable-libdrm \
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libfontconfig \
|
|
|
|
--enable-libfreetype \
|
|
|
|
--enable-libfribidi \
|
|
|
|
--enable-libgsm \
|
|
|
|
--enable-libjack \
|
|
|
|
--enable-libmp3lame \
|
|
|
|
%if %{with mysofa}
|
|
|
|
--enable-libmysofa \
|
|
|
|
%endif
|
|
|
|
--enable-libopenjpeg \
|
|
|
|
%if %{with openmpt}
|
|
|
|
--enable-libopenmpt \
|
|
|
|
%endif
|
|
|
|
--enable-libopus \
|
|
|
|
--enable-libpulse \
|
2020-07-17 11:39:17 +02:00
|
|
|
%if %{with librav1e}
|
|
|
|
--enable-librav1e \
|
|
|
|
%endif
|
2018-07-18 14:16:12 +02:00
|
|
|
%if %{with rubberband}
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-librubberband \
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
2021-06-04 15:39:18 +02:00
|
|
|
%ifarch x86_64
|
2021-06-04 14:29:37 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
--enable-libsvtav1 \
|
|
|
|
%endif
|
2021-06-04 15:39:18 +02:00
|
|
|
%endif
|
2018-07-18 14:16:12 +02:00
|
|
|
%if %{with soxr}
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libsoxr \
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libspeex \
|
|
|
|
--enable-libssh \
|
|
|
|
%if %{with srt}
|
|
|
|
--enable-libsrt \
|
|
|
|
%endif
|
|
|
|
--enable-libtheora \
|
|
|
|
--enable-libtwolame \
|
|
|
|
%if %{with vidstab}
|
|
|
|
--enable-libvidstab \
|
|
|
|
%endif
|
2020-10-19 13:58:05 +02:00
|
|
|
--enable-libvmaf \
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libvorbis \
|
|
|
|
--enable-libv4l2 \
|
|
|
|
--enable-libvpx \
|
|
|
|
--enable-libwebp \
|
|
|
|
--enable-libxml2 \
|
|
|
|
%if %{with zimg}
|
|
|
|
--enable-libzimg \
|
|
|
|
%endif
|
2018-07-18 14:55:02 +02:00
|
|
|
%if %{with zmq}
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libzmq \
|
2018-07-18 14:55:02 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-libzvbi \
|
2019-05-14 14:15:36 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%ifarch %ix86
|
|
|
|
%else
|
|
|
|
--enable-lto \
|
|
|
|
%endif
|
|
|
|
%endif
|
2018-07-18 14:16:12 +02:00
|
|
|
%if %{with lv2}
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-lv2 \
|
2019-07-07 00:46:19 +02:00
|
|
|
%endif
|
2020-07-07 12:15:40 +02:00
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
|
2019-07-07 00:46:19 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
--enable-libmfx \
|
|
|
|
%endif
|
2018-07-18 14:16:12 +02:00
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-vaapi \
|
|
|
|
--enable-vdpau \
|
2020-10-19 13:58:05 +02:00
|
|
|
--enable-version3 \
|
2019-06-11 15:51:31 +02:00
|
|
|
%if %{with fdk_aac_dlopen}
|
2019-06-11 13:21:23 +02:00
|
|
|
--enable-libfdk-aac-dlopen \
|
2018-07-04 10:12:41 +02:00
|
|
|
--enable-nonfree \
|
|
|
|
%endif
|
|
|
|
%if %{with opencore}
|
|
|
|
--enable-libopencore-amrnb \
|
|
|
|
--enable-libopencore-amrwb \
|
|
|
|
%endif
|
2019-01-15 23:35:26 +01:00
|
|
|
%if %{with amrwb}
|
|
|
|
--enable-libvo-amrwbenc \
|
|
|
|
%endif
|
2018-07-04 10:12:41 +02:00
|
|
|
%if %{with x264}
|
|
|
|
--enable-libx264 \
|
|
|
|
%endif
|
|
|
|
%if %{with x265}
|
|
|
|
--enable-libx265 \
|
|
|
|
%endif
|
|
|
|
%if %{with librtmp}
|
|
|
|
--enable-librtmp \
|
|
|
|
%endif
|
|
|
|
%if %{with xvid}
|
|
|
|
--enable-libxvid \
|
|
|
|
%endif
|
|
|
|
%if !0%{?BUILD_ORIG}
|
|
|
|
--enable-muxers \
|
|
|
|
--enable-demuxers \
|
|
|
|
--disable-encoders \
|
|
|
|
--disable-decoders \
|
|
|
|
--disable-decoder=mpeg4,h263,h264,hevc,vc1 \
|
|
|
|
--enable-encoder="$(perl -pe 's{^(\w*).*}{$1,}gs' <%_sourcedir/enable_encoders)" \
|
|
|
|
--enable-decoder="$(perl -pe 's{^(\w*).*}{$1,}gs' <%_sourcedir/enable_decoders)" \
|
|
|
|
|
|
|
|
for i in MPEG4 H263 H264 HEVC VC1; do
|
|
|
|
grep -q "#define CONFIG_${i}_DECODER 0" config.h
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
cat config.h
|
2019-05-02 13:31:52 +02:00
|
|
|
%make_build
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%global extratools aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper probetest qt-faststart seek_print sidxindex trasher
|
|
|
|
|
|
|
|
for i in %extratools; do
|
2019-05-02 13:31:52 +02:00
|
|
|
%make_build "tools/$i"
|
2018-07-04 10:12:41 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
|
|
|
%make_install install-man
|
|
|
|
rm -Rf "$b/%_datadir/ffmpeg/examples"
|
|
|
|
for i in %extratools; do
|
|
|
|
cp -a "tools/$i" "$b/%_bindir/"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Install private headers required by libav-tools
|
|
|
|
for i in libavformat/options_table.h libavformat/os_support.h \
|
|
|
|
libavformat/internal.h libavcodec/options_table.h libavutil/libm.h \
|
|
|
|
libavutil/internal.h libavutil/colorspace.h libavutil/timer.h \
|
|
|
|
libavutil/x86/emms.h libavutil/aarch64/timer.h libavutil/arm/timer.h \
|
|
|
|
libavutil/bfin/timer.h libavutil/ppc/timer.h libavutil/x86/timer.h; do
|
|
|
|
mkdir -p "$b/%_includedir/ffmpeg/private/"`dirname $i`
|
|
|
|
cp -a $i "$b/%_includedir/ffmpeg/private/$i"
|
|
|
|
done
|
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%post -n libavcodec58_134 -p /sbin/ldconfig
|
|
|
|
%postun -n libavcodec58_134 -p /sbin/ldconfig
|
|
|
|
%post -n libavdevice58_13 -p /sbin/ldconfig
|
|
|
|
%postun -n libavdevice58_13 -p /sbin/ldconfig
|
|
|
|
%post -n libavfilter7_110 -p /sbin/ldconfig
|
|
|
|
%postun -n libavfilter7_110 -p /sbin/ldconfig
|
|
|
|
%post -n libavformat58_76 -p /sbin/ldconfig
|
|
|
|
%postun -n libavformat58_76 -p /sbin/ldconfig
|
2020-07-06 13:34:00 +02:00
|
|
|
%post -n libavresample4_0 -p /sbin/ldconfig
|
|
|
|
%postun -n libavresample4_0 -p /sbin/ldconfig
|
2021-04-09 22:59:58 +02:00
|
|
|
%post -n libavutil56_70 -p /sbin/ldconfig
|
|
|
|
%postun -n libavutil56_70 -p /sbin/ldconfig
|
|
|
|
%post -n libpostproc55_9 -p /sbin/ldconfig
|
|
|
|
%postun -n libpostproc55_9 -p /sbin/ldconfig
|
|
|
|
%post -n libswresample3_9 -p /sbin/ldconfig
|
|
|
|
%postun -n libswresample3_9 -p /sbin/ldconfig
|
|
|
|
%post -n libswscale5_9 -p /sbin/ldconfig
|
|
|
|
%postun -n libswscale5_9 -p /sbin/ldconfig
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changelog CREDITS README.md
|
2022-08-29 09:05:30 +02:00
|
|
|
%_bindir/aviocat
|
|
|
|
%_bindir/cws2fws
|
|
|
|
%_bindir/ffescape
|
|
|
|
%_bindir/ffeval
|
|
|
|
%_bindir/ffhash
|
|
|
|
%_bindir/ffmpeg
|
|
|
|
%_bindir/ffplay
|
|
|
|
%_bindir/ffprobe
|
|
|
|
%_bindir/fourcc2pixfmt
|
|
|
|
%_bindir/graph2dot
|
|
|
|
%_bindir/ismindex
|
|
|
|
%_bindir/pktdumper
|
|
|
|
%_bindir/probetest
|
|
|
|
%_bindir/qt-faststart
|
|
|
|
%_bindir/seek_print
|
|
|
|
%_bindir/sidxindex
|
|
|
|
%_bindir/trasher
|
2018-07-04 10:12:41 +02:00
|
|
|
%_mandir/man1/ff*.1*
|
|
|
|
%_datadir/ffmpeg/
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libavcodec.so.58
|
|
|
|
%_libdir/libavdevice.so.58
|
|
|
|
%_libdir/libavfilter.so.7
|
|
|
|
%_libdir/libavformat.so.58
|
|
|
|
%_libdir/libavresample.so.4
|
|
|
|
%_libdir/libavutil.so.56
|
|
|
|
%_libdir/libpostproc.so.55
|
|
|
|
%_libdir/libswresample.so.3
|
|
|
|
%_libdir/libswscale.so.5
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%files -n libavcodec58_134
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2021-04-09 22:59:58 +02:00
|
|
|
%_libdir/libavcodec.so.58.134*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%files -n libavdevice58_13
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2021-04-09 22:59:58 +02:00
|
|
|
%_libdir/libavdevice.so.58.13*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%files -n libavfilter7_110
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2021-04-09 22:59:58 +02:00
|
|
|
%_libdir/libavfilter.so.7.110*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%files -n libavformat58_76
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2021-04-09 22:59:58 +02:00
|
|
|
%_libdir/libavformat.so.58.76*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libavresample4_0
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libavresample.so.4.0*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%files -n libavutil56_70
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2021-04-09 22:59:58 +02:00
|
|
|
%_libdir/libavutil.so.56.70*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%files -n libpostproc55_9
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2021-04-09 22:59:58 +02:00
|
|
|
%_libdir/libpostproc.so.55.9*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%files -n libswresample3_9
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2021-04-09 22:59:58 +02:00
|
|
|
%_libdir/libswresample.so.3.9*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2021-04-09 22:59:58 +02:00
|
|
|
%files -n libswscale5_9
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2021-04-09 22:59:58 +02:00
|
|
|
%_libdir/libswscale.so.5.9*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%files libavcodec-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavcodec/
|
|
|
|
%_libdir/libavcodec.so
|
|
|
|
%_libdir/pkgconfig/libavcodec.pc
|
|
|
|
%_mandir/man3/libavcodec.3*
|
|
|
|
|
|
|
|
%files libavdevice-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavdevice/
|
|
|
|
%_libdir/libavdevice.so
|
|
|
|
%_libdir/pkgconfig/libavdevice.pc
|
|
|
|
%_mandir/man3/libavdevice.3*
|
|
|
|
|
|
|
|
%files libavfilter-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavfilter/
|
|
|
|
%_libdir/libavfilter.so
|
|
|
|
%_libdir/pkgconfig/libavfilter.pc
|
|
|
|
%_mandir/man3/libavfilter.3*
|
|
|
|
|
|
|
|
%files libavformat-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavformat/
|
|
|
|
%_libdir/libavformat.so
|
|
|
|
%_libdir/pkgconfig/libavformat.pc
|
|
|
|
%_mandir/man3/libavformat.3*
|
|
|
|
|
|
|
|
%files libavresample-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavresample/
|
|
|
|
%_libdir/libavresample.so
|
|
|
|
%_libdir/pkgconfig/libavresample.pc
|
|
|
|
|
|
|
|
%files libavutil-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libavutil/
|
|
|
|
%_libdir/libavutil.so
|
|
|
|
%_libdir/pkgconfig/libavutil.pc
|
|
|
|
%_mandir/man3/libavutil.3*
|
|
|
|
|
|
|
|
%files libpostproc-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libpostproc/
|
|
|
|
%_libdir/libpostproc.so
|
|
|
|
%_libdir/pkgconfig/libpostproc.pc
|
|
|
|
|
|
|
|
%files libswresample-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libswresample/
|
|
|
|
%_libdir/libswresample.so
|
|
|
|
%_libdir/pkgconfig/libswresample.pc
|
|
|
|
%_mandir/man3/libswresample.3*
|
|
|
|
|
|
|
|
%files libswscale-devel
|
|
|
|
%dir %_includedir/ffmpeg/
|
|
|
|
%_includedir/ffmpeg/libswscale/
|
|
|
|
%_libdir/libswscale.so
|
|
|
|
%_libdir/pkgconfig/libswscale.pc
|
|
|
|
%_mandir/man3/libswscale.3*
|
|
|
|
|
|
|
|
%files private-devel
|
|
|
|
%_includedir/ffmpeg/private/
|
|
|
|
|
|
|
|
%changelog
|