%define major 4 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d Name: ffmpegthumbnailer Version: 2.2.0 Release: %mkrel 5 Summary: Lightweight video thumbnailer License: GPLv2+ Group: Video/Utilities URL: https://github.com/dirkvdb/ffmpegthumbnailer Source0: https://github.com/dirkvdb/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2 BuildRequires: cmake BuildRequires: ffmpeg-devel BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libjpeg) %description This video thumbnailer 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. This thumbnailer was designed to be as fast and lightweight as possible. %package -n %{libname} Summary: Main library for %{name} Group: Video/Utilities Obsoletes: %{mklibname %{name} 2} %description -n %{libname} Main library for %{name}. %package -n %{develname} Summary: Development files for %{name} Group: Development/C++ Requires: %{libname} = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} Development files for %{name}. %prep %setup -q %build %cmake \ -DENABLE_STATIC:BOOL=OFF %cmake_build %install %cmake_install # we don't want these find %{buildroot} -name '*.la' -delete %files %doc AUTHORS ChangeLog README TODO %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %files -n %{libname} %{_libdir}/*.so.%{major} %{_libdir}/*.so.%{major}.* %files -n %{develname} %{_libdir}/*.so %{_includedir}/libffmpegthumbnailer/ %{_libdir}/pkgconfig/*.pc