[golang-googlecode-net/el6] exclusive arch for el6+, add check
Lokesh Mandvekar
lsm5 at fedoraproject.org
Fri Jan 17 20:42:12 UTC 2014
commit 370b18e805c4aee8d74f4b48e3b262cc0f17db2c
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date: Fri Jan 17 15:18:52 2014 -0500
exclusive arch for el6+, add check
Signed-off-by: Lokesh Mandvekar <lsm5 at redhat.com>
golang-googlecode-net.spec | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/golang-googlecode-net.spec b/golang-googlecode-net.spec
index da5dafc..ef6af20 100644
--- a/golang-googlecode-net.spec
+++ b/golang-googlecode-net.spec
@@ -6,12 +6,12 @@
Name: golang-googlecode-net
Version: 0
-Release: 0.12.hg%{shortrev}%{?dist}
+Release: 0.13.hg%{shortrev}%{?dist}
Summary: Supplementary Go networking libraries
License: BSD
URL: http://%{import_path}
Source0: https://net.go.googlecode.com/archive/%{rev}.zip
-%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+%if 0%{?fedora} >= 19
BuildArch: noarch
%else
ExclusiveArch: %{ix86} x86_64 %{arm}
@@ -21,6 +21,7 @@ ExclusiveArch: %{ix86} x86_64 %{arm}
%{summary}
%package devel
+BuildRequires: golang
Requires: golang
Summary: Supplementary Go networking libraries
Provides: golang(%{import_path}) = %{version}-%{release}
@@ -55,6 +56,17 @@ for d in dict html idna ipv4 ipv6 proxy publicsuffix spdy websocket; do
cp -av $d %{buildroot}/%{gopath}/src/%{import_path}/
done
+%check
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/html
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/html/atom
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/idna
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/ipv4
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/ipv6
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/proxy
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/publicsuffix
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/spdy
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/websocket
+
%files devel
%defattr(-,root,root,-)
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS README
@@ -93,6 +105,10 @@ done
%{gopath}/src/%{import_path}/websocket/*.go
%changelog
+* Fri Jan 17 2014 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.13.hg84a4013f96e0
+- golang exclusivearch for el6+
+- add check
+
* Fri Jan 17 2014 Lokesh Mandvekar <lsm5 at redhat.com> 0-0.12.hg84a4013f96e0
- revert golang >= 1.2 version requirement
More information about the scm-commits
mailing list