%global commit 9b92950d49d7939f90ba7413deb7ec6b392b2054 %global codate 20180710 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: webp-pixbuf-loader Version: 0.0.1 Release: 3.%{codate}git%{shortcommit}%{?dist} Summary: WebP image loader for GTK+ applications License: LGPLv2+ URL: https://github.com/aruiz/webp-pixbuf-loader Source0: https://github.com/aruiz/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Source1: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt BuildRequires: cmake BuildRequires: gcc BuildRequires: gdk-pixbuf2-devel BuildRequires: libwebp-devel Requires: gdk-pixbuf2%{?_isa} %description webp-pixbuf-loader contains a plugin to load WebP images in GTK+ applications %prep %setup -q -n %{name}-%{commit} %build %cmake make %{?_smp_mflags} %install install -p -D -m 0755 libpixbufloader-webp.so %{buildroot}`pkgconf --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0`/libpixbufloader-webp.so cp -av %{SOURCE1} COPYING %files %license COPYING %{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-webp.so %changelog * Tue Jul 10 2018 Yanko Kaneti - 0.0.1-3.20180710git9b92950 - Initial packaging - Address review commments (#1599839) - Add license text from gnu.org