From 80f82260e802bb4cc30ef9351172c229bab9249c Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Jan 17 2014 21:31:31 +0000 Subject: exclusivearch for el6+, add check Signed-off-by: Lokesh Mandvekar --- 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 0-0.12.gite718e93 +- exclusivearch for el6+ +- add check + * Fri Jan 17 2014 Lokesh Mandvekar 0-0.11.gite718e93 - revert golang >= 1.2 version requirement