commit cbaf5dea02d5a25033effbdc40165704dc003905 Author: Lokesh Mandvekar lsm5@redhat.com Date: Fri Jan 17 14:49:12 2014 -0500
exclusivearch for el6+, add check
Signed-off-by: Lokesh Mandvekar lsm5@redhat.com
golang-github-gorilla-context.spec | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) --- diff --git a/golang-github-gorilla-context.spec b/golang-github-gorilla-context.spec index c31f4d9..aa9502d 100644 --- a/golang-github-gorilla-context.spec +++ b/golang-github-gorilla-context.spec @@ -6,12 +6,12 @@
Name: golang-github-gorilla-context Version: 0 -Release: 0.21.git%{shortcommit}%{?dist} +Release: 0.22.git%{shortcommit}%{?dist} Summary: A golang registry for global request variables License: BSD URL: http://www.gorillatoolkit.org/pkg/context Source0: https://%%7Bimport_path%7D/archive/%%7Bcommit%7D/context-%%7Bshortcommit%7D.... -%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7 +%if 0%{?fedora} >= 19 BuildArch: noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} @@ -26,6 +26,7 @@ sessions values to be saved at the end of a request. There are several other common uses.
%package devel +BuildRequires: golang Requires: golang Summary: A golang registry for global request variables Provides: golang(%{import_path}) = %{version}-%{release} @@ -50,6 +51,9 @@ which use gorilla/context. install -d %{buildroot}/%{gopath}/src/%{import_path} cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+%check +GOPATH=%{buildroot}/%{gopath} go test %{import_path} + %files devel %defattr(-,root,root,-) %doc LICENSE README.md @@ -61,6 +65,10 @@ cp -av *.go %{buildroot}/%{gopath}/src/%{import_path} %{gopath}/src/%{import_path}/*.go
%changelog +* Wed Jan 15 2014 Lokesh Mandvekar lsm5@redhat.com 0-0.22.git708054d +- golang exclusivearch for el6+ +- add check + * Wed Jan 15 2014 Lokesh Mandvekar lsm5@redhat.com 0-0.21.git708054d - revert golang 1.2 requirement