2022-12-21 11:46:33 +01:00
|
|
|
#
|
2023-01-15 10:53:46 +01:00
|
|
|
# spec file for package ffmpeg-5-mini
|
2022-12-21 11:46:33 +01:00
|
|
|
#
|
2023-01-04 14:30:15 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-12-21 11:46:33 +01: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define _name ffmpeg
|
|
|
|
|
2023-01-15 10:53:46 +01:00
|
|
|
Name: ffmpeg-5-mini
|
2022-12-21 11:46:33 +01:00
|
|
|
Version: 5.1.2
|
|
|
|
Release: 0
|
|
|
|
Summary: Set of libraries for working with various multimedia formats
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
URL: https://ffmpeg.org/
|
|
|
|
#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
|
|
|
|
Source3: %name-rpmlintrc
|
|
|
|
Source98: http://ffmpeg.org/ffmpeg-devel.asc#/ffmpeg-5.keyring
|
2023-01-12 18:34:49 +01:00
|
|
|
Patch1: ffmpeg-arm6l.diff
|
|
|
|
Patch2: ffmpeg-new-coder-errors.diff
|
|
|
|
Patch3: ffmpeg-codec-choice.diff
|
|
|
|
Patch4: ffmpeg-4.2-dlopen-fdk_aac.patch
|
|
|
|
Patch5: work-around-abi-break.patch
|
|
|
|
Patch9: ffmpeg-4.4-CVE-2020-22046.patch
|
|
|
|
Patch10: ffmpeg-chromium.patch
|
|
|
|
Patch11: ffmpeg-CVE-2022-3964.patch
|
|
|
|
Patch91: ffmpeg-dlopen-openh264.patch
|
2022-12-21 11:46:33 +01:00
|
|
|
BuildRequires: c_compiler
|
2023-01-15 10:53:46 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
FFmpeg is a multimedia framework.
|
|
|
|
This package merely builds the API for the sake of other packages.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
# Even with mini, we want ff5 libs to be coinstallable to ff4-devel(!),
|
|
|
|
# hence mini-libs and mini-devel are still separated.
|
|
|
|
Summary: Feature-reduced build of FFmpeg, a multimedia framework
|
|
|
|
Conflicts: libavcodec59
|
|
|
|
Conflicts: libavdevice59
|
|
|
|
Conflicts: libavfilter8
|
|
|
|
Conflicts: libavformat59
|
|
|
|
Conflicts: libavutil57
|
|
|
|
Conflicts: libpostproc56
|
|
|
|
Conflicts: libswresample4
|
|
|
|
Conflicts: libswscale6
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
FFmpeg is a multimedia framework.
|
|
|
|
This package contains a cut-down version for building other packages.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for feature-reduced FFmpeg build
|
2023-01-05 14:46:41 +01:00
|
|
|
Provides: libavcodec-devel = %version-%release
|
2023-01-04 14:30:15 +01:00
|
|
|
Conflicts: libavcodec-devel
|
2023-01-05 14:46:41 +01:00
|
|
|
Provides: libavdevice-devel = %version-%release
|
2023-01-04 14:30:15 +01:00
|
|
|
Conflicts: libavdevice-devel
|
2023-01-05 14:46:41 +01:00
|
|
|
Provides: libavfilter-devel = %version-%release
|
2023-01-04 14:30:15 +01:00
|
|
|
Conflicts: libavfilter-devel
|
2023-01-05 14:46:41 +01:00
|
|
|
Provides: libavformat-devel = %version-%release
|
2023-01-04 14:30:15 +01:00
|
|
|
Conflicts: libavformat-devel
|
2023-01-05 14:46:41 +01:00
|
|
|
Provides: libavutil-devel = %version-%release
|
2023-01-04 14:30:15 +01:00
|
|
|
Conflicts: libavutil-devel
|
2023-01-05 14:46:41 +01:00
|
|
|
Provides: libpostproc-devel = %version-%release
|
2023-01-04 14:30:15 +01:00
|
|
|
Conflicts: libpostproc-devel
|
2023-01-05 14:46:41 +01:00
|
|
|
Provides: libswresample-devel = %version-%release
|
2023-01-05 13:46:19 +01:00
|
|
|
Conflicts: libswresample-devel
|
2023-01-05 14:46:41 +01:00
|
|
|
Provides: libswscale-devel = %version-%release
|
2023-01-04 14:30:15 +01:00
|
|
|
Conflicts: libswscale-devel
|
2023-01-24 13:23:26 +01:00
|
|
|
Requires: %name-libs = %version-%release
|
2022-12-21 11:46:33 +01:00
|
|
|
|
2023-01-15 10:53:46 +01:00
|
|
|
%description devel
|
|
|
|
FFmpeg is a multimedia framework.
|
|
|
|
This package contains the headers accompanying %name.
|
2022-12-21 11:46:33 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %_name-%version
|
|
|
|
|
|
|
|
%build
|
|
|
|
%define _lto_cflags %nil
|
|
|
|
CFLAGS="%optflags" \
|
|
|
|
./configure \
|
|
|
|
--prefix="%_prefix" \
|
|
|
|
--libdir="%_libdir" \
|
|
|
|
--shlibdir="%_libdir" \
|
|
|
|
--incdir="%_includedir/ffmpeg" \
|
|
|
|
--extra-cflags="%optflags" \
|
|
|
|
--optflags="%optflags" \
|
|
|
|
--disable-htmlpages --disable-stripping --disable-x86asm \
|
|
|
|
--disable-static --enable-shared --enable-pic \
|
|
|
|
--enable-gpl --enable-version3 \
|
|
|
|
--disable-muxers --disable-demuxers \
|
|
|
|
--disable-encoders --disable-decoders \
|
|
|
|
--disable-programs --disable-doc
|
|
|
|
for i in MPEG4 H263 H264 HEVC VC1; do
|
|
|
|
grep -q "#define CONFIG_${i}_DECODER 0" config_components.h
|
|
|
|
done
|
|
|
|
cat config.h
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
|
|
|
%make_install
|
|
|
|
rm -Rf "$b/%_datadir/ffmpeg/examples"
|
|
|
|
|
2023-01-15 10:53:46 +01:00
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%_libdir/libavcodec.so.*
|
|
|
|
%_libdir/libavdevice.so.*
|
|
|
|
%_libdir/libavfilter.so.*
|
|
|
|
%_libdir/libavformat.so.*
|
|
|
|
%_libdir/libavutil.so.*
|
|
|
|
%_libdir/libpostproc.so.*
|
|
|
|
%_libdir/libswresample.so.*
|
|
|
|
%_libdir/libswscale.so.*
|
2022-12-21 11:46:33 +01:00
|
|
|
|
2023-01-15 10:53:46 +01:00
|
|
|
%files devel
|
2022-12-21 11:46:33 +01:00
|
|
|
%license COPYING.GPLv2 LICENSE.md
|
2023-01-15 10:53:46 +01:00
|
|
|
%_libdir/*.so
|
2022-12-21 11:46:33 +01:00
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%_includedir/ffmpeg/
|
|
|
|
|
|
|
|
%changelog
|