]> git.pld-linux.org Git - packages/ffms2.git/blobdiff - ffms2.spec
upstream fixes for ffmpeg5
[packages/ffms2.git] / ffms2.spec
index f2357ac0ac0168b29e0a387b8c5291769a0e452f..132a3d11b316050eac2a206308272b2514051c6d 100644 (file)
@@ -6,13 +6,14 @@
 Summary:       FFmpegSource - FFmpeg wrapper library
 Summary(pl.UTF-8):     FFmpegSource - biblioteka obudowujÄ…ca FFmpeg
 Name:          ffms2
-Version:       2.23
+Version:       2.40
 Release:       1
 License:       MIT (ffmpegsource itself), GPL v3+ (forced by ffmpeg)
 Group:         Libraries
 #Source0Download: https://github.com/FFMS/ffms2/releases
 Source0:       https://github.com/FFMS/ffms2/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: e7728ae581e278ade6bc9f204faaff9e
+# Source0-md5: 141f194432d70bbf5456a847043f332a
+Patch0:                ffmpeg5.patch
 URL:           https://github.com/FFMS/ffms2
 BuildRequires: autoconf >= 2.58
 BuildRequires: automake >= 1:1.11
@@ -20,10 +21,13 @@ BuildRequires:      automake >= 1:1.11
 BuildRequires: ffmpeg-devel >= 0.9
 # libavresample >= 1.0.0 or libswresample >= 1.0.0
 %{?with_avresample:BuildRequires:      ffmpeg-devel >= 1.1}
+%ifarch %{armv6}
+BuildRequires: libatomic-devel
+%endif
 BuildRequires: libstdc++-devel
 BuildRequires: libtool >= 2:2.0
 BuildRequires: pkgconfig >= 1:0.22
-BuildRequires: rpmbuild(macros) >= 1.566
+BuildRequires: rpmbuild(macros) >= 2.007
 BuildRequires: sed >= 4.0
 BuildRequires: zlib-devel
 Obsoletes:     ffmpegsource < 2.20
@@ -84,6 +88,9 @@ Statyczna biblioteka FFmpegSource.
 
 %prep
 %setup -q
+%patch0 -p1
+
+install -d src/config
 
 %build
 CXXFLAGS="%{rpmcxxflags} -Wall -Wextra"
@@ -93,6 +100,9 @@ CXXFLAGS="%{rpmcxxflags} -Wall -Wextra"
 %{__autoheader}
 %{__automake}
 %configure \
+%ifarch %{armv6}
+       LIBS=-latomic \
+%endif
        --enable-avresample%{!?with_avresample:=no} \
        --disable-silent-rules \
        --enable-shared \
This page took 0.777393 seconds and 4 git commands to generate.