commit 99c57cdcd3722f6c3bb8a662a415ed77583f0b6f Author: Jan Chaloupka jchaloup@redhat.com Date: Wed Oct 29 10:53:42 2014 +0100
First package for Fedora - resolves: #1158065
.gitignore | 1 + golang-github-stathat-go.spec | 60 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..adc435a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/go-01d012b.tar.gz diff --git a/golang-github-stathat-go.spec b/golang-github-stathat-go.spec new file mode 100644 index 0000000..a30da03 --- /dev/null +++ b/golang-github-stathat-go.spec @@ -0,0 +1,60 @@ +%global debug_package %{nil} +%global provider github +%global provider_tld com +%global project stathat +%global repo go +%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} +%global commit 01d012b9ee2ecc107cb28b6dd32d9019ed5c1d77 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: golang-%{provider}-%{project}-%{repo} +Version: 0 +Release: 0.1.git%{shortcommit}%{?dist} +Summary: Go package for reporting stat counts and values to StatHat +License: MIT +URL: https://%%7Bimport_path%7D +Source0: https://%%7Bimport_path%7D/archive/%%7Bcommit%7D/%%7Brepo%7D-%%7Bshortcommit... +%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 +# test suite contains author's login into StatHat and fails + +%files devel +%doc README.md LICENSE +%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} +%dir %{gopath}/src/%{import_path}/ +%{gopath}/src/%{import_path}/*.go + +%changelog +* Mon Oct 27 2014 jchaloup jchaloup@redhat.com - 0-0.1.git01d012b +- First package for Fedora + resolves: #1158065 + diff --git a/sources b/sources index e69de29..3c8f431 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ce7e087096d439c5ff90e85c83b8ef15 go-01d012b.tar.gz
golang@lists.fedoraproject.org