%global commit cf7c4b250d5e60b7c7ddaae20f362e365bc33f30 %global gittag 2.40 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: ffms2 Version: %{gittag} Release: 1.%{shortcommit}%{?dist} Summary: ffms2 - Wrapper library around libffmpeg Group: Applications/System License: MIT license URL: https://github.com/FFMS/ffms2/ %undefine _disable_source_fetch Source0: https://github.com/FFMS/ffms2/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Packager: VU DUY HOANG %define debug_package %nil BuildRequires: zlib-devel, autoconf, m4, gettext, gettext-devel, automake, libtool BuildRequires: ffmpeg-devel BuildRequires: avisynthplus Provides: ffmsindex %description FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform wrapper library around libffmpeg, plus some additional components to deal with file formats libavformat has (or used to have) problems with. ############################################################################################################### #devel ############################################################################################################### %package devel Summary: Development tools for the l-smash Group: System Environment %description devel The libraries, header files and documentation for using l-smash ############################################################################################################### %prep %setup -q -n ffms2-%{commit} %build ./autogen.sh export CPPFLAGS="$CPPFLAGS -I/usr/include/avisynth" CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --libdir=%{_libdir} \ --enable-shared --disable-static --enable-avisynth make %{?_smp_mflags} %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %doc COPYING %{_bindir}/ffmsindex %{_libdir}/libffms2.so.5 %{_libdir}/libffms2.so.5.0.0 %files devel /usr/include/ffms.h /usr/include/ffmscompat.h %{_libdir}/libffms2.la %{_libdir}/libffms2.so %{_libdir}/pkgconfig/ffms2.pc /usr/share/doc/ffms2/ffms2-api.md /usr/share/doc/ffms2/ffms2-changelog.md