commit golang-googlecode-couch-go for openSUSE:Factory
Hello community, here is the log from the commit of package golang-googlecode-couch-go for openSUSE:Factory checked in at 2017-03-21 22:48:36 Comparing /work/SRC/openSUSE:Factory/golang-googlecode-couch-go (Old) and /work/SRC/openSUSE:Factory/.golang-googlecode-couch-go.new (New) Package is "golang-googlecode-couch-go" Tue Mar 21 22:48:36 2017 rev:2 rq:479272 version:0.0.0+hg20120329.80177d89e264 Changes: --- /work/SRC/openSUSE:Factory/golang-googlecode-couch-go/golang-googlecode-couch-go.changes 2015-07-24 09:58:36.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-googlecode-couch-go.new/golang-googlecode-couch-go.changes 2017-03-21 22:48:43.129825457 +0100 @@ -1,0 +2,10 @@ +Tue Mar 7 15:51:33 UTC 2017 - th...@suse.de + +- Update source + +--- +Tue Dec 13 14:39:56 UTC 2016 - tboer...@suse.com + +- Refactoring based on new packaging proposal + +--- Old: README.SUSE couch-go-0.0.0+hg20120329.56.80177d89e264.tar.xz New: couch-go-0.0.0+hg20120329.80177d89e264.tar.gz rpmlintrc Other differences: -- ++ golang-googlecode-couch-go.spec ++ --- /var/tmp/diff_new_pack.A3un8x/_old 2017-03-21 22:48:44.045695978 +0100 +++ /var/tmp/diff_new_pack.A3un8x/_new 2017-03-21 22:48:44.049695412 +0100 @@ -1,8 +1,7 @@ # -# spec file for package golang-googlecode-couch-go +# spec file for package golang # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. -# Copyright (c) 2011 Sascha Peilicke+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,49 +16,52 @@ # -Name: golang-googlecode-couch-go -Version:0.0.0+hg20120329.56.80177d89e264 +%global providergoogle +%global provider_subcode +%global provider_tldcom +%global repocouch-go +%global provider_prefix %{provider_sub}.%{provider}.%{provider_tld}/p/%{repo} +%global import_path %{provider_prefix} +%global rev 80177d89e264 +%global date20120329 + +Name: golang-%{provider}%{provider_sub}-%{repo} +Version:0.0.0+hg%{date}.%{rev} Release:0 Summary:Simple CouchDB API for Google Go License:MIT -Group: Development/Languages/Other -Url:http://code.google.com/p/couch-go/ -Source: couch-go-%{version}.tar.xz -Source1:README.SUSE +Group: Development/Languages/Golang +Url:https://%{provider_prefix} +Source0:%{repo}-%{version}.tar.gz +Source1:rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build + BuildRequires: golang-packaging -BuildRequires: xz -%if 0%{?suse_version} >= 1100 -Recommends: couchdb -%endif -Provides: go-couch-go = %{version}-%{release} -Obsoletes: go-couch-go < %{version}-%{release} + +%{go_nostrip} %{go_provides} %description -Couch-go is a simple CouchDB (0.9+) API for the Google Go language. It -supports basic operations on documents. - -%gosrc_package +Couch-go is a simple CouchDB (0.9+) API for the Google Go language. It supports +basic operations on documents. %prep -%setup -q -n couch-go-%{version} +%setup -q -n %{repo}-%{rev} %build -%goprep code.google.com/p/couch-go -%gobuild +%goprep %{import_path} +%gobuild ... %install %goinstall %gosrc +%gofilelist -%files -%defattr(-,root,root,-) -%doc LICENSE -%{go_contribdir}/* +%check +#gotest %{import_path}... -%files source +%files -f file.lst %defattr(-,root,root,-) -%{go_contribsrcdir}/* +%doc LICENSE %changelog ++ _service ++ --- /var/tmp/diff_new_pack.A3un8x/_old 2017-03-21 22:48:44.085690323 +0100 +++ /var/tmp/diff_new_pack.A3un8x/_new 2017-03-21 22:48:44.089689758 +0100 @@ -1,16 +1,5 @@ - -https://code.google.com/p/couch-go/ -hg -.hg -0.0.0+hg{date|shortdate}.{rev}.{node|short} -tip - - -couch-go-*.tar -xz - - -couch-go + +yes ++ rpmlintrc ++ # We are preventing the stripping to keep backtraces intact addFilter("unstripped-binary-or-object") # Golang doesn't support dynamic linking yet in a proper way addFilter("statically-linked-binary") # We are aware of that but shorter names are not possible addFilter("filename-too-long-for-joliet")
commit golang-googlecode-couch-go for openSUSE:Factory
Hello community, here is the log from the commit of package golang-googlecode-couch-go for openSUSE:Factory checked in at 2015-07-24 09:58:35 Comparing /work/SRC/openSUSE:Factory/golang-googlecode-couch-go (Old) and /work/SRC/openSUSE:Factory/.golang-googlecode-couch-go.new (New) Package is golang-googlecode-couch-go Changes: New Changes file: --- /dev/null 2015-07-22 21:25:44.928025004 +0200 +++ /work/SRC/openSUSE:Factory/.golang-googlecode-couch-go.new/golang-googlecode-couch-go.changes 2015-07-24 09:58:36.0 +0200 @@ -0,0 +1,51 @@ +--- +Sun Jul 12 14:00:48 UTC 2015 - i...@marguerite.su + +- rename to golang-googlecode-couch-go +- use golang-packaging for packaging + +--- +Tue Sep 17 07:40:59 UTC 2013 - speili...@suse.com + +- Only recommend couchdb to not depend on having it on the same + machine + +--- +Tue Aug 13 11:45:25 UTC 2013 - speili...@suse.com + +- Update to version 0.0.0+hg20120329.56.80177d89e264: + + Upstream provides no changelog +- Use _service file +- Drop rpmlintrc, both issues are obvious Go issues + +--- +Tue Aug 13 07:59:11 UTC 2013 - speili...@suse.com + +- Use %{go_exclusivearch} macro + +--- +Sat Jun 29 10:52:05 UTC 2013 - gra...@andtech.eu + +- Update package to latest mercurial + +--- +Fri Oct 7 10:23:09 UTC 2011 - gra...@andtech.eu + +- update API to Go r60 (via patch, changes submitted upstream) + +--- +Wed Jun 8 15:14:17 UTC 2011 - sasc...@suse.de + +- Use new %go_disable_brp_strip_static_archive macro + +--- +Sun May 22 10:31:34 UTC 2011 - sasc...@gmx.de + +- Require couchdb +- Disable tests, they need a running CouchDB + +--- +Sat May 21 14:36:27 UTC 2011 - sasc...@gmx.de + +- Initial version + New: README.SUSE _service couch-go-0.0.0+hg20120329.56.80177d89e264.tar.xz golang-googlecode-couch-go.changes golang-googlecode-couch-go.spec Other differences: -- ++ golang-googlecode-couch-go.spec ++ # # spec file for package golang-googlecode-couch-go # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 Sascha Peilicke sasc...@gmx.de # # 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: golang-googlecode-couch-go Version:0.0.0+hg20120329.56.80177d89e264 Release:0 Summary:Simple CouchDB API for Google Go License:MIT Group: Development/Languages/Other Url:http://code.google.com/p/couch-go/ Source: couch-go-%{version}.tar.xz Source1:README.SUSE BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: golang-packaging BuildRequires: xz %if 0%{?suse_version} = 1100 Recommends: couchdb %endif Provides: go-couch-go = %{version}-%{release} Obsoletes: go-couch-go %{version}-%{release} %{go_provides} %description Couch-go is a simple CouchDB (0.9+) API for the Google Go language. It supports basic operations on documents. %gosrc_package %prep %setup -q -n couch-go-%{version} %build %goprep code.google.com/p/couch-go %gobuild %install %goinstall %gosrc %files %defattr(-,root,root,-) %doc LICENSE %{go_contribdir}/* %files source %defattr(-,root,root,-) %{go_contribsrcdir}/* %changelog ++ README.SUSE ++ Basic usage First, create a Database object to represent the DB you'll be interacting with db, err := couch.NewDatabase(127.0.0.1, 5984, databasename) A CouchDB document is represented by a Go struct type Record struct { Type string Countuint64 Elements []string MyMapmap[string]string } You can Insert these documents directly r := Record{...} id, rev, err := db.Insert(r) and