commit go-httplib.go for openSUSE:Factory

2015-03-23 Thread h_root
Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory 
checked in at 2015-03-23 12:18:39

Comparing /work/SRC/openSUSE:Factory/go-httplib.go (Old)
 and  /work/SRC/openSUSE:Factory/.go-httplib.go.new (New)


Package is "go-httplib.go"

Changes:

--- /work/SRC/openSUSE:Factory/go-httplib.go/go-httplib.go.changes  
2013-08-13 15:47:14.0 +0200
+++ /work/SRC/openSUSE:Factory/.go-httplib.go.new/go-httplib.go.changes 
2015-03-23 12:18:40.0 +0100
@@ -1,0 +2,9 @@
+Sat Mar 21 07:24:14 UTC 2015 - i...@marguerite.su
+
+- update version 0.0.0+git20120409.3cbb2f7
+- drop httplib.go-weekly-fixes.patch
+  * upstream contains this fix
+- import changed to github.com/hoisie/httplib
+- remove go_disable_brp_strip_static_archive usage
+
+---

Old:

  httplib.go-0.0.0+git20111213.tar.bz2
  httplib.go-weekly-fixes.patch

New:

  _service
  httplib-0.0.0+git20120409.3cbb2f7.tar.xz



Other differences:
--
++ go-httplib.go.spec ++
--- /var/tmp/diff_new_pack.M4HV8A/_old  2015-03-23 12:18:41.0 +0100
+++ /var/tmp/diff_new_pack.M4HV8A/_new  2015-03-23 12:18:41.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package go-httplib.go
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2011 Sascha Peilicke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,24 +17,20 @@
 #
 
 
-
 Name:   go-httplib.go
-Version:0.0.0+git20111213
+Version:0.0.0+git20120409.3cbb2f7
 Release:0
 Summary:A simple, low-level http library for Go
 License:MIT
 Group:  Development/Languages/Other
-Url:https://github.com/hoisie/httplib.go
-Source0:httplib.go-%{version}.tar.bz2
-Patch0: httplib.go-weekly-fixes.patch
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Url:https://github.com/hoisie/httplib
+Source: httplib-%{version}.tar.xz
 BuildRequires:  go-devel
-ExclusiveArch:  %ix86 x86_64 %arm
-%if 0%{?suse_version} >= 1100
-Recommends: go-httplib.go-doc
-%endif
+BuildRequires: xz
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %{go_provides}
 %{go_requires}
+%{go_recommends}
 
 %description
 httplib.go is a simple extension of Go's http client that provides keep-alive
@@ -46,30 +42,21 @@
 data := ioutil.ReadAll( resp.Body )
 println(string(data))
 
-%package doc
-Summary:API documenation
-Group:  Documentation/Other
-Requires:   %{name} = %{version}
-
-%description doc
-API, examples and documentation.
+%godoc_package
 
 %prep
-%setup -q -n httplib.go
-%patch0 -p1
+%setup -q -n httplib-%{version}
 
 %build
-%goprep  github.com/hoisie/httplib.go
-%gobuild /
+%goprep github.com/hoisie/httplib
+%gobuild
 
 %install
-%{go_disable_brp_strip_static_archive}
-
 %goinstall
 %godoc
 
 %check
-%gotest github.com/hoisie/httplib.go
+%gotest github.com/hoisie/httplib
 
 %files
 %defattr(-,root,root,-)

++ _service ++

  
https://github.com/hoisie/httplib.git
git
.git
0.0.0+git%cd.%h
master
  
  
httplib-*.tar
xz
  
  
httplib
  

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit go-httplib.go for openSUSE:Factory

2013-08-13 Thread h_root
Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory 
checked in at 2013-08-13 15:47:12

Comparing /work/SRC/openSUSE:Factory/go-httplib.go (Old)
 and  /work/SRC/openSUSE:Factory/.go-httplib.go.new (New)


Package is "go-httplib.go"

Changes:

