SHA256
1
0
forked from jengelh/ffmpeg-5

split mini-devel into mini-devel&mini-libs

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=47
This commit is contained in:
Jan Engelhardt 2023-01-15 09:53:46 +00:00 committed by Git OBS Bridge
parent b6071aa579
commit b981c52819
3 changed files with 60 additions and 38 deletions

View File

@ -1,3 +1,3 @@
<multibuild> <multibuild>
<package>ffmpeg-5-mini-devel</package> <package>ffmpeg-5-mini</package>
</multibuild> </multibuild>

View File

@ -1,5 +1,5 @@
# #
# spec file for package ffmpeg-5-mini-devel # spec file for package ffmpeg-5-mini
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
@ -17,15 +17,12 @@
%define _name ffmpeg %define _name ffmpeg
%define _major_version 5
%define _major_expected 6
Name: ffmpeg-5-mini-devel Name: ffmpeg-5-mini
Version: 5.1.2 Version: 5.1.2
Release: 0 Release: 0
Summary: Set of libraries for working with various multimedia formats Summary: Set of libraries for working with various multimedia formats
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: https://ffmpeg.org/ URL: https://ffmpeg.org/
#Git-Clone: git://source.ffmpeg.org/ffmpeg #Git-Clone: git://source.ffmpeg.org/ffmpeg
Source: https://www.ffmpeg.org/releases/%_name-%version.tar.xz Source: https://www.ffmpeg.org/releases/%_name-%version.tar.xz
@ -42,34 +39,51 @@ Patch10: ffmpeg-chromium.patch
Patch11: ffmpeg-CVE-2022-3964.patch Patch11: ffmpeg-CVE-2022-3964.patch
Patch91: ffmpeg-dlopen-openh264.patch Patch91: ffmpeg-dlopen-openh264.patch
BuildRequires: c_compiler BuildRequires: c_compiler
Provides: libavcodec-devel = %version-%release
Conflicts: libavcodec-devel
Conflicts: libavcodec59
Provides: libavdevice-devel = %version-%release
Conflicts: libavdevice-devel
Conflicts: libavdevice59
Provides: libavfilter-devel = %version-%release
Conflicts: libavfilter-devel
Conflicts: libavfilter8
Provides: libavformat-devel = %version-%release
Conflicts: libavformat-devel
Conflicts: libavformat59
Provides: libavutil-devel = %version-%release
Conflicts: libavutil-devel
Conflicts: libavutil57
Provides: libpostproc-devel = %version-%release
Conflicts: libpostproc-devel
Conflicts: libpostproc56
Provides: libswresample-devel = %version-%release
Conflicts: libswresample-devel
Conflicts: libswresample4
Provides: libswscale-devel = %version-%release
Conflicts: libswscale-devel
Conflicts: libswscale6
%description %description
FFmpeg is a multimedia framework. This package merely builds FFmpeg is a multimedia framework.
the API for the sake of other packages. 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
Provides: libavcodec-devel = %version-%release
Conflicts: libavcodec-devel
Provides: libavdevice-devel = %version-%release
Conflicts: libavdevice-devel
Provides: libavfilter-devel = %version-%release
Conflicts: libavfilter-devel
Provides: libavformat-devel = %version-%release
Conflicts: libavformat-devel
Provides: libavutil-devel = %version-%release
Conflicts: libavutil-devel
Provides: libpostproc-devel = %version-%release
Conflicts: libpostproc-devel
Provides: libswresample-devel = %version-%release
Conflicts: libswresample-devel
Provides: libswscale-devel = %version-%release
Conflicts: libswscale-devel
Requires: %name-devel = %version-%release
%description devel
FFmpeg is a multimedia framework.
This package contains the headers accompanying %name.
%prep %prep
%autosetup -p1 -n %_name-%version %autosetup -p1 -n %_name-%version
@ -90,11 +104,9 @@ CFLAGS="%optflags" \
--disable-muxers --disable-demuxers \ --disable-muxers --disable-demuxers \
--disable-encoders --disable-decoders \ --disable-encoders --disable-decoders \
--disable-programs --disable-doc --disable-programs --disable-doc
for i in MPEG4 H263 H264 HEVC VC1; do for i in MPEG4 H263 H264 HEVC VC1; do
grep -q "#define CONFIG_${i}_DECODER 0" config_components.h grep -q "#define CONFIG_${i}_DECODER 0" config_components.h
done done
cat config.h cat config.h
%make_build %make_build
@ -103,12 +115,22 @@ b="%buildroot"
%make_install %make_install
rm -Rf "$b/%_datadir/ffmpeg/examples" rm -Rf "$b/%_datadir/ffmpeg/examples"
%post -p /sbin/ldconfig %post libs -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%files %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.*
%files devel
%license COPYING.GPLv2 LICENSE.md %license COPYING.GPLv2 LICENSE.md
%_libdir/lib* %_libdir/*.so
%_libdir/pkgconfig/*.pc %_libdir/pkgconfig/*.pc
%_includedir/ffmpeg/ %_includedir/ffmpeg/