%global commit 9167798996a4011192dccdeaa85ed76b8432ef2d %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapinfo 20190913.%{shortcommit} Name: gologpp Version: 0 Release: 1.%{snapinfo}%{?dist} Summary: An implementation-independent GOLOG language License: GPLv2+ URL: https://github.com/MASKOR/gologpp Source0: https://github.com/MASKOR/gologpp/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: boost-devel BuildRequires: gcc-c++ BuildRequires: cmake %description An implementation-independent GOLOG language. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{name}-%{commit} %build mkdir -p build cd build %cmake -DBUILD_TESTS=OFF .. %make_build cd - %install cd build %make_install cd - %files %{_libdir}/libgolog++.so.0* %{_libdir}/libparsegolog++.so.0* %files devel %{_includedir}/golog++ %{_libdir}/libgolog++.so %{_libdir}/libparsegolog++.so %{_libdir}/pkgconfig/golog++.pc %{_libdir}/pkgconfig/parsegolog++.pc %changelog * Fri Sep 13 2019 Till Hofmann - 0-1.20190913.9167798 - Initial package