2018-07-04 10:12:41 +02:00
|
|
|
#
|
|
|
|
# spec file for package ffmpeg-4
|
|
|
|
#
|
2021-01-24 13:27:34 +01:00
|
|
|
# Copyright (c) 2021 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
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%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
|
|
|
|
%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
|
2020-03-31 17:36:12 +02:00
|
|
|
%bcond_without smbclient
|
2018-07-04 10:12:41 +02:00
|
|
|
%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
|
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
|
2020-03-31 17:36:12 +02:00
|
|
|
%bcond_with smbclient
|
2018-07-27 11:30:17 +02:00
|
|
|
%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
|
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
|
2020-07-12 21:23:22 +02:00
|
|
|
Version: 4.3.1
|
2018-07-04 10:12:41 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library 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
|
|
|
|
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-07-27 16:02:29 +02:00
|
|
|
Patch6: ffmpeg.git-ba3e771a42c29ee02c34e7769cfc1b2dbc5c760a.patch
|
2020-10-14 12:04:32 +02:00
|
|
|
Patch7: 0001-lavf-srt-fix-build-fail-when-used-the-libsrt-1.4.1.patch
|
2020-10-19 13:58:05 +02:00
|
|
|
Patch8: vmaf-trim-usr-local.patch
|
2020-11-27 17:18:44 +01:00
|
|
|
Patch9: ffmpeg_altivec_yuv2rgb_novsx.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
|
|
|
|
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
|
2019-03-28 22:28:32 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
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
|
|
|
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavcodec58_91 = %version-%release
|
|
|
|
Requires: libavdevice58_10 = %version-%release
|
|
|
|
Requires: libavfilter7_85 = %version-%release
|
|
|
|
Requires: libavformat58_45 = %version-%release
|
|
|
|
Requires: libavresample4_0 = %version-%release
|
|
|
|
Requires: libavutil56_51 = %version-%release
|
|
|
|
Requires: libpostproc55_7 = %version-%release
|
|
|
|
Requires: libswresample3_7 = %version-%release
|
|
|
|
Requires: libswscale5_7 = %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
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libavcodec58_91
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg codec library
|
|
|
|
Group: System/Libraries
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavutil56_51 = %version-%release
|
|
|
|
Requires: libswresample3_7 = %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
|
|
|
|
Provides: libavcodec58_91(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
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%description -n libavcodec58_91
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavcodec58_91 = %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.
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libavdevice58_10
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg device library
|
|
|
|
Group: System/Libraries
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavcodec58_91 = %version-%release
|
|
|
|
Requires: libavfilter7_85 = %version-%release
|
|
|
|
Requires: libavformat58_45 = %version-%release
|
|
|
|
Requires: libavutil56_51 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%description -n libavdevice58_10
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavdevice58_10 = %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.
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libavfilter7_85
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg audio and video filtering library
|
|
|
|
Group: System/Libraries
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavcodec58_91 = %version-%release
|
2020-07-06 13:36:04 +02:00
|
|
|
Requires: libavformat58_45 = %version-%release
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavresample4_0 = %version-%release
|
|
|
|
Requires: libavutil56_51 = %version-%release
|
|
|
|
Requires: libpostproc55_7 = %version-%release
|
|
|
|
Requires: libswresample3_7 = %version-%release
|
|
|
|
Requires: libswscale5_7 = %version-%release
|
|
|
|
|
|
|
|
%description -n libavfilter7_85
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavfilter7_85 = %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.
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libavformat58_45
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg's stream format library
|
|
|
|
Group: System/Libraries
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavcodec58_91 = %version-%release
|
|
|
|
Requires: libavutil56_51 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%description -n libavformat58_45
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavformat58_45 = %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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavutil56_51 = %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.
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libavutil56_51
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg's utility library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%description -n libavutil56_51
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavutil56_51 = %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.
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libpostproc55_7
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg post-processing library
|
|
|
|
Group: System/Libraries
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavutil56_51 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%description -n libpostproc55_7
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libpostproc55_7 = %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.
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libswresample3_7
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg software resampling library
|
|
|
|
Group: System/Libraries
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavutil56_51 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%description -n libswresample3_7
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libswresample3_7 = %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.
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%package -n libswscale5_7
|
2018-07-04 10:12:41 +02:00
|
|
|
Summary: FFmpeg image scaling and colorspace/pixel conversion library
|
|
|
|
Group: System/Libraries
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libavutil56_51 = %version-%release
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%description -n libswscale5_7
|
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
|
2020-07-06 13:34:00 +02:00
|
|
|
Requires: libswscale5_7 = %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
|
|
|
|
%setup -q -n %_name-%version
|
|
|
|
%autopatch -p1
|
|
|
|
|
|
|
|
%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 \
|
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
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
--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
|
|
|
|
%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
|
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%post -n libavcodec58_91 -p /sbin/ldconfig
|
|
|
|
%postun -n libavcodec58_91 -p /sbin/ldconfig
|
|
|
|
%post -n libavdevice58_10 -p /sbin/ldconfig
|
|
|
|
%postun -n libavdevice58_10 -p /sbin/ldconfig
|
|
|
|
%post -n libavfilter7_85 -p /sbin/ldconfig
|
|
|
|
%postun -n libavfilter7_85 -p /sbin/ldconfig
|
|
|
|
%post -n libavformat58_45 -p /sbin/ldconfig
|
|
|
|
%postun -n libavformat58_45 -p /sbin/ldconfig
|
|
|
|
%post -n libavresample4_0 -p /sbin/ldconfig
|
|
|
|
%postun -n libavresample4_0 -p /sbin/ldconfig
|
|
|
|
%post -n libavutil56_51 -p /sbin/ldconfig
|
|
|
|
%postun -n libavutil56_51 -p /sbin/ldconfig
|
|
|
|
%post -n libpostproc55_7 -p /sbin/ldconfig
|
|
|
|
%postun -n libpostproc55_7 -p /sbin/ldconfig
|
|
|
|
%post -n libswresample3_7 -p /sbin/ldconfig
|
|
|
|
%postun -n libswresample3_7 -p /sbin/ldconfig
|
|
|
|
%post -n libswscale5_7 -p /sbin/ldconfig
|
|
|
|
%postun -n libswscale5_7 -p /sbin/ldconfig
|
2018-07-04 10:12:41 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changelog CREDITS README.md
|
|
|
|
%_bindir/*
|
|
|
|
%_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
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libavcodec58_91
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libavcodec.so.58.91*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libavdevice58_10
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libavdevice.so.58.10*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libavfilter7_85
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libavfilter.so.7.85*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libavformat58_45
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libavformat.so.58.45*
|
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
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libavutil56_51
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libavutil.so.56.51*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libpostproc55_7
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libpostproc.so.55.7*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libswresample3_7
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libswresample.so.3.7*
|
2018-07-04 10:12:41 +02:00
|
|
|
|
2020-07-06 13:34:00 +02:00
|
|
|
%files -n libswscale5_7
|
2018-07-04 10:12:41 +02:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2020-10-14 12:16:34 +02:00
|
|
|
%_libdir/libswscale.so.5.7*
|
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
|