forked from jengelh/ffmpeg-5
- Provide a ffmpeg-5-mini-devel build recipe to help split
anticipated build cycles. OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=40
This commit is contained in:
parent
9dcd5fad86
commit
ae10da9dc0
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>ffmpeg-5-mini-devel</package>
|
||||
</multibuild>
|
1
ffmpeg-5-mini-devel-rpmlintrc
Normal file
1
ffmpeg-5-mini-devel-rpmlintrc
Normal file
@ -0,0 +1 @@
|
||||
addFilter("non-devel-file-in-devel-package")
|
82
ffmpeg-5-mini-devel.spec
Normal file
82
ffmpeg-5-mini-devel.spec
Normal file
@ -0,0 +1,82 @@
|
||||
#
|
||||
# spec file for package ffmpeg-5-mini-devel
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# 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
|
||||
%define _major_version 5
|
||||
%define _major_expected 6
|
||||
|
||||
Name: ffmpeg-5-mini-devel
|
||||
Version: 5.1.2
|
||||
Release: 0
|
||||
Summary: Set of libraries for working with various multimedia formats
|
||||
License: GPL-3.0-or-later
|
||||
Group: Productivity/Multimedia/Video/Editors and Convertors
|
||||
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
|
||||
BuildRequires: c_compiler
|
||||
|
||||
%description
|
||||
FFmpeg is a multimedia framework. This package merely builds
|
||||
the API for the sake of other packages.
|
||||
|
||||
%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"
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING.GPLv2 LICENSE.md
|
||||
%_libdir/lib*
|
||||
%_libdir/pkgconfig/*.pc
|
||||
%_includedir/ffmpeg/
|
||||
|
||||
%changelog
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 21 10:46:16 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Provide a ffmpeg-5-mini-devel build recipe to help split
|
||||
anticipated build cycles.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 12 21:18:30 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user