Files
ffms2/ffms2.spec
Mia Herkt 4ef4a966d2 - Update to version 5.0+0:
* Fixed all issues with FFmpeg 6.1 which is now the minimum
    requirement
  * Fixed av1 decoding
  * Added HDR10+ and DolbyVision metadata
  * Fixed audio decoding that could otherwise get stuck in an
    infinite loop on certain files
  * Fixed framerate in Avisynth when using VFR=>CFR mode
  * Dropped VapourSynth API3 support
  * Indexer now has a configurable progress update interval
  * Alpha planes are now correctly marked as being full range
  * The full set of demuxer options can now be passed using the
    FFMS2 API
  * Now sets channel layout in Avisynth+
  * Removed the unfixable and always broken rffmode from Avisynth
    source

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffms2?expand=0&rev=10
2024-06-04 18:30:58 +00:00

108 lines
3.3 KiB
RPMSpec

#
# spec file for package ffms2
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2016 Packman Team <packman@links2linux.de>
#
# 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 libname lib%{name}
%define soname 5
Name: ffms2
Version: 5.0+0
Release: 0
Summary: Wrapper library around FFmpeg libraries
License: MIT
Group: Development/Libraries/C and C++
URL: https://github.com/FFMS/ffms2
Source: %{name}-%{version}.tar.xz
Source1: baselibs.conf
Patch0: ffms2-pkgconfig.patch
BuildRequires: automake
BuildRequires: c++_compiler
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libavcodec) >= 60.31.0
BuildRequires: pkgconfig(libavformat) >= 60.16.0
BuildRequires: pkgconfig(libavutil) >= 58.29.0
BuildRequires: pkgconfig(libswresample) >= 4.12.0
BuildRequires: pkgconfig(libswscale) >= 7.5.0
BuildRequires: pkgconfig(zlib)
%description
FFmpegSource (usually known as FFMS or FFMS2) is a wrapper
library around FFmpeg, plus some additional components to deal with file
formats libavformat has (or used to have) problems with.
%package -n ffmsindex
Summary: Wrapper library around libffmpeg
Group: Productivity/Multimedia/Other
%description -n ffmsindex
FFmpegSource (usually known as FFMS or FFMS2) is a wrapper
library around FFmpeg, plus some additional components to deal with file
formats libavformat has (or used to have) problems with.
%package -n %{libname}-%{soname}
Summary: Wrapper library around libffmpeg
Group: System/Libraries
%description -n %{libname}-%{soname}
FFmpegSource (usually known as FFMS or FFMS2) is a wrapper
library around FFmpeg, plus some additional components to deal with file
formats libavformat has (or used to have) problems with.
%package -n %{libname}-devel
Summary: Wrapper library around libffmpeg
Group: Development/Libraries/C and C++
Requires: %{libname}-%{soname} = %{version}
%description -n %{libname}-devel
FFmpegSource (usually known as FFMS or FFMS2) is a wrapper
library around FFmpeg, plus some additional components to deal with file
formats libavformat has (or used to have) problems with.
%prep
%setup -q
%autopatch -p1
%build
./autogen.sh
%configure --docdir=%{_docdir}/%{libname}-devel \
--disable-static --enable-shared
%make_build
%install
%make_install V=1
rm %{buildroot}%{_libdir}/%{libname}.la
%post -n %{libname}-%{soname} -p /sbin/ldconfig
%postun -n %{libname}-%{soname} -p /sbin/ldconfig
%files -n ffmsindex
%{_bindir}/ffmsindex
%files -n %{libname}-%{soname}
%license COPYING
%{_libdir}/%{libname}.so.%{soname}*
%files -n %{libname}-devel
%{_libdir}/%{libname}.so
%{_includedir}/ffms*
%{_libdir}/pkgconfig/%{name}.pc
%{_docdir}/%{libname}-devel
%changelog