--- /work/SRC/openSUSE:Factory/go-httplib.go/go-httplib.go.changes  
2012-06-12 07:08:49.0 +0200
+++ /work/SRC/openSUSE:Factory/.go-httplib.go.new/go-httplib.go.changes 
2013-08-13 15:47:14.0 +0200
@@ -1,0 +2,5 @@
+Tue Aug  6 00:47:14 CEST 2013 - r...@suse.de
+
+- use ExclusiveArch to limit build to the same architectures as go 
+
+---



Other differences:
--
++ go-httplib.go.spec ++
--- /var/tmp/diff_new_pack.2mthNv/_old  2013-08-13 15:47:16.0 +0200
+++ /var/tmp/diff_new_pack.2mthNv/_new  2013-08-13 15:47:16.0 +0200
@@ -29,10 +29,12 @@
 Patch0: httplib.go-weekly-fixes.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  go-devel
+ExclusiveArch:  %ix86 x86_64 %arm
+%if 0%{?suse_version} >= 1100
 Recommends: go-httplib.go-doc
+%endif
 %{go_provides}
 %{go_requires}
-%{go_disable_brp_strip_static_archive}
 
 %description
 httplib.go is a simple extension of Go's http client that provides keep-alive
@@ -61,6 +63,8 @@
 %gobuild /
 
 %install
+%{go_disable_brp_strip_static_archive}
+
 %goinstall
 %godoc
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit go-httplib.go for openSUSE:Factory

2012-06-11 Thread h_root
Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory 
checked in at 2012-06-12 07:08:43

Comparing /work/SRC/openSUSE:Factory/go-httplib.go (Old)
 and  /work/SRC/openSUSE:Factory/.go-httplib.go.new (New)


Package is "go-httplib.go", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/go-httplib.go/go-httplib.go.changes  
2012-03-08 19:43:32.0 +0100
+++ /work/SRC/openSUSE:Factory/.go-httplib.go.new/go-httplib.go.changes 
2012-06-12 07:08:49.0 +0200
@@ -1,0 +2,6 @@
+Mon Jun 11 10:39:54 UTC 2012 - gra...@andtech.eu
+
+- Update specfile to use new package locaitons
+- Add documentation sub package
+
+---



Other differences:
--
++ go-httplib.go.spec ++
--- /var/tmp/diff_new_pack.G5hDFj/_old  2012-06-12 07:08:49.0 +0200
+++ /var/tmp/diff_new_pack.G5hDFj/_new  2012-06-12 07:08:49.0 +0200
@@ -29,6 +29,7 @@
 Patch0: httplib.go-weekly-fixes.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  go-devel
+Recommends: go-httplib.go-doc
 %{go_provides}
 %{go_requires}
 %{go_disable_brp_strip_static_archive}
@@ -43,6 +44,14 @@
 data := ioutil.ReadAll( resp.Body )
 println(string(data))
 
+%package doc
+Summary:API documenation
+Group:  Documentation/Other
+Requires:   %{name} = %{version}
+
+%description doc
+API, examples and documentation.
+
 %prep
 %setup -q -n httplib.go
 %patch0 -p1
@@ -53,6 +62,7 @@
 
 %install
 %goinstall
+%godoc
 
 %check
 %gotest github.com/hoisie/httplib.go
@@ -60,6 +70,10 @@
 %files
 %defattr(-,root,root,-)
 %doc Readme.md LICENSE
