[golang-github-gorilla-mux] exclusivearch for el6+, add check

Lokesh Mandvekar lsm5 at fedoraproject.org
Fri Jan 17 21:31:17 UTC 2014


commit 80f82260e802bb4cc30ef9351172c229bab9249c
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date:   Fri Jan 17 16:31:31 2014 -0500

    exclusivearch for el6+, add check
    
    Signed-off-by: Lokesh Mandvekar <lsm5 at redhat.com>

 golang-github-gorilla-mux.spec |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/golang-github-gorilla-mux.spec b/golang-github-gorilla-mux.spec
index f6b41b0..4581e20 100644
--- a/golang-github-gorilla-mux.spec
+++ b/golang-github-gorilla-mux.spec
@@ -6,12 +6,12 @@
 
 Name:           golang-github-gorilla-mux
 Version:        0
-Release:        0.11.git%{shortcommit}%{?dist}
+Release:        0.12.git%{shortcommit}%{?dist}
 Summary:        A powerful URL router and dispatcher for golang
 License:        BSD
 URL:            http://www.gorillatoolkit.org/pkg/mux
 Source0:        https://github.com/gorilla/mux/archive/%{commit}/mux-%{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,8 @@ registered routes and calls a handler for the route that matches the URL or
 other conditions.
 
 %package devel
+BuildRequires:  golang
+BuildRequires:  golang(github.com/gorilla/context)
 Requires:       golang
 Requires:       golang(github.com/gorilla/context)
 Summary:        A powerful URL router and dispatcher for golang
@@ -42,7 +44,6 @@ other conditions.
 This package contains library source intended for building other packages
 which use gorilla/mux.
 
-
 %prep
 %setup -n %setup -n mux-%{commit}
 
@@ -52,6 +53,8 @@ which use gorilla/mux.
 install -d %{buildroot}/%{gopath}/src/%{import_path}
 cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
 
+%check
+GOPATH=%{gopath}:%{buildroot}/%{gopath} go test %{import_path}
 
 %files devel
 %defattr(-,root,root,-)
@@ -64,6 +67,10 @@ cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
 %{gopath}/src/%{import_path}/*.go
 
 %changelog
+* Fri Jan 17 2014 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.12.gite718e93
+- exclusivearch for el6+
+- add check
+
 * Fri Jan 17 2014 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.11.gite718e93
 - revert golang >= 1.2 version requirement
 


More information about the scm-commits mailing list