commit 35bd19aa170d146717018e242fc63b613fc0ff71
Author: Jan Chaloupka <jchal...@redhat.com>
Date:   Fri Feb 6 14:35:16 2015 +0100

    Bump to upstream 71586c3cf98f806af322c5a361660eb046e00501
    - Repo moved to github, changing spec file header and globals

 .gitignore                 |    2 +-
 golang-googlecode-net.spec |   53 ++++++++++++++++++++++++-------------------
 sources                    |    2 +-
 3 files changed, 32 insertions(+), 25 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 8214812..1baa2da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/937a34c9de13c766c814510f76bca091dee06028.tar.gz
+/net-71586c3.tar.gz
diff --git a/golang-googlecode-net.spec b/golang-googlecode-net.spec
index accc0d2..a5c0652 100644
--- a/golang-googlecode-net.spec
+++ b/golang-googlecode-net.spec
@@ -1,12 +1,11 @@
 %global debug_package   %{nil}
 %global provider_tld    com
-%global provider        google
-%global provider_prefix code
-%global project         p
+%global provider        github
+%global project         golang
 %global repo            net
-%global import_path     
%{provider_prefix}.%{provider}.%{provider_tld}/%{project}/go.%{repo}
-%global rev             937a34c9de13c766c814510f76bca091dee06028
-%global shortrev        %(r=%{rev}; echo ${r:0:12})
+%global import_path     code.google.com/p/go.net
+%global commit          71586c3cf98f806af322c5a361660eb046e00501
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
 
 %global x_provider      golang
 %global x_provider_tld  org
@@ -14,14 +13,18 @@
 %global x_import_path   %{x_provider}.%{x_provider_tld}/x/%{x_repo}
 %global x_name          golang-%{x_provider}%{x_provider_tld}-%{repo}
 
-Name:       golang-%{provider}%{provider_prefix}-%{repo}
+Name:       golang-googlecode-net
 Version:    0
-Release:    0.18.hg%{shortrev}%{?dist}
+Release:    0.19.git%{shortcommit}%{?dist}
 Summary:    Supplementary Go networking libraries
 License:    BSD
 URL:        http://%{import_path}
-Source0:    
https://%{repo}.go.%{provider}%{provider_prefix}.%{provider_tld}/archive/%{rev}.tar.gz
-BuildArch:  noarch
+Source0:    
https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch:      noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
 
 %description
 %{summary}
@@ -93,7 +96,7 @@ which use the supplementary Go text libraries with 
golang.org/x/ imports.
 
 %prep
 
-%setup -qn net.go-%{shortrev}
+%setup -q -n %{repo}-%{commit}
 
 %build
 
@@ -111,18 +114,18 @@ sed -i 
's/"golang\.org\/x\//"code\.google\.com\/p\/go\./g' \
 
 %check
 # context, icmp failing
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/spdy
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/webdav
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/ipv4
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/html
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/html/charset
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/html/atom
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/idna
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/netutil
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/ipv6
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/websocket
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/publicsuffix
-GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}/proxy
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/spdy
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/webdav
+#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/ipv4
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html
+#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html/charset
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/html/atom
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/idna
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/netutil
+#GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/ipv6
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/websocket
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/publicsuffix
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}/proxy
 
 rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/testdata
 rm -rf %{buildroot}%{gopath}/src/%{import_path}/html/charset/testdata
@@ -138,6 +141,10 @@ rm -rf 
%{buildroot}%{gopath}/src/%{x_import_path}/html/charset/testdata
 %{gopath}/src/%{x_import_path}
 
 %changelog
+* Fri Feb 06 2015 jchaloup <jchal...@redhat.com> - 0-0.19.git71586c3
+- Bump to upstream 71586c3cf98f806af322c5a361660eb046e00501
+- Repo moved to github, changing spec file header and globals
+
 * Tue Dec 09 2014 jchaloup <jchal...@redhat.com> - 0-0.18.hg937a34c9de13
 - Update to the latest commit 937a34c9de13c766c814510f76bca091dee06028
   related: #1009967
diff --git a/sources b/sources
index 85de557..dd0a03e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f2f3a1487d8fcbbefb5824d924d55305  
937a34c9de13c766c814510f76bca091dee06028.tar.gz
+ccc4eb5631b6e21a018691229f665838  net-71586c3.tar.gz
_______________________________________________
golang mailing list
golang@lists.fedoraproject.org
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to