%global commit0 be888ee7d1d87d892b2fdef00045061c3d8183e7 %global commitdate 20130717 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: xfce-polkit Version: 0 Release: 0.1.%{commitdate}git%{shortcommit0}%{?dist} Summary: Simple PolicyKit authentication agent for Xfce License: GPLv2+ URL: https://github.com/ncopa/%{name} Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz BuildRequires: automake BuildRequires: libxfce4ui-devel polkit-devel %description %{summary}. %prep %setup -qn %{name}-%{commit0} aclocal autoconf automake --add-missing %build %configure make %{?_smp_mflags} %install %make_install %files %license LICENSE %doc AUTHORS README.md # do not distribute empty documentation files #doc ChangeLog NEWS %{_libexecdir}/%{name} %changelog * Mon Jul 27 2015 Raphael Groner - 0-0.1.20130717gitbe888ee - initial