%global debug_package %{nil} %global import_path github.com/spacemonkeygo/spacelog %global gopath %{_datadir}/gocode %global commit da2b15a37cbe55c28dafda55b3e331666e7dd22d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: golang-github-spacemonkeygo-spacelog Version: 0 Release: 0.1.git%{shortcommit}%{?dist} Summary: Designed to help you build a flexible logging system License: ASL 2.0 URL: http://%{import_path} Source0: https://%{import_path}/archive/%{commit}/spacelog-%{shortcommit}.tar.gz BuildRequires: golang Requires: golang BuildArch: noarch %if 0%{?fedora} < 19 && 0%{?rhel} < 7 ExclusiveArch: %{ix86} x86_64 %{arm} %endif %description Package spacelog is a collection of interface lego bricks designed to help you build a flexible logging system. Spacelog is loosely inspired by the Python logging library. %prep %setup -q -n spacelog-%{commit} %build %install install -d -p %{buildroot}/%{gopath}/src/%{import_path}/setup cp -av *.go %{buildroot}/%{gopath}/src/%{import_path} cp -av setup/setup.go %{buildroot}/%{gopath}/src/%{import_path}/setup/ %files %doc LICENSE README.md %{gopath}/src/%{import_path}/*.go %{gopath}/src/%{import_path}/setup/*.go %changelog * Wed May 14 2014 Robert Kuska 0-0.1.gitda2b15a - Initial package