Hello community,

here is the log from the commit of package golang-packaging for 
openSUSE:Factory checked in at 2016-02-25 22:10:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old)
 and      /work/SRC/openSUSE:Factory/.golang-packaging.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "golang-packaging"

Changes:
--------
--- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes        
2016-02-16 09:18:54.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes   
2016-02-26 00:31:40.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Feb 24 13:22:40 UTC 2016 - [email protected]
+
+- update version 14.7
+  * do not hardcode go version
+
+-------------------------------------------------------------------

Old:
----
  golang-packaging-14.6.tar.gz

New:
----
  golang-packaging-14.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ golang-packaging.spec ++++++
--- /var/tmp/diff_new_pack.MMlFVR/_old  2016-02-26 00:31:41.000000000 +0100
+++ /var/tmp/diff_new_pack.MMlFVR/_new  2016-02-26 00:31:41.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           golang-packaging
-Version:        14.6
+Version:        14.7
 Release:        0
 Summary:        A toolchain to help packaging golang
 License:        GPL-3.0

++++++ golang-packaging-14.6.tar.gz -> golang-packaging-14.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/golang-packaging-14.6/golang/rpmsysinfo.rb 
new/golang-packaging-14.7/golang/rpmsysinfo.rb
--- old/golang-packaging-14.6/golang/rpmsysinfo.rb      2016-01-29 
17:43:52.000000000 +0100
+++ new/golang-packaging-14.7/golang/rpmsysinfo.rb      2016-02-24 
13:28:12.000000000 +0100
@@ -150,7 +150,7 @@
      
                 return importpath
         
-        end
+       end
 
 end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/golang-packaging-14.6/golang.req 
new/golang-packaging-14.7/golang.req
--- old/golang-packaging-14.6/golang.req        2016-01-29 17:43:52.000000000 
+0100
+++ new/golang-packaging-14.7/golang.req        2016-02-24 13:28:12.000000000 
+0100
@@ -6,6 +6,16 @@
 contribdir = RpmSysinfo.get_go_contribdir
 importpath = RpmSysinfo.get_go_importpath
 
+def go_get_version()
+  IO.popen("go version") do |process|
+    process.each_line do |l|
+      version_re = /^go version 
go(?<version>\S+)\s+(?<goos>[^\/]+)\/(?<goarch>.*)$/
+      md = version_re.match(l.chomp)
+      return md[:version] if md
+    end
+  end
+end
+
 # read stdin for filelist rpm feeds us for a (sub) package
 filelist = []
 ARGF.each do |l|
@@ -22,7 +32,7 @@
 
 unless filelist.empty? then
 
-       requires << "golang(API) = 1.5"
+       requires << "golang(API) = " + go_get_version()
 
        filelist.each do |f|
                # unarchive .a


Reply via email to