[golang-github-gorilla-context] exclusivearch for el6+, add check
Lokesh Mandvekar
lsm5 at fedoraproject.org
Fri Jan 17 19:48:59 UTC 2014
commit 4a7be2e9c4f3d0881688dd808493589e03edcadc
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date: Fri Jan 17 14:49:12 2014 -0500
exclusivearch for el6+, add check
Signed-off-by: Lokesh Mandvekar <lsm5 at 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://%{import_path}/archive/%{commit}/context-%{shortcommit}.tar.gz
-%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 at redhat.com> 0-0.22.git708054d
+- golang exclusivearch for el6+
+- add check
+
* Wed Jan 15 2014 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.21.git708054d
- revert golang 1.2 requirement
More information about the scm-commits
mailing list