From 8e93f1049e8a4cc3b61225f5169392202698d007 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Jan 06 2015 07:17:47 +0000 Subject: First package for Fedora - resolves: #1162103 --- diff --git a/.gitignore b/.gitignore index e69de29..caac4f1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/goback-a49ca3c.tar.gz diff --git a/golang-github-dgnorton-goback.spec b/golang-github-dgnorton-goback.spec new file mode 100644 index 0000000..b80b70a --- /dev/null +++ b/golang-github-dgnorton-goback.spec @@ -0,0 +1,58 @@ +%global debug_package %{nil} +%global provider github +%global provider_tld com +%global project dgnorton +%global repo goback +%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} +%global commit a49ca3c0a18f50ae0b8a247e012db4385e516cf4 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: golang-%{provider}-%{project}-%{repo} +Version: 0 +Release: 0.1.git%{shortcommit}%{?dist} +Summary: A simple non-database related transaction library +License: MIT +URL: https://%{import_path} +Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz +%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7 +BuildArch: noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} +%endif + +%description +%{summary} + +%package devel +BuildRequires: golang >= 1.2.1-3 +Requires: golang >= 1.2.1-3 +Summary: %{summary} +Provides: golang(%{import_path}) = %{version}-%{release} + +%description devel +%{summary} + +This package contains library source intended for +building other packages which use %{project}/%{repo}. + +%prep +%setup -q -n %{repo}-%{commit} + +%build + +%install +install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ +cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/ + +%check +GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path} + +%files devel +%doc README.md AUTHORS LICENSE +%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} +%{gopath}/src/%{import_path} + +%changelog +* Mon Jan 05 2015 jchaloup - 0-0.1.gita49ca3c +- First package for Fedora + resolves: #1162103 diff --git a/sources b/sources index e69de29..37d20c0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +76494f8b260574a442b41b4ce5cccb28 goback-a49ca3c.tar.gz