-%{go_sitearch}/*
+%{go_contribdir}/*
+
+%files doc
+%defattr(-,root,root,-)
+%{go_contribsrcdir}/*
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit go-httplib.go for openSUSE:Factory

2012-03-08 Thread h_root
Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory 
checked in at 2012-03-08 19:43:26

Comparing /work/SRC/openSUSE:Factory/go-httplib.go (Old)
 and  /work/SRC/openSUSE:Factory/.go-httplib.go.new (New)


Package is "go-httplib.go", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/go-httplib.go/go-httplib.go.changes  
2012-02-14 11:24:40.0 +0100
+++ /work/SRC/openSUSE:Factory/.go-httplib.go.new/go-httplib.go.changes 
2012-03-08 19:43:32.0 +0100
@@ -1,0 +2,5 @@
+Wed Mar  7 21:30:23 UTC 2012 - gra...@andtech.eu
+
+- update spec file to use new Go rpm macros
+
+---



Other differences:
--
++ go-httplib.go.spec ++
--- /var/tmp/diff_new_pack.c542ma/_old  2012-03-08 19:43:34.0 +0100
+++ /var/tmp/diff_new_pack.c542ma/_new  2012-03-08 19:43:34.0 +0100
@@ -48,9 +48,11 @@
 %patch0 -p1
 
 %build
+%goprep  github.com/hoisie/httplib.go
+%gobuild /
 
 %install
-%goinstall github.com/hoisie/httplib.go
+%goinstall
 
 %check
 %gotest github.com/hoisie/httplib.go

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit go-httplib.go for openSUSE:Factory

2012-02-14 Thread h_root
Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory 
checked in at 2012-02-14 11:24:39

Comparing /work/SRC/openSUSE:Factory/go-httplib.go (Old)
 and  /work/SRC/openSUSE:Factory/.go-httplib.go.new (New)


Package is "go-httplib.go", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/go-httplib.go/go-httplib.go.changes  
2012-01-19 09:42:13.0 +0100
+++ /work/SRC/openSUSE:Factory/.go-httplib.go.new/go-httplib.go.changes 
2012-02-14 11:24:40.0 +0100
@@ -1,0 +2,5 @@
+Fri Feb  3 06:39:44 UTC 2012 - gra...@andtech.eu
+
+- use go install instead of gomake
+
+---



Other differences:
--
++ go-httplib.go.spec ++
--- /var/tmp/diff_new_pack.BGL9MK/_old  2012-02-14 11:24:40.0 +0100
+++ /var/tmp/diff_new_pack.BGL9MK/_new  2012-02-14 11:24:40.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package go-httplib.go
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2011 Sascha Peilicke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,6 +17,7 @@
 #
 
 
+
 Name:   go-httplib.go
 Version:0.0.0+git20111213
 Release:0
@@ -47,11 +48,12 @@
 %patch0 -p1
 
 %build
+
 %install
-%{go_make_install}
+%goinstall github.com/hoisie/httplib.go
 
 %check
-%{go_make_test}
+%gotest github.com/hoisie/httplib.go
 
 %files
 %defattr(-,root,root,-)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit go-httplib.go for openSUSE:Factory

2012-01-19 Thread h_root
Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory 
checked in at 2012-01-19 09:42:11

Comparing /work/SRC/openSUSE:Factory/go-httplib.go (Old)
 and  /work/SRC/openSUSE:Factory/.go-httplib.go.new (New)


Package is "go-httplib.go", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/go-httplib.go/go-httplib.go.changes  
2011-10-06 17:21:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.go-httplib.go.new/go-httplib.go.changes 
2012-01-19 09:42:13.0 +0100
@@ -1,0 +2,5 @@
+Tue Dec 13 14:33:48 UTC 2011 - sasc...@suse.de
+
+- Patch to build against weekly.2011-12-02
+
+---
@@ -10 +15 @@
-- patch to build against weekly 2011.06.23
+- Patch to build against weekly.2011-06-23

Old:

  httplib.go-0.0.0+git20110915.tar.bz2
  rpmlintrc

New:

  httplib.go-0.0.0+git20111213.tar.bz2
  httplib.go-weekly-fixes.patch



Other differences:
--
++ go-httplib.go.spec ++
--- /var/tmp/diff_new_pack.F7Hgwl/_old  2012-01-19 09:42:14.0 +0100
+++ /var/tmp/diff_new_pack.F7Hgwl/_new  2012-01-19 09:42:14.0 +0100
@@ -2,7 +2,7 @@
 # spec file for package go-httplib.go
 #
 # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
-# Copyright (c), 2011, Sascha Peilicke 
+# Copyright (c) 2011 Sascha Peilicke 
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,15 @@
 #
 
 
-
 Name:   go-httplib.go
-Version:0.0.0+git20110915
-Release:1
+Version:0.0.0+git20111213
+Release:0
 Summary:A simple, low-level http library for Go
-Group:  Development/Languages/Other
 License:MIT
+Group:  Development/Languages/Other
 Url:https://github.com/hoisie/httplib.go
 Source0:httplib.go-%{version}.tar.bz2
+Patch0: httplib.go-weekly-fixes.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  go-devel
 %{go_provides}
@@ -44,18 +44,15 @@
 
 %prep
 %setup -q -n httplib.go
+%patch0 -p1
 
 %build
-
 %install
 %{go_make_install}
 
 %check
 %{go_make_test}
 
-%clean
-rm -rf %{buildroot}
-
 %files
 %defattr(-,root,root,-)
 %doc Readme.md LICENSE

++ httplib.go-0.0.0+git20110915.tar.bz2 -> 
httplib.go-0.0.0+git20111213.tar.bz2 ++

++ httplib.go-weekly-fixes.patch ++
diff -ru a/httplib.go b/httplib.go
--- a/httplib.go2011-12-13 15:24:59.776471311 +0100
+++ b/httplib.go2011-12-13 15:33:00.687482771 +0100
@@ -1,15 +1,16 @@
 package httplib
 
 import (
-"bytes"
-"crypto/tls"
-"http"
-"io"
-"io/ioutil"
-"net"
-"os"
-"strings"
-"url"
+   "bytes"
+   "crypto/tls"
+   "io"
+   "io/ioutil"
+   "net"
+   "net/http"
+   "net/http/httputil"
+   "net/url"
+   "os"
+   "strings"
 )
 
 var defaultUserAgent = "httplib.go"
@@ -17,239 +18,239 @@
 var debugprint = false
 
 type Client struct {
-conn*http.ClientConn
-lastURL *url.URL
+   conn*httputil.ClientConn
+   lastURL *url.URL
 }
 
 type nopCloser struct {
-io.Reader
+   io.Reader
 }
 
-func (nopCloser) Close() os.Error { return nil }
+func (nopCloser) Close() error { return nil }
 
 func getNopCloser(buf *bytes.Buffer) nopCloser {
-return nopCloser{buf}
+   return nopCloser{buf}
 }
 
 func hasPort(s string) bool { return strings.LastIndex(s, ":") > 
strings.LastIndex(s, "]") }
 
-func newConn(url *url.URL) (*http.ClientConn, os.Error) {
-addr := url.Host
-//just set the default scheme to http
-if url.Scheme == "" {
-url.Scheme = "http"
-}
-if !hasPort(addr) {
-addr += ":" + url.Scheme
-}
-var conn net.Conn
-var err os.Error
-if url.Scheme == "http" {
-conn, err = net.Dial("tcp", addr)
-if err != nil {
-return nil, err
-}
-} else { // https
-conn, err = tls.Dial("tcp", addr, nil)
-if err != nil {
-return nil, err
-}
-h := url.Host
-if hasPort(h) {
-h = h[0:strings.LastIndex(h, ":")]
-}
-if err := conn.(*tls.Conn).VerifyHostname(h); err != nil {
-return nil, err
-}
-}
-
-return http.NewClientConn(conn, nil), nil
-}
-
-func getResponse(rawUrl string, req *http.Request) (*http.ClientConn, 
*http.Response, os.Error) {
-url, err := url.Parse(rawUrl)
-if url.Scheme == "" {
-rawUrl = "http://"; + rawUrl
-url, err = url.Parse(rawUrl)
-}
-
-if err != nil {
-return nil, nil, err
-}
-req.URL = url
-if debugprint

commit go-httplib.go for openSUSE:Factory

2011-10-06 Thread h_root

Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory
checked in at Thu Oct 6 17:21:56 CEST 2011.




--- openSUSE:Factory/go-httplib.go/go-httplib.go.changes2011-09-23 
02:01:32.0 +0200
+++ /mounts/work_src_done/STABLE/go-httplib.go/go-httplib.go.changes
2011-10-06 14:57:58.0 +0200
@@ -1,0 +2,6 @@
+Thu Oct  6 12:56:40 UTC 2011 - gra...@andtech.eu
+
+- Synch with upstsream fixes for r60
+- add rpmlintrc (ELF strip/static binary warnings)
+
+---

calling whatdependson for head-i586


Old:

  httplib.go-0.0.0+git20110624.tar.bz2
  httplib.go-fix-for-weekly-2011.06.23.patch

New:

  httplib.go-0.0.0+git20110915.tar.bz2
  rpmlintrc



Other differences:
--
++ go-httplib.go.spec ++
--- /var/tmp/diff_new_pack.UzwfRL/_old  2011-10-06 17:21:42.0 +0200
+++ /var/tmp/diff_new_pack.UzwfRL/_new  2011-10-06 17:21:42.0 +0200
@@ -19,14 +19,13 @@
 
 
 Name:   go-httplib.go
-Version:0.0.0+git20110624
+Version:0.0.0+git20110915
 Release:1
 Summary:A simple, low-level http library for Go
 Group:  Development/Languages/Other
 License:MIT
 Url:https://github.com/hoisie/httplib.go
 Source0:httplib.go-%{version}.tar.bz2
-Patch0: httplib.go-fix-for-weekly-2011.06.23.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  go-devel
 %{go_provides}
@@ -45,15 +44,14 @@
 
 %prep
 %setup -q -n httplib.go
-%patch0 -p1
 
 %build
 
 %install
 %{go_make_install}
 
-#%%check
-#%%{go_make_test}
+%check
+%{go_make_test}
 
 %clean
 rm -rf %{buildroot}

++ httplib.go-0.0.0+git20110624.tar.bz2 -> 
httplib.go-0.0.0+git20110915.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/httplib.go/Readme.md new/httplib.go/Readme.md
--- old/httplib.go/Readme.md2011-06-24 14:18:00.0 +0200
+++ new/httplib.go/Readme.md2011-10-06 14:52:13.0 +0200
@@ -1,6 +1,6 @@
 
 ## About
-httplib.go is a simple extension of Go's http client that provides keep-alive 
connections and generic requests.
+httplib.go is a simple extension of Go's http client that provides a nice 
fluid interface for building HTTP requests
 
 ## Usage
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/httplib.go/httplib.go new/httplib.go/httplib.go
--- old/httplib.go/httplib.go   2011-06-24 14:18:00.0 +0200
+++ new/httplib.go/httplib.go   2011-10-06 14:52:13.0 +0200
@@ -9,6 +9,7 @@
 "net"
 "os"
 "strings"
+"url"
 )
 
 var defaultUserAgent = "httplib.go"
@@ -17,7 +18,7 @@
 
 type Client struct {
 conn*http.ClientConn
-lastURL *http.URL
+lastURL *url.URL
 }
 
 type nopCloser struct {
@@ -32,8 +33,12 @@
 
 func hasPort(s string) bool { return strings.LastIndex(s, ":") > 
strings.LastIndex(s, "]") }
 
-func newConn(url *http.URL) (*http.ClientConn, os.Error) {
+func newConn(url *url.URL) (*http.ClientConn, os.Error) {
 addr := url.Host
+//just set the default scheme to http
+if url.Scheme == "" {
+url.Scheme = "http"
+}
 if !hasPort(addr) {
 addr += ":" + url.Scheme
 }
@@ -62,18 +67,27 @@
 }
 
 func getResponse(rawUrl string, req *http.Request) (*http.ClientConn, 
*http.Response, os.Error) {
-url, err := http.ParseURL(rawUrl)
+url, err := url.Parse(rawUrl)
+if url.Scheme == "" {
+rawUrl = "http://"; + rawUrl
+url, err = url.Parse(rawUrl)
+}
+
 if err != nil {
 return nil, nil, err
 }
 req.URL = url
 if debugprint {
-dump, _ := http.DumpRequest(req, true)
+dump, err := http.DumpRequest(req, true)
+if err != nil {
+println(err.String())
+}
 print(string(dump))
 }
 
 conn, err := newConn(url)
 if err != nil {
+println(err.String())
 return nil, nil, err
 }
 
@@ -90,7 +104,7 @@
 var req http.Request
 req.Method = "GET"
 req.Header = http.Header{}
-req.UserAgent = defaultUserAgent
+req.Header.Set("User-Agent", defaultUserAgent)
 return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -98,7 +112,7 @@
 var req http.Request
 req.Method = "POST"
 req.Header = http.Header{}
-req.UserAgent = defaultUserAgent
+req.Header.Set("User-Agent", defaultUserAgent)
 return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -106,7 +120,7 @@
 var req http.Request
 req.Method = "PUT"
 req.Header = http.Header{}
-req.UserAgent = defaultUserAgent
+req.Header.Set("User-Agent", defaultUserAgent)
 return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -114,7 +128,7 @@
 var req http.Request
 req

commit go-httplib.go for openSUSE:Factory

2011-08-17 Thread h_root

Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory
checked in at Thu Aug 18 00:02:04 CEST 2011.




New Changes file:

--- /dev/null   2010-08-26 16:28:41.0 +0200
+++ go-httplib.go/go-httplib.go.changes 2011-06-27 09:41:33.0 +0200
@@ -0,0 +1,10 @@
+---
+Mon Jun 27 07:41:46 UTC 2011 - gra...@andtech.eu
+
+- patch to build against weekly 2011.06.23
+
+---
+Fri Jun 24 12:18:37 UTC 2011 - sasc...@suse.de
+
+- Initial version
+

calling whatdependson for head-i586


New:

  go-httplib.go.changes
  go-httplib.go.spec
  httplib.go-0.0.0+git20110624.tar.bz2
  httplib.go-fix-for-weekly-2011.06.23.patch



Other differences:
--
++ go-httplib.go.spec ++
#
# spec file for package go-httplib.go
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c), 2011, Sascha Peilicke 
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:   go-httplib.go
Version:0.0.0+git20110624
Release:1
Summary:A simple, low-level http library for Go
Group:  Development/Languages/Other
License:MIT
Url:https://github.com/hoisie/httplib.go
Source0:httplib.go-%{version}.tar.bz2
Patch0: httplib.go-fix-for-weekly-2011.06.23.patch
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel
%{go_provides}
%{go_requires}
%{go_disable_brp_strip_static_archive}

%description
httplib.go is a simple extension of Go's http client that provides keep-alive
connections and generic requests. This is a small usage example:

//get the google home page
c := new(httplib.Client)
resp, err := c.Request ("http://google.com";, "GET", nil, "")
data := ioutil.ReadAll( resp.Body )
println(string(data))

%prep
%setup -q -n httplib.go
%patch0 -p1

%build

%install
%{go_make_install}

#%%check
#%%{go_make_test}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc Readme.md LICENSE
%{go_sitearch}/*

%changelog
++ httplib.go-fix-for-weekly-2011.06.23.patch ++
diff --git a/httplib.go b/httplib.go
index 20ce18e..82e1e6a 100644
--- a/httplib.go
+++ b/httplib.go
@@ -90,7 +90,9 @@ func Get(url string) *HttpRequestBuilder {
 var req http.Request
 req.Method = "GET"
 req.Header = http.Header{}
-req.UserAgent = defaultUserAgent
+req.Header = http.Header{  
+"User-Agent": {defaultUserAgent},
+}
 return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -98,7 +100,9 @@ func Post(url string) *HttpRequestBuilder {
 var req http.Request
 req.Method = "POST"
 req.Header = http.Header{}
-req.UserAgent = defaultUserAgent
+req.Header = http.Header{
+"User-Agent": {defaultUserAgent},
+}
 return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -106,7 +110,9 @@ func Put(url string) *HttpRequestBuilder {
 var req http.Request
 req.Method = "PUT"
 req.Header = http.Header{}
-req.UserAgent = defaultUserAgent
+req.Header = http.Header{
+"User-Agent": {defaultUserAgent},
+}
 return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -114,7 +120,9 @@ func Delete(url string) *HttpRequestBuilder {
 var req http.Request
 req.Method = "DELETE"
 req.Header = http.Header{}
-req.UserAgent = defaultUserAgent
+req.Header = http.Header{
+"User-Agent": {defaultUserAgent},
+}
 return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 





Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org