Name: mtn Version: 3.4.2 Release: 1%{?dist} Summary: Movie Thumbnailer (mtn) Group: Applications/System License: MIT license URL: https://gitlab.com/movie_thumbnailer/mtn/ %undefine _disable_source_fetch #need something fixed for latest ffmpeg Source0: https://gitlab.com/movie_thumbnailer/mtn/-/archive/v3.4.2/mtn-v3.4.2.tar.gz Packager: VU DUY HOANG %define debug_package %nil BuildRequires: gd-devel BuildRequires: gcc BuildRequires: ffmpeg-devel Provides: %{name} = %{version} %description Movie Thumbnailer (mtn) saves thumbnails (screenshots) of movie or video files to image files (jpg, png). It uses FFmpeg's libavcodec as its engine, so it supports all popular codecs, e.g. h.265/hevc, h.264, mpeg1, mpeg2, mp4, vc1, wmv, xvid, divx... mtn was originaly developed by tuit (tuitfun); though most of its magic is actually done by FFmpeg libraries %prep %setup -q -n mtn-v3.4.2 %build cd src make USER_CFLAGS=-DMTN_DEF_FONTNAME=\\\"/usr/share/fonts/dejavu/DejaVuSans.ttf\\\" %{?_smp_mflags} %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT cd src make DESTDIR=$RPM_BUILD_ROOT install rm $RPM_BUILD_ROOT/usr/local/share/doc/mtn/LICENSE #%post #if [ $1 == 1 ];then #installed #fi #%postun #if [ $1 == 0 ];then #uninstalled #fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %doc README.md changelog.txt %license LICENSE /usr/local/bin/mtn /usr/local/share/doc/mtn/img/10000_bc-tlr1_h480_D.jpg /usr/local/share/doc/mtn/img/10000_bc-tlr1_h480_V.jpg /usr/local/share/doc/mtn/img/10000_bc-tlr1_h480_s.jpg /usr/local/share/doc/mtn/img/37084131_b.5_s.jpg /usr/local/share/doc/mtn/img/37084131_b2_s.jpg /usr/local/share/doc/mtn/img/40660182_h1.jpg /usr/local/share/doc/mtn/img/40660182_h100.jpg /usr/local/share/doc/mtn/img/gt_ps_premiere_2007_FFFFF00_10.jpg /usr/local/share/doc/mtn/img/gt_ps_premiere_2007_FFFFF00_8_comicbd.ttf_ff0000_00ff00_12.jpg /usr/local/share/doc/mtn/img/gt_ps_premiere_2007_L1_3.jpg /usr/local/share/doc/mtn/img/supremecommander_e32006_s.jpg /usr/local/share/doc/mtn/img/unicode_filename.jpg /usr/local/share/doc/mtn/index.en.html /usr/local/share/doc/mtn/todo.txt /usr/local/share/doc/mtn/usage.en.html /usr/local/share/man/man1/mtn.1