commit go-go-readline for openSUSE:Factory

2013-08-13 Thread h_root
Hello community,

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

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


Package is "go-go-readline"

Changes:

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



Other differences:
--
++ go-go-readline.spec ++
--- /var/tmp/diff_new_pack.zcRd90/_old  2013-08-13 15:47:27.0 +0200
+++ /var/tmp/diff_new_pack.zcRd90/_new  2013-08-13 15:47:27.0 +0200
@@ -27,12 +27,14 @@
 Url:https://bitbucket.org/binet/go-readline/
 Source0:go-readline-%{version}.tar.bz2
 BuildRequires:  go-devel
+ExclusiveArch:  %ix86 x86_64 %arm
 BuildRequires:  readline-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+%if 0%{?suse_version} >= 1100
 Recommends: go-go-readline-doc
+%endif
 %{go_provides}
 %{go_requires}
-%{go_disable_brp_strip_static_archive}
 
 %description
 GNU readline support for the Go progamming language.
@@ -53,6 +55,8 @@
 %gobuild pkg/readline
 
 %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-go-readline for openSUSE:Factory

2012-06-11 Thread h_root
Hello community,

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

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


Package is "go-go-readline", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/go-go-readline/go-go-readline.changes
2012-03-08 19:43:13.0 +0100
+++ /work/SRC/openSUSE:Factory/.go-go-readline.new/go-go-readline.changes   
2012-06-12 07:08:36.0 +0200
@@ -1,0 +2,6 @@
+Mon Jun 11 10:27:52 UTC 2012 - gra...@andtech.eu
+
+- Update spec for new package location
+- Add documentation sub package
+
+---



Other differences:
--
++ go-go-readline.spec ++
--- /var/tmp/diff_new_pack.D7rE24/_old  2012-06-12 07:08:37.0 +0200
+++ /var/tmp/diff_new_pack.D7rE24/_new  2012-06-12 07:08:37.0 +0200
@@ -29,6 +29,7 @@
 BuildRequires:  go-devel
 BuildRequires:  readline-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Recommends: go-go-readline-doc
 %{go_provides}
 %{go_requires}
 %{go_disable_brp_strip_static_archive}
@@ -36,6 +37,14 @@
 %description
 GNU readline support for the Go progamming language.
 
+%package doc
+Summary:API documenation
+Group:  Documentation/Other
+Requires:   %{name} = %{version}
+
+%description doc
+API, examples and documentation.
+
 %prep
 %setup -q -n go-readline
 
@@ -45,12 +54,17 @@
 
 %install
 %goinstall
+%godoc
 
 %check
 
 %files
 %defattr(-,root,root,-)
 %doc README
-%{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-go-readline for openSUSE:Factory

2012-03-08 Thread h_root
Hello community,

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

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


Package is "go-go-readline", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/go-go-readline/go-go-readline.changes
2012-01-19 09:42:04.0 +0100
+++ /work/SRC/openSUSE:Factory/.go-go-readline.new/go-go-readline.changes   
2012-03-08 19:43:13.0 +0100
@@ -1,0 +2,5 @@
+Tue Mar  6 10:26:28 UTC 2012 - gra...@andtech.eu
+
+- update for weekly.2012-03-04
+
+---

Old:

  go-readline-0.0.0+hg20120110.tar.bz2
  go-readline-fix-local-imports.patch

New:

  go-readline-0.0.0+hg20120304.tar.bz2



Other differences:
--
++ go-go-readline.spec ++
--- /var/tmp/diff_new_pack.eaFLc5/_old  2012-03-08 19:43:14.0 +0100
+++ /var/tmp/diff_new_pack.eaFLc5/_new  2012-03-08 19:43:14.0 +0100
@@ -16,16 +16,16 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
+
 Name:   go-go-readline
-Version:0.0.0+hg20120110
+Version:0.0.0+hg20120304
 Release:0
 Summary:Readline support for Go
 License:BSD-2-Clause
 Group:  Development/Languages/Other
 Url:https://bitbucket.org/binet/go-readline/
 Source0:go-readline-%{version}.tar.bz2
-# PATCH-FIX-OPENSUSE -- Need different import statements for local build
-Patch0: go-readline-fix-local-imports.patch
 BuildRequires:  go-devel
 BuildRequires:  readline-devel
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -38,14 +38,15 @@
 
 %prep
 %setup -q -n go-readline
-%patch0 -p1
 
 %build
+%goprep  bitbucket.org/binet/go-readline
+%gobuild pkg/readline
+
 %install
-%{go_make_install}
+%goinstall
 
 %check
-%{go_make_test}
 
 %files
 %defattr(-,root,root,-)

++ go-readline-0.0.0+hg20120110.tar.bz2 -> 
go-readline-0.0.0+hg20120304.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/go-readline/Makefile new/go-readline/Makefile
--- old/go-readline/Makefile2012-01-10 09:42:15.0 +0100
+++ new/go-readline/Makefile1970-01-01 01:00:00.0 +0100
@@ -1,17 +0,0 @@
-# Copyright 2009 The Go Authors.  All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-include $(GOROOT)/src/Make.inc
-
-TARG=bitbucket.org/binet/go-readline
-CGOFILES=readline.go
-CGO_LDFLAGS=-lreadline
-
-CLEANFILES+=readline_test
-
-include $(GOROOT)/src/Make.pkg
-
-%: install %.go
-   $(GC) $*.go
-   $(LD) -o $@ $*.$O
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/go-readline/pkg/readline/readline.go 
new/go-readline/pkg/readline/readline.go
--- old/go-readline/pkg/readline/readline.go1970-01-01 01:00:00.0 
+0100
+++ new/go-readline/pkg/readline/readline.go2012-03-06 11:22:48.0 
+0100
@@ -0,0 +1,147 @@
+// Wrapper around the GNU readline(3) library
+
+package readline
+
+// TODO:
+//  implement a go-oriented command completion
+
+/*
+ #cgo LDFLAGS: -lreadline
+ #include 
+ #include 
+ #include 
+ #include 
+ #include 
+
+ char* _go_readline_strarray_at(char **strarray, int idx) 
+ {
+   return strarray[idx];
+ }
+
+ int _go_readline_strarray_len(char **strarray)
+ {
+   int sz = 0;
+   while (strarray[sz] != NULL) {
+ sz += 1;
+   }
+   return sz;
+ }
+*/
+import "C"
+import "unsafe"
+import "syscall"
+
+func ReadLine(prompt *string) *string {
+   var p *C.char
+
+   //readline allows an empty prompt(NULL)
+   if prompt != nil {
+   p = C.CString(*prompt)
+   }
+
+   ret := C.readline(p)
+
+   if p != nil {
+   C.free(unsafe.Pointer(p))
+   }
+
+   if ret == nil {
+   return nil
+   } //EOF
+
+   s := C.GoString(ret)
+   C.free(unsafe.Pointer(ret))
+   return &s
+}
+
+func AddHistory(s string) {
+   p := C.CString(s)
+   defer C.free(unsafe.Pointer(p))
+   C.add_history(p)
+}
+
+// Parse and execute single line of a readline init file.
+func ParseAndBind(s string) {
+   p := C.CString(s)
+   defer C.free(unsafe.Pointer(p))
+   C.rl_parse_and_bind(p)
+}
+
+// Parse a readline initialization file.
+// The default filename is the last filename used.
+func ReadInitFile(s string) error {
+   p := C.CString(s)
+   defer C.free(unsafe.Pointer(p))
+   errno := C.rl_read_init_file(p)
+   if errno == 0 {
+   return nil
+   }
+   return syscall.Errno(errno

commit go-go-readline for openSUSE:Factory

2012-01-19 Thread h_root
Hello community,

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

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


Package is "go-go-readline", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/go-go-readline/go-go-readline.changes
2011-10-27 12:16:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.go-go-readline.new/go-go-readline.changes   
2012-01-19 09:42:04.0 +0100
@@ -1,0 +2,6 @@
+Tue Jan 10 08:46:28 UTC 2012 - sasc...@suse.de
+
+- Update to 10/01/2012 mercurial version:
+  * Adjust to recent Go changes
+
+---

Old:

  go-readline-0.0.0+hg20110702.tar.bz2

New:

  go-readline-0.0.0+hg20120110.tar.bz2



Other differences:
--
++ go-go-readline.spec ++
--- /var/tmp/diff_new_pack.eMLGoB/_old  2012-01-19 09:42:05.0 +0100
+++ /var/tmp/diff_new_pack.eMLGoB/_new  2012-01-19 09:42:05.0 +0100
@@ -1,5 +1,8 @@
 #
-# Copyright (c), 2011, Sascha Peilicke 
+# spec file for package go-go-readline
+#
+# 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
 # remain the property of their copyright owners, unless otherwise agreed
@@ -10,18 +13,22 @@
 # 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-go-readline
-Version:0.0.0+hg20110702
+Version:0.0.0+hg20120110
 Release:0
 Summary:Readline support for Go
-Group:  Development/Languages/Other
 License:BSD-2-Clause
-URL:https://bitbucket.org/binet/go-readline/
+Group:  Development/Languages/Other
+Url:https://bitbucket.org/binet/go-readline/
 Source0:go-readline-%{version}.tar.bz2
+# PATCH-FIX-OPENSUSE -- Need different import statements for local build
 Patch0: go-readline-fix-local-imports.patch
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  go-devel
 BuildRequires:  readline-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %{go_provides}
 %{go_requires}
 %{go_disable_brp_strip_static_archive}
@@ -40,9 +47,6 @@
 %check
 %{go_make_test}
 
-%clean
-rm -rf %{buildroot}
-
 %files
 %defattr(-,root,root,-)
 %doc README

++ go-readline-0.0.0+hg20110702.tar.bz2 -> 
go-readline-0.0.0+hg20120110.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/go-readline/readline.go new/go-readline/readline.go
--- old/go-readline/readline.go 2011-07-02 11:50:35.0 +0200
+++ new/go-readline/readline.go 2012-01-10 09:42:15.0 +0100
@@ -12,32 +12,52 @@
  #include 
  #include 
  #include 
- */
+
+ char* _go_readline_strarray_at(char **strarray, int idx) 
+ {
+   return strarray[idx];
+ }
+
+ int _go_readline_strarray_len(char **strarray)
+ {
+   int sz = 0;
+   while (strarray[sz] != NULL) {
+ sz += 1;
+   }
+   return sz;
+ }
+*/
 import "C"
 import "unsafe"
-import "os"
+import "syscall"
 
 func ReadLine(prompt *string) *string {
-   var p *C.char;
+   var p *C.char
 
//readline allows an empty prompt(NULL)
-   if prompt != nil { p = C.CString(*prompt) }
+   if prompt != nil {
+   p = C.CString(*prompt)
+   }
 
-   ret := C.readline(p);
+   ret := C.readline(p)
 
-   if p != nil { C.free(unsafe.Pointer(p)) }
+   if p != nil {
+   C.free(unsafe.Pointer(p))
+   }
 
-   if ret == nil { return nil } //EOF
+   if ret == nil {
+   return nil
+   } //EOF
 
-   s := C.GoString(ret);
-   C.free(unsafe.Pointer(ret));
+   s := C.GoString(ret)
+   C.free(unsafe.Pointer(ret))
return &s
 }
 
 func AddHistory(s string) {
-   p := C.CString(s);
+   p := C.CString(s)
defer C.free(unsafe.Pointer(p))
-   C.add_history(p);   
+   C.add_history(p)
 }
 
 // Parse and execute single line of a readline init file.
@@ -49,20 +69,26 @@
 
 // Parse a readline initialization file.
 // The default filename is the last filename used.
-func ReadInitFile(s string) os.Errno {
+func ReadInitFile(s string) error {
p := C.CString(s)
defer C.free(unsafe.Pointer(p))
errno := C.rl_read_init_file(p)
-   return os.Errno(errno)
+   if errno == 0 {
+   return nil
+   }
+   return syscall.Errno(errno)
 }
 
 // Load a readline history file.
 // The default file

commit go-go-readline for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package go-go-readline for openSUSE:Factory 
checked in at 2011-12-06 18:15:27

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


Package is "go-go-readline", Maintainer is ""

Changes:




Other differences:
--
++ go-go-readline.spec ++
--- /var/tmp/diff_new_pack.O97X7s/_old  2011-12-06 18:24:06.0 +0100
+++ /var/tmp/diff_new_pack.O97X7s/_new  2011-12-06 18:24:06.0 +0100
@@ -15,7 +15,7 @@
 Release:0
 Summary:Readline support for Go
 Group:  Development/Languages/Other
-License:BSD2c
+License:BSD-2-Clause
 URL:https://bitbucket.org/binet/go-readline/
 Source0:go-readline-%{version}.tar.bz2
 Patch0: go-readline-fix-local-imports.patch

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