%global commit 59bf23181b7fd61471ea567c8a57dbdd36fca753 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20170704 # For rpmdev-bumpspec %global baserelease 1 %define service recompress Name: obs-service-%{service} Version: 0.3.1 Release: %{baserelease}%{?commitdate:.git%{commitdate}.%{shortcommit}}%{?dist} Summary: An OBS source service: Recompress files License: GPLv2+ URL: https://github.com/openSUSE/obs-service-%{service} Source: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Requires: bzip2 Requires: gzip Requires: xz BuildArch: noarch %description This is a source service for openSUSE Build Service. It supports to compress, uncompress or recompress files from or to none : No Compression gz : Gzip Compression bz2 : Bzip2 Compression xz : XZ Compression %prep %autosetup -n %{name}-%{commit} -p1 %build # Nothing to build %install %make_install %files # In lieu of a proper license file: https://github.com/openSUSE/obs-service-recompress/issues/13 %doc README.md %license debian/copyright %dir %{_prefix}/lib/obs %{_prefix}/lib/obs/service %changelog * Fri Dec 27 2019 Neal Gompa - 0.3.1-1.git20170704.59bf231 - Initial packaging