# no new tag release for long time %global forgeurl https://github.com/dirkvdb/ffmpegthumbnailer %global date 20240105 %global commit 1b5a77983240bcf00a4ef7702c07bcd8f4e5f97c %global shortcommit %(c=%{commit}; echo ${c:0:7}) %forgemeta Name: ffmpegthumbnailer Version: 2.2.2 Release: %autorelease Summary: Lightweight video thumbnailer that can be used by file managers License: GPL-2.0-or-later URL: %{forgeurl} Source0: %{forgesource} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: extra-cmake-modules BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(libavfilter) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) Requires: %{name}-libs%{?isa} = %{version}-%{release} %description FFmpegthumbnailer is a lightweight video thumbnailer that can be used by file managers to create thumbnails for your video files. The thumbnailer uses ffmpeg to decode frames from the video files, so supported videoformats depend on the configuration flags of ffmpeg. %package libs Summary: Library for %{name} %description libs This package contains the library for %{name}. %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?isa} = %{version}-%{release} %description devel This package contains the development files for %{name}. %prep %forgeautosetup -p1 %build %cmake \ -GNinja \ -DENABLE_GIO=ON \ -DENABLE_THUMBNAILER=ON \ %cmake_build %install %cmake_install %check %ctest %files %license COPYING %doc README %{_bindir}/ffmpegthumbnailer %{_mandir}/man1/ffmpegthumbnailer.1* %dir %{_datadir}/thumbnailers %{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer %files libs %license COPYING %{_libdir}/libffmpegthumbnailer.so.4* %files devel %{_includedir}/libffmpegthumbnailer/ %{_libdir}/libffmpegthumbnailer.so %{_libdir}/pkgconfig/libffmpegthumbnailer.pc %changelog %autochangelog