commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2020-06-11 14:37:24 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new.3606 (New) Package is "golang-packaging" Thu Jun 11 14:37:24 2020 rev:26 rq:810286 version:15.0.13 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2019-12-02 11:27:32.218665758 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new.3606/golang-packaging.changes 2020-06-11 14:37:33.372064494 +0200 @@ -1,0 +2,7 @@ +Fri May 29 19:13:55 UTC 2020 - jkowalc...@suse.com + +- Update to version 15.0.13: + * Preserve modification time of source files +- Mark COPYING as %license on suse_version > 1500 + +--- Old: golang-packaging-15.0.12.tar.xz New: golang-packaging-15.0.13.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.hptSdC/_old 2020-06-11 14:37:33.964066216 +0200 +++ /var/tmp/diff_new_pack.hptSdC/_new 2020-06-11 14:37:33.968066227 +0200 @@ -1,7 +1,7 @@ # # spec file for package golang-packaging # -# Copyright (c) 2019 SUSE LLC. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: golang-packaging -Version:15.0.12 +Version:15.0.13 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0-only @@ -55,7 +55,12 @@ %files %defattr(-,root,root) -%doc README.md CHANGELOG COPYING +%doc README.md CHANGELOG +%if 0%{?suse_version} < 1500 +%doc COPYING +%else +%license COPYING +%endif% %{_prefix}/lib/rpm/golang.prov %{_prefix}/lib/rpm/golang.req %{_prefix}/lib/rpm/golang.sh ++ _service ++ --- /var/tmp/diff_new_pack.hptSdC/_old 2020-06-11 14:37:33.996066308 +0200 +++ /var/tmp/diff_new_pack.hptSdC/_new 2020-06-11 14:37:33.996066308 +0200 @@ -5,7 +5,7 @@ golang-packaging .git @PARENT_TAG@ -v15.0.12 +v15.0.13 enable v(.*) ++ _servicedata ++ --- /var/tmp/diff_new_pack.hptSdC/_old 2020-06-11 14:37:34.016066367 +0200 +++ /var/tmp/diff_new_pack.hptSdC/_new 2020-06-11 14:37:34.016066367 +0200 @@ -1,4 +1,4 @@ https://github.com/openSUSE/golang-packaging - 7898ac7e21212888bd3a2ba014871bb4b48e5c0b \ No newline at end of file + 5282fde8ea690a38a01b6f274ab7d744808e5b60 \ No newline at end of file ++ golang-packaging-15.0.12.tar.xz -> golang-packaging-15.0.13.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.12/CHANGELOG new/golang-packaging-15.0.13/CHANGELOG --- old/golang-packaging-15.0.12/CHANGELOG 2019-11-16 06:19:50.0 +0100 +++ new/golang-packaging-15.0.13/CHANGELOG 2020-05-29 20:02:37.0 +0200 @@ -1,3 +1,7 @@ +== update version 15.0.13 == + + * golang.sh: Preserve modification time of source files for reproducible builds + == update version 15.0.12 == * golang.sh: integrate ppc64-nopie.patch -buildmode=pie only on ppc64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.12/golang.sh new/golang-packaging-15.0.13/golang.sh --- old/golang-packaging-15.0.12/golang.sh 2019-11-16 06:19:50.0 +0100 +++ new/golang-packaging-15.0.13/golang.sh 2020-05-29 20:02:37.0 +0200 @@ -108,10 +108,10 @@ mkdir -p $(get_buildcontrib_path)/src echo "Copying files to $(get_destination_path)" - cp -rT $(pwd) $(get_destination_path)/ + cp -rpT $(pwd) $(get_destination_path)/ echo "Copying deps to $(get_buildcontrib_path)" - cp -rT $(get_gocontrib_path)/src $(get_buildcontrib_path)/src + cp -rpT $(get_gocontrib_path)/src $(get_buildcontrib_path)/src local contrib_dir=${RPM_BUILD_ROOT}$(get_contrib_path) echo "Creating contrib path ${contrib_dir}"
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2019-12-02 11:27:02 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new.4691 (New) Package is "golang-packaging" Mon Dec 2 11:27:02 2019 rev:25 rq:749021 version:15.0.12 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2018-06-22 13:15:37.786489228 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new.4691/golang-packaging.changes 2019-12-02 11:27:32.218665758 +0100 @@ -1,0 +2,12 @@ +Sat Nov 16 05:45:43 UTC 2019 - jkowalc...@suse.com + +- Update to version 15.0.12: + * Drop ppc64-nopie.patch + * golang.sh: integrate ppc64-nopie.patch -buildmode=pie only on ppc64 + * golang.sh: avoid excessive "rpm --eval..." calls + * Install Bazel files in src directory + * Replace rpmdev-vercmp by "sort -V" to remove rpmdev-vercmp dependency + * Remove s build flag no longer supported in go 1.10 boo#776058 + * Packaging: improve _service tar_scm declarations add _servicedata + +--- Old: golang-packaging-15.0.11.tar.xz ppc64-nopie.patch New: _servicedata golang-packaging-15.0.12.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.RWKerp/_old 2019-12-02 11:27:33.310665253 +0100 +++ /var/tmp/diff_new_pack.RWKerp/_new 2019-12-02 11:27:33.314665251 +0100 @@ -1,7 +1,7 @@ # # spec file for package golang-packaging # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,19 +12,18 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: golang-packaging -Version:15.0.11 +Version:15.0.12 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0-only Group: Development/Languages/Golang -Url:https://github.com/openSUSE/%{name} +URL:https://github.com/openSUSE/%{name} Source: %{name}-%{version}.tar.xz -Patch: ppc64-nopie.patch BuildRequires: rpm BuildRequires: xz @@ -37,7 +36,6 @@ %prep %setup -q -%patch -p1 %build ++ _service ++ --- /var/tmp/diff_new_pack.RWKerp/_old 2019-12-02 11:27:33.334665242 +0100 +++ /var/tmp/diff_new_pack.RWKerp/_new 2019-12-02 11:27:33.338665240 +0100 @@ -4,9 +4,10 @@ git golang-packaging .git -15.0.11 -v15.0.11 +@PARENT_TAG@ +v15.0.12 enable +v(.*) *.tar ++ _servicedata ++ https://github.com/openSUSE/golang-packaging 7898ac7e21212888bd3a2ba014871bb4b48e5c0b++ golang-packaging-15.0.11.tar.xz -> golang-packaging-15.0.12.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.11/CHANGELOG new/golang-packaging-15.0.12/CHANGELOG --- old/golang-packaging-15.0.11/CHANGELOG 2018-06-11 16:17:13.0 +0200 +++ new/golang-packaging-15.0.12/CHANGELOG 2019-11-16 06:19:50.0 +0100 @@ -1,3 +1,13 @@ +== update version 15.0.12 == + + * golang.sh: integrate ppc64-nopie.patch -buildmode=pie only on ppc64 + * golang.sh: avoid excessive "rpm --eval..." calls + * Install Bazel files in src directory + +== update version 15.0.11 == + + * Replace rpmdev-vercmp by "sort -V" to remove rpmdev-vercmp dependency + == update version 15.0.10 == * Remove s flag for go version >= 1.10 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.11/golang.sh new/golang-packaging-15.0.12/golang.sh --- old/golang-packaging-15.0.11/golang.sh 2018-06-11 16:17:13.0 +0200 +++ new/golang-packaging-15.0.12/golang.sh 2019-11-16 06:19:50.0 +0100 @@ -2,6 +2,9 @@ set -e set -x +# this is used most +GO_CONTRIBSRCDIR=$(rpm --eval %go_contribsrcdir) + go_version() { go version | awk '{print $3}' | sed 's/go//' } @@ -54,7 +57,7 @@ } get_source_path() { - echo $(rpm --eval %go_contribsrcdir) + echo $GO_CONTRIBSRCDIR } get_tool_path() { @@ -139,7 +142,11 @@ local last=$(($#-1)) fi - local build_flags="-v -p 4 -x -buildmode=pie" + local build_flags="-v -p 4 -x" + case "$(uname -m)" in +
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2018-06-22 13:15:33 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new (New) Package is "golang-packaging" Fri Jun 22 13:15:33 2018 rev:24 rq:616520 version:15.0.11 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2018-06-02 11:56:33.310301985 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2018-06-22 13:15:37.786489228 +0200 @@ -1,0 +2,19 @@ +Wed Jun 13 11:02:18 UTC 2018 - jmassaguer...@suse.com + +- We don't need to require rpmdev, because we updated to 15.0.11 + to remove that requirement. I missed to remove the req from + the spec file. + +--- +Tue Jun 12 18:40:23 UTC 2018 - msucha...@suse.com + +- fix ppc64 (be) build. No pie baking support there. + + ppc64-nopie.patch + +--- +Mon Jun 11 15:28:42 UTC 2018 - opensuse-packag...@opensuse.org + +- Update to version 15.0.11: + * Replace rpmdev-vercmp by "sort -V" to remove rpmdev-vercmp dependency + +--- Old: golang-packaging-15.0.10.tar.xz New: golang-packaging-15.0.11.tar.xz ppc64-nopie.patch Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.9pOtY8/_old 2018-06-22 13:15:39.858412398 +0200 +++ /var/tmp/diff_new_pack.9pOtY8/_new 2018-06-22 13:15:39.902410767 +0200 @@ -17,18 +17,18 @@ Name: golang-packaging -Version:15.0.10 +Version:15.0.11 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0-only Group: Development/Languages/Golang Url:https://github.com/openSUSE/%{name} Source: %{name}-%{version}.tar.xz +Patch: ppc64-nopie.patch BuildRequires: rpm BuildRequires: xz Requires: go -Requires: rpmdevtools BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -37,6 +37,7 @@ %prep %setup -q +%patch -p1 %build ++ _service ++ --- /var/tmp/diff_new_pack.9pOtY8/_old 2018-06-22 13:15:40.290396380 +0200 +++ /var/tmp/diff_new_pack.9pOtY8/_new 2018-06-22 13:15:40.318395342 +0200 @@ -4,8 +4,8 @@ git golang-packaging .git -15.0.10 -v15.0.10 +15.0.11 +v15.0.11 enable ++ golang-packaging-15.0.10.tar.xz -> golang-packaging-15.0.11.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.10/golang.sh new/golang-packaging-15.0.11/golang.sh --- old/golang-packaging-15.0.10/golang.sh 2018-05-31 17:23:12.0 +0200 +++ new/golang-packaging-15.0.11/golang.sh 2018-06-11 16:17:13.0 +0200 @@ -11,8 +11,7 @@ # version_lt 1.9.3 1.10 && echo "yes" # will echo "yes" version_lt() { - rpmdev-vercmp $1 $2 > /dev/null - [ $? == 12 ] #rpmdev-vercmp returns 12 if the first version is less than the second + [ $(printf "$1\n$2" | sort -V | head -n1) == $1 ] } store_buildroot_path() { ++ ppc64-nopie.patch ++ --- golang-packaging-15.0.11/golang.sh~ 2018-06-11 16:17:13.0 +0200 +++ golang-packaging-15.0.11/golang.sh 2018-06-12 20:35:41.617659481 +0200 @@ -139,7 +139,11 @@ local last=$(($#-1)) fi - local build_flags="-v -p 4 -x -buildmode=pie" + local build_flags="-v -p 4 -x" + case "$(uname -m)" in +ppc64) ;; +*) build_flags="$build_flags -buildmode=pie" ;; + esac # Add s flag if go is older than 1.10. # s flag is an openSUSE flag to fix # https://bugzilla.suse.com/show_bug.cgi?id=776058
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2018-06-02 11:56:32 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new (New) Package is "golang-packaging" Sat Jun 2 11:56:32 2018 rev:23 rq:613321 version:15.0.10 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2018-02-15 13:22:25.450693680 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2018-06-02 11:56:33.310301985 +0200 @@ -1,0 +2,24 @@ +Thu May 31 15:24:50 UTC 2018 - opensuse-packag...@opensuse.org + +- Update to version 15.0.10: + * update changelog to v15.0.10 + * This flag does not exist for go 1.10 because this is an extra flag that openSUSE was adding into the go packages in order to fix + * Revert "only add the s flag if go is less than 1.10" + * only add the s flag if go is less than 1.10 + * Revert "Pass linker flag via ldflags" + * update changelog: add 15.0.9 version + * Pass linker flag via ldflags + * Bump version 15.0.8 + * Fix the handling of quoted extra args + * bump version to v15.0.7 + +- Add Requires rpmdev-tools as this is used to compare versions in the + golang.sh script + +--- +Tue May 29 10:32:08 UTC 2018 - opensuse-packag...@opensuse.org + +- Update to version 15.0.9: + * Pass linker flag via ldflags + +--- Old: golang-packaging-15.0.8.tar.xz New: golang-packaging-15.0.10.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.yOMnQG/_old 2018-06-02 11:56:34.250267516 +0200 +++ /var/tmp/diff_new_pack.yOMnQG/_new 2018-06-02 11:56:34.250267516 +0200 @@ -17,10 +17,10 @@ Name: golang-packaging -Version:15.0.8 +Version:15.0.10 Release:0 Summary:A toolchain to help packaging golang -License:GPL-3.0 +License:GPL-3.0-only Group: Development/Languages/Golang Url:https://github.com/openSUSE/%{name} Source: %{name}-%{version}.tar.xz @@ -28,6 +28,7 @@ BuildRequires: rpm BuildRequires: xz Requires: go +Requires: rpmdevtools BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch ++ _service ++ --- /var/tmp/diff_new_pack.yOMnQG/_old 2018-06-02 11:56:34.278266489 +0200 +++ /var/tmp/diff_new_pack.yOMnQG/_new 2018-06-02 11:56:34.278266489 +0200 @@ -4,8 +4,8 @@ git golang-packaging .git -15.0.8 -v15.0.8 +15.0.10 +v15.0.10 enable ++ golang-packaging-15.0.8.tar.xz -> golang-packaging-15.0.10.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.8/CHANGELOG new/golang-packaging-15.0.10/CHANGELOG --- old/golang-packaging-15.0.8/CHANGELOG 2018-02-12 17:38:45.0 +0100 +++ new/golang-packaging-15.0.10/CHANGELOG 2018-05-31 17:23:12.0 +0200 @@ -1,3 +1,9 @@ +== update version 15.0.10 == + * Remove s flag for go version >= 1.10 + +== update version 15.0.9 == + * Pass linker flag via ldflags + == update version 15.0.8 == * Fix the handling of quoted extra args to the gobuild and gotest macros. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.8/golang.sh new/golang-packaging-15.0.10/golang.sh --- old/golang-packaging-15.0.8/golang.sh 2018-02-12 17:38:45.0 +0100 +++ new/golang-packaging-15.0.10/golang.sh 2018-05-31 17:23:12.0 +0200 @@ -2,6 +2,19 @@ set -e set -x +go_version() { + go version | awk '{print $3}' | sed 's/go//' +} + +# version_lt exits 0 if the first version is less than the second +# example: +# version_lt 1.9.3 1.10 && echo "yes" +# will echo "yes" +version_lt() { + rpmdev-vercmp $1 $2 > /dev/null + [ $? == 12 ] #rpmdev-vercmp returns 12 if the first version is less than the second +} + store_buildroot_path() { echo ${RPM_BUILD_ROOT} >| /tmp/buildrootpath.txt } @@ -127,7 +140,16 @@ local last=$(($#-1)) fi - local build_flags="-s -v -p 4 -x -buildmode=pie" + local build_flags="-v -p 4 -x -buildmode=pie" + # Add s flag if go is older than 1.10. + # s flag is an openSUSE flag to fix + # https://bugzilla.suse.com/show_bug.cgi?id=776058 + # This flag is added with a patch in the openSUSE package, thus it only + # exists in openSUSE go packages, and only on versions < 1.10. + # In go >= 1.10, this bug is fixed upstream and the patch that was adding the + # s flag has been
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2018-02-15 13:22:21 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new (New) Package is "golang-packaging" Thu Feb 15 13:22:21 2018 rev:22 rq:576767 version:15.0.8 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2017-10-02 16:48:30.682327690 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2018-02-15 13:22:25.450693680 +0100 @@ -1,0 +2,15 @@ +Mon Feb 12 16:45:42 UTC 2018 - opensuse-packag...@opensuse.org + +- Update to version 15.0.8: + * Fix Requires/Provides issue with split packages + * Remove unused variables + * Bump version to v15.0.5 + * *: always use -buildmode=pie + * bump version to v15.0.6 + * fix changelog + * golang.sh: Fix arch for aarch64 + * bump version to v15.0.7 + * Fix the handling of quoted extra args + * Bump version 15.0.8 + +--- Old: golang-packaging-15.0.7.tar.xz New: golang-packaging-15.0.8.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.cXMDez/_old 2018-02-15 13:22:25.982674353 +0100 +++ /var/tmp/diff_new_pack.cXMDez/_new 2018-02-15 13:22:25.986674209 +0100 @@ -1,7 +1,7 @@ # # spec file for package golang-packaging # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,7 +17,7 @@ Name: golang-packaging -Version:15.0.7 +Version:15.0.8 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ _service ++ --- /var/tmp/diff_new_pack.cXMDez/_old 2018-02-15 13:22:26.014673192 +0100 +++ /var/tmp/diff_new_pack.cXMDez/_new 2018-02-15 13:22:26.014673192 +0100 @@ -4,8 +4,8 @@ git golang-packaging .git -15.0.7 -v15.0.7 +15.0.8 +v15.0.8 enable ++ golang-packaging-15.0.7.tar.xz -> golang-packaging-15.0.8.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.7/CHANGELOG new/golang-packaging-15.0.8/CHANGELOG --- old/golang-packaging-15.0.7/CHANGELOG 2017-08-30 09:55:20.0 +0200 +++ new/golang-packaging-15.0.8/CHANGELOG 2018-02-12 17:38:45.0 +0100 @@ -1,3 +1,7 @@ +== update version 15.0.8 == + + * Fix the handling of quoted extra args to the gobuild and gotest macros. + == update version 15.0.7 == * golang.sh: Fix arch for aarch64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.7/golang.sh new/golang-packaging-15.0.8/golang.sh --- old/golang-packaging-15.0.7/golang.sh 2017-08-30 09:55:20.0 +0200 +++ new/golang-packaging-15.0.8/golang.sh 2018-02-12 17:38:45.0 +0100 @@ -128,20 +128,22 @@ fi local build_flags="-s -v -p 4 -x -buildmode=pie" - local extra_flags="${@:1:$last}" + local extra_flags=( +"${@:1:$last}" + ) case "${modifier}" in "...") GOPATH=$(get_build_path):$(get_buildcontrib_path) GOBIN=$(get_gobin_path) go \ - install ${build_flags} ${extra_flags} $(get_import_path)... + install ${build_flags} "${extra_flags[@]}" $(get_import_path)... ;; "") GOPATH=$(get_build_path):$(get_buildcontrib_path) GOBIN=$(get_gobin_path) go \ - install ${build_flags} ${extra_flags} $(get_import_path) + install ${build_flags} "${extra_flags[@]}" $(get_import_path) ;; *) GOPATH=$(get_build_path):$(get_buildcontrib_path) GOBIN=$(get_gobin_path) go \ - install ${build_flags} ${extra_flags} $(get_import_path)/${modifier} + install ${build_flags} "${extra_flags[@]}" $(get_import_path)/${modifier} ;; esac } @@ -194,10 +196,12 @@ local last=$(($#-1)) fi - local extra_flags="${@:1:$last}" + local extra_flags=( +"${@:1:$last}" + ) GOPATH=$(get_build_path):$(get_buildcontrib_path) GOBIN=$(get_gobin_path) go \ -test ${extra_flags} -x ${modifier} +test "${extra_flags[@]}" -x ${modifier} } process_filelist() { @@ -225,28 +229,28 @@ case "${action}" in "--arch"|"arch") -process_arch ${@:2} +process_arch "${@:2}" ;; "--prep"|"prep") -process_prepare ${@:2} +process_prepare "${@:2}" ;; "--build"|"build") -process_build ${@:2} +process_build "${@:2}"
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2017-10-02 16:48:25 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new (New) Package is "golang-packaging" Mon Oct 2 16:48:25 2017 rev:21 rq:529891 version:15.0.7 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2017-07-30 11:23:59.646061486 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2017-10-02 16:48:30.682327690 +0200 @@ -1,0 +2,8 @@ +Wed Aug 30 08:32:32 UTC 2017 - th...@suse.de + +- Update to version 15.0.7: + * *: always use -buildmode=pie + * fix changelog + * golang.sh: Fix arch for aarch64 + +--- Old: golang-packaging-15.0.5.tar.xz New: golang-packaging-15.0.7.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.ZbTUGC/_old 2017-10-02 16:48:31.374230586 +0200 +++ /var/tmp/diff_new_pack.ZbTUGC/_new 2017-10-02 16:48:31.374230586 +0200 @@ -17,7 +17,7 @@ Name: golang-packaging -Version:15.0.5 +Version:15.0.7 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ _service ++ --- /var/tmp/diff_new_pack.ZbTUGC/_old 2017-10-02 16:48:31.410225534 +0200 +++ /var/tmp/diff_new_pack.ZbTUGC/_new 2017-10-02 16:48:31.410225534 +0200 @@ -4,8 +4,8 @@ git golang-packaging .git -15.0.5 -v15.0.5 +15.0.7 +v15.0.7 enable ++ golang-packaging-15.0.5.tar.xz -> golang-packaging-15.0.7.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.5/CHANGELOG new/golang-packaging-15.0.7/CHANGELOG --- old/golang-packaging-15.0.5/CHANGELOG 2017-06-28 13:53:39.0 +0200 +++ new/golang-packaging-15.0.7/CHANGELOG 2017-08-30 09:55:20.0 +0200 @@ -1,3 +1,11 @@ +== update version 15.0.7 == + + * golang.sh: Fix arch for aarch64 + +== update version 15.0.6 == + + * always use -buildmode=pie + == update version 15.0.5 == * Fix Requires/Provides issue with split packages diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.5/golang.sh new/golang-packaging-15.0.7/golang.sh --- old/golang-packaging-15.0.5/golang.sh 2017-06-28 13:53:39.0 +0200 +++ new/golang-packaging-15.0.7/golang.sh 2017-08-30 09:55:20.0 +0200 @@ -67,6 +67,9 @@ "i386"|"i486"|"i586"|"i686"|"pentium3"|"pentium4"|"athlon"|"geode") echo "386" ;; + aarch64*) +echo "arm64" +;; armv*) echo "arm" ;; @@ -124,7 +127,7 @@ local last=$(($#-1)) fi - local build_flags="-s -v -p 4 -x" + local build_flags="-s -v -p 4 -x -buildmode=pie" local extra_flags="${@:1:$last}" case "${modifier}" in
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2017-07-30 11:23:58 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new (New) Package is "golang-packaging" Sun Jul 30 11:23:58 2017 rev:20 rq:510328 version:15.0.5 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2017-06-09 15:55:47.801309584 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2017-07-30 11:23:59.646061486 +0200 @@ -1,0 +2,11 @@ +Wed Jun 28 11:55:26 UTC 2017 - th...@suse.de + +- Update to version 15.0.5: + * set correct modifier if no arguments are provided + * Remove duplicates when finding Requires + * fix GOPATH and macros + * Fix Provides and Requires for some builds + * Fix Requires/Provides issue with split packages + * Remove unused variables + +--- Old: golang-packaging-15.0.4.tar.xz New: golang-packaging-15.0.5.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.eZcIi0/_old 2017-07-30 11:24:02.589646123 +0200 +++ /var/tmp/diff_new_pack.eZcIi0/_new 2017-07-30 11:24:02.601644429 +0200 @@ -17,7 +17,7 @@ Name: golang-packaging -Version:15.0.4 +Version:15.0.5 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ _service ++ --- /var/tmp/diff_new_pack.eZcIi0/_old 2017-07-30 11:24:02.669634835 +0200 +++ /var/tmp/diff_new_pack.eZcIi0/_new 2017-07-30 11:24:02.669634835 +0200 @@ -4,8 +4,8 @@ git golang-packaging .git -15.0.4 -v15.0.4 +15.0.5 +v15.0.5 enable ++ golang-packaging-15.0.4.tar.xz -> golang-packaging-15.0.5.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.4/CHANGELOG new/golang-packaging-15.0.5/CHANGELOG --- old/golang-packaging-15.0.4/CHANGELOG 2017-06-06 17:37:25.0 +0200 +++ new/golang-packaging-15.0.5/CHANGELOG 2017-06-28 13:53:39.0 +0200 @@ -1,3 +1,8 @@ +== update version 15.0.5 == + + * Fix Requires/Provides issue with split packages + * Remove unused variables + == update version 15.0.4 == * Include go API version in GOPATH and macros diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.4/golang.prov new/golang-packaging-15.0.5/golang.prov --- old/golang-packaging-15.0.4/golang.prov 2017-06-06 17:37:25.0 +0200 +++ new/golang-packaging-15.0.5/golang.prov 2017-06-28 13:53:39.0 +0200 @@ -4,11 +4,21 @@ export RPM_BUILD_ROOT="$(cat /tmp/buildrootpath.txt)" fi -export GOPATH="${RPM_BUILD_ROOT}/usr/share/go/$(rpm --eval %go_api_ver)/contrib:${GOPATH}" +# Exclude the existing contrib directory from GOPATH, otherwise the underlying +# packages may be marked as provided packages which might be incorrect. +tmpgopath= +for entry in $(echo "${GOPATH}" | tr ':' '\n'); do + [[ -z "${entry}" || "${entry}" =~ 'contrib' ]] && continue + if [[ -z "${tmpgopath}" ]]; then +tmpgopath="${entry}" + else +tmpgopath="${tmpgopath}:${entry}" + fi +done +export GOPATH="${RPM_BUILD_ROOT}/usr/share/go/$(rpm --eval %go_api_ver)/contrib:${tmpgopath}" export GO15VENDOREXPERIMENT=1 IMPORT="$(cat /tmp/importpath.txt)" -CHECK="${GOPATH}/src/${IMPORT}" # Read from STDIN to not cause a broken pipe while read INPUT; do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.4/golang.req new/golang-packaging-15.0.5/golang.req --- old/golang-packaging-15.0.4/golang.req 2017-06-06 17:37:25.0 +0200 +++ new/golang-packaging-15.0.5/golang.req 2017-06-28 13:53:39.0 +0200 @@ -4,19 +4,23 @@ export RPM_BUILD_ROOT="$(cat /tmp/buildrootpath.txt)" fi -export GOPATH="${RPM_BUILD_ROOT}/usr/share/go/$(rpm --eval %go_api_ver)/contrib:${GOPATH}" +# Exclude the existing contrib directory from GOPATH, otherwise there might be +# incorrect requirements listed. +tmpgopath= +for entry in $(echo "${GOPATH}" | tr ':' '\n'); do + [[ -z "${entry}" || "${entry}" =~ 'contrib' ]] && continue + if [[ -z "${tmpgopath}" ]]; then +tmpgopath="${entry}" + else +tmpgopath="${tmpgopath}:${entry}" + fi +done +export GOPATH="${RPM_BUILD_ROOT}/usr/share/go/$(rpm --eval %go_api_ver)/contrib:${tmpgopath}" export GO15VENDOREXPERIMENT=1 IMPORT="$(cat /tmp/importpath.txt)" -CHECK="${GOPATH}/src/${IMPORT}" - -#
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2017-06-09 15:55:42 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new (New) Package is "golang-packaging" Fri Jun 9 15:55:42 2017 rev:19 rq:501677 version:15.0.4 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2017-03-31 15:10:19.685253925 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2017-06-09 15:55:47.801309584 +0200 @@ -1,0 +2,32 @@ +Wed Jun 07 09:20:59 UTC 2017 - th...@suse.de + +- Update to version 15.0.4: + * Handle extra_flags for build/test correctly + * set correct modifier if no arguments are provided + * Remove duplicates when finding Requires + * fix GOPATH and macros + * Fix Provides and Requires for some builds + +--- +Thu Jun 1 12:24:34 UTC 2017 - th...@suse.de + +- fix GOPATH for Provides and Requires + +--- +Wed May 24 11:33:20 UTC 2017 - th...@suse.de + +- Fix all %go_*dir macros + +--- +Tue May 23 13:28:43 UTC 2017 - th...@suse.de + +- fix GOPATH issue + +--- +Sun May 21 15:07:29 UTC 2017 - jmassaguer...@suse.com + +- fix gopath after updating go to 1.8. With go 1.8, there is no more + /usr/share/go/contrib but /usr/share/go/1.8/contrib + gopath.patch: contains the fix + +--- Old: golang-packaging-15.0.3.tar.xz New: golang-packaging-15.0.4.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.P8icGf/_old 2017-06-09 15:55:48.329235071 +0200 +++ /var/tmp/diff_new_pack.P8icGf/_new 2017-06-09 15:55:48.329235071 +0200 @@ -17,7 +17,7 @@ Name: golang-packaging -Version:15.0.3 +Version:15.0.4 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ _service ++ --- /var/tmp/diff_new_pack.P8icGf/_old 2017-06-09 15:55:48.361230554 +0200 +++ /var/tmp/diff_new_pack.P8icGf/_new 2017-06-09 15:55:48.365229990 +0200 @@ -4,8 +4,8 @@ git golang-packaging .git -15.0.3 -v15.0.3 +15.0.4 +v15.0.4 enable ++ golang-packaging-15.0.3.tar.xz -> golang-packaging-15.0.4.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.3/CHANGELOG new/golang-packaging-15.0.4/CHANGELOG --- old/golang-packaging-15.0.3/CHANGELOG 2017-03-29 14:32:44.0 +0200 +++ new/golang-packaging-15.0.4/CHANGELOG 2017-06-06 17:37:25.0 +0200 @@ -1,3 +1,8 @@ +== update version 15.0.4 == + + * Include go API version in GOPATH and macros + * Fix Requires and Provides + == update version 15.0.3 == * Remove duplicates when finding Requires diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.3/golang.prov new/golang-packaging-15.0.4/golang.prov --- old/golang-packaging-15.0.3/golang.prov 2017-03-29 14:32:44.0 +0200 +++ new/golang-packaging-15.0.4/golang.prov 2017-06-06 17:37:25.0 +0200 @@ -1,6 +1,10 @@ #!/usr/bin/env bash -export GOPATH=${RPM_BUILD_ROOT}/usr/share/go/contrib +if [[ -z "${RPM_BUILD_ROOT}" ]]; then + export RPM_BUILD_ROOT="$(cat /tmp/buildrootpath.txt)" +fi + +export GOPATH="${RPM_BUILD_ROOT}/usr/share/go/$(rpm --eval %go_api_ver)/contrib:${GOPATH}" export GO15VENDOREXPERIMENT=1 IMPORT="$(cat /tmp/importpath.txt)" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.3/golang.req new/golang-packaging-15.0.4/golang.req --- old/golang-packaging-15.0.3/golang.req 2017-03-29 14:32:44.0 +0200 +++ new/golang-packaging-15.0.4/golang.req 2017-06-06 17:37:25.0 +0200 @@ -1,6 +1,10 @@ #!/usr/bin/env bash -export GOPATH=${RPM_BUILD_ROOT}/usr/share/go/contrib +if [[ -z "${RPM_BUILD_ROOT}" ]]; then + export RPM_BUILD_ROOT="$(cat /tmp/buildrootpath.txt)" +fi + +export GOPATH="${RPM_BUILD_ROOT}/usr/share/go/$(rpm --eval %go_api_ver)/contrib:${GOPATH}" export GO15VENDOREXPERIMENT=1 IMPORT="$(cat /tmp/importpath.txt)" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.3/golang.sh new/golang-packaging-15.0.4/golang.sh --- old/golang-packaging-15.0.3/golang.sh
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2017-03-31 15:10:01 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new (New) Package is "golang-packaging" Fri Mar 31 15:10:01 2017 rev:18 rq:483409 version:15.0.3 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2017-03-21 22:48:36.802719940 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2017-03-31 15:10:19.685253925 +0200 @@ -1,0 +2,14 @@ +Wed Mar 29 12:33:36 UTC 2017 - th...@suse.de + +- Update to version 15.0.3: + * Remove duplicates when finding Requires + * bump version to v15.0.3 + +--- +Wed Mar 22 10:20:40 UTC 2017 - th...@suse.de + +- Update to version 15.0.2: + * set correct modifier if no arguments are provided + * bump version to v15.0.2 + +--- Old: golang-packaging-15.0.1.tar.xz New: golang-packaging-15.0.3.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.XZRwnt/_old 2017-03-31 15:10:20.557130658 +0200 +++ /var/tmp/diff_new_pack.XZRwnt/_new 2017-03-31 15:10:20.561130092 +0200 @@ -17,12 +17,12 @@ Name: golang-packaging -Version:15.0.1 +Version:15.0.3 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 Group: Development/Languages/Golang -Url:https://github.com/marguerite/%{name} +Url:https://github.com/openSUSE/%{name} Source: %{name}-%{version}.tar.xz BuildRequires: rpm @@ -32,7 +32,7 @@ BuildArch: noarch %description -A toolchain to help packaging golang, written in ruby. +A toolchain to help packaging golang, written in bash. %prep %setup -q ++ _service ++ --- /var/tmp/diff_new_pack.XZRwnt/_old 2017-03-31 15:10:20.597125003 +0200 +++ /var/tmp/diff_new_pack.XZRwnt/_new 2017-03-31 15:10:20.597125003 +0200 @@ -4,8 +4,8 @@ git golang-packaging .git -15.0.1 -v15.0.1 +15.0.3 +v15.0.3 enable ++ golang-packaging-15.0.1.tar.xz -> golang-packaging-15.0.3.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.1/CHANGELOG new/golang-packaging-15.0.3/CHANGELOG --- old/golang-packaging-15.0.1/CHANGELOG 2017-03-14 12:47:19.0 +0100 +++ new/golang-packaging-15.0.3/CHANGELOG 2017-03-29 14:32:44.0 +0200 @@ -1,3 +1,11 @@ +== update version 15.0.3 == + + * Remove duplicates when finding Requires + +== update version 15.0.2 == + + * Set correct modifier when running build with no arguments + == update version 15.0.1 == * Fix crash when running build or test with no argument diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.1/golang.req new/golang-packaging-15.0.3/golang.req --- old/golang-packaging-15.0.1/golang.req 2017-03-14 12:47:19.0 +0100 +++ new/golang-packaging-15.0.3/golang.req 2017-03-29 14:32:44.0 +0200 @@ -16,7 +16,7 @@ : done -for SEGMENT in $(go list -f '{{range $deps := .Deps}}{{printf "%s\n" $deps}}{{end}}' ${IMPORT}/... | grep -v ${IMPORT}); do +for SEGMENT in $(go list -f '{{range $deps := .Deps}}{{printf "%s\n" $deps}}{{end}}' ${IMPORT}/... | grep -v ${IMPORT} | sort -u); do STANDARD=$(go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' ${SEGMENT} 2> /dev/null) if [[ $? -ne 0 || "${STANDARD}" != "" ]]; then diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-15.0.1/golang.sh new/golang-packaging-15.0.3/golang.sh --- old/golang-packaging-15.0.1/golang.sh 2017-03-14 12:47:19.0 +0100 +++ new/golang-packaging-15.0.3/golang.sh 2017-03-29 14:32:44.0 +0200 @@ -110,11 +110,12 @@ process_build() { check_import_path - local modifier="${@: -1}" if [[ "$#" -eq 0 ]]; then +local modifier= local last=0 else +local modifier="${@: -1}" local last=$(($#-1)) fi @@ -173,7 +174,7 @@ process_test() { if [[ "${1}" == "" ]]; then -echo "Please specify a valid importpath, refernce: go help test" >&2 +echo "Please specify a valid importpath, reference: go help test" >&2 exit 1 fi
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2017-03-21 22:48:29 Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old) and /work/SRC/openSUSE:Factory/.golang-packaging.new (New) Package is "golang-packaging" Tue Mar 21 22:48:29 2017 rev:17 rq:479245 version:15.0.1 Changes: --- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes 2016-07-15 12:50:16.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2017-03-21 22:48:36.802719940 +0100 @@ -1,0 +2,29 @@ +Tue Mar 14 11:50:37 UTC 2017 - th...@suse.de + +- Update to version 15.0.1: + * Handle extra_flags for build/test correctly + * bump version to v15.0.1 + +--- +Wed Feb 15 16:07:57 UTC 2017 - th...@suse.de + +- Update to version 15.0.0: + * [SLE11]some commands need time to finish, immediate close will get wrong status, so use timeout 30s + * [SLE]ditch named group in regexp in golang.req, the oniguruma in ruby 1.8.7 doesn't support named group + * fix a typo in cli.rb + * increate timeout to 300s or go install can't finish + * Remove runtime dependency for Go API + * simplify rpmsysinfo.rb + * release 14.9.1 + * Added go_nostrip macro + * Refactor using plain bash + * small fixes + +--- +Fri Jul 22 12:47:09 UTC 2016 - tboer...@suse.com + +- Added refactoring.patch while trying new code base +- Dropped the sed for static architecture detection +- Updated files list to reflect new file structure + +--- Old: golang-packaging-14.9.2.tar.xz New: golang-packaging-15.0.1.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.fgiI2h/_old 2017-03-21 22:48:37.654599507 +0100 +++ /var/tmp/diff_new_pack.fgiI2h/_new 2017-03-21 22:48:37.658598942 +0100 @@ -1,7 +1,7 @@ # # spec file for package golang-packaging # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,56 +16,53 @@ # -%define version_unconverted 14.9.2 - Name: golang-packaging -Version:14.9.2 +Version:15.0.1 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 Group: Development/Languages/Golang Url:https://github.com/marguerite/%{name} Source: %{name}-%{version}.tar.xz + BuildRequires: rpm -BuildRequires: ruby BuildRequires: xz Requires: go -Requires: ruby BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch %description A toolchain to help packaging golang, written in ruby. %prep %setup -q -GOARCH=`ruby ./golang-macros.rb --arch` -sed -i "s/GOARCH/$GOARCH/" macros.go %build %install mkdir -p %{buildroot}%{_sysconfdir}/rpm/ mkdir -p %{buildroot}%{_prefix}/lib/rpm/ + +install -m0755 golang.prov %{buildroot}%{_prefix}/lib/rpm/ +install -m0755 golang.req %{buildroot}%{_prefix}/lib/rpm/ +install -m0755 golang.sh %{buildroot}%{_prefix}/lib/rpm/ +install -m0644 macros.go %{buildroot}%{_sysconfdir}/rpm/ + %if 0%{?suse_version} >= 1320 mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs install -m0644 golang.attr %{buildroot}%{_prefix}/lib/rpm/fileattrs/ %endif -install -m0755 golang.prov %{buildroot}%{_prefix}/lib/rpm/ -install -m0755 golang.req %{buildroot}%{_prefix}/lib/rpm/ -cp -r golang %{buildroot}%{_prefix}/lib/rpm/ -install -m0755 golang-macros.rb %{buildroot}%{_prefix}/lib/rpm/ -install -m0644 macros.go %{buildroot}%{_sysconfdir}/rpm/ %files %defattr(-,root,root) -%doc COPYING README.md ChangeLog +%doc README.md CHANGELOG COPYING +%{_prefix}/lib/rpm/golang.prov +%{_prefix}/lib/rpm/golang.req +%{_prefix}/lib/rpm/golang.sh %config %{_sysconfdir}/rpm/macros.go + %if %{?suse_version} >= 1320 %{_prefix}/lib/rpm/fileattrs/golang.attr %endif -%{_prefix}/lib/rpm/golang -%{_prefix}/lib/rpm/golang.prov -%{_prefix}/lib/rpm/golang.req -%{_prefix}/lib/rpm/golang-macros.rb %changelog ++ _service ++ --- /var/tmp/diff_new_pack.fgiI2h/_old 2017-03-21 22:48:37.690594419 +0100 +++ /var/tmp/diff_new_pack.fgiI2h/_new 2017-03-21 22:48:37.694593853 +0100 @@ -4,8 +4,8 @@ git golang-packaging .git -14.9.2 -v14.9.2 +15.0.1 +v15.0.1 enable ++ golang-packaging-14.9.2.tar.xz -> golang-packaging-15.0.1.tar.xz ++ diff -urN
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-07-15 12:49:58 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-06-23 13:36:52.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-07-15 12:50:16.0 +0200 @@ -1,0 +2,7 @@ +Fri Jul 8 16:51:28 UTC 2016 - i...@marguerite.su + +- can't be noarch. we detected %%go_arch at build time. it has to be + architecture-dependent, or it'll be published randomly with one + from i586/x86_64, whose content (/etc/rpm/macros.go) is unique. + +--- Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.BuNDUe/_old 2016-07-15 12:50:17.0 +0200 +++ /var/tmp/diff_new_pack.BuNDUe/_new 2016-07-15 12:50:17.0 +0200 @@ -32,7 +32,6 @@ Requires: go Requires: ruby BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %description A toolchain to help packaging golang, written in ruby.
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-06-23 13:36:48 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-06-12 18:54:46.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-06-23 13:36:52.0 +0200 @@ -1,0 +2,13 @@ +Tue Jun 21 09:32:43 UTC 2016 - tboer...@suse.com + +- Update to version 14.9.2: + + [SLE11]some commands need time to finish, immediate close will get wrong status, so use timeout 30s + + [SLE]ditch named group in regexp in golang.req, the oniguruma in ruby 1.8.7 doesn't support named group + + fix a typo in cli.rb + + increate timeout to 300s or go install can't finish + + Remove runtime dependency for Go API + + simplify rpmsysinfo.rb + + release 14.9.1 + + Added go_nostrip macro + +--- Old: golang-packaging-14.9.1.tar.xz New: golang-packaging-14.9.2.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.2FGmRE/_old 2016-06-23 13:36:54.0 +0200 +++ /var/tmp/diff_new_pack.2FGmRE/_new 2016-06-23 13:36:54.0 +0200 @@ -16,8 +16,10 @@ # +%define version_unconverted 14.9.2 + Name: golang-packaging -Version:14.9.1 +Version:14.9.2 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ _service ++ --- /var/tmp/diff_new_pack.2FGmRE/_old 2016-06-23 13:36:54.0 +0200 +++ /var/tmp/diff_new_pack.2FGmRE/_new 2016-06-23 13:36:54.0 +0200 @@ -4,8 +4,8 @@ git golang-packaging .git -14.9.1 -v14.9.1 +14.9.2 +v14.9.2 enable ++ golang-packaging-14.9.1.tar.xz -> golang-packaging-14.9.2.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.9.1/ChangeLog new/golang-packaging-14.9.2/ChangeLog --- old/golang-packaging-14.9.1/ChangeLog 2016-06-08 12:36:28.0 +0200 +++ new/golang-packaging-14.9.2/ChangeLog 2016-06-21 11:32:43.0 +0200 @@ -1,3 +1,8 @@ +== update version 14.9.2 == + + * Added go_nostrip macro to disable stripping of debug +information and to disable a debug package + == update version 14.9.1 == * simplify rpmsysinfo.rb: don't guess variables' @@ -7,7 +12,7 @@ == update version 14.9.0 == - * Remove runtime dependency for Go API + * Remove runtime dependency for Go API == update version 14.8.1 == @@ -128,7 +133,7 @@ == Version 3 == * skip *example*.go/*test*.go for Requires finding - * support alias format (import xx "xxx") for importpath + * support alias format (import xx "xxx") for importpath * add golang-strip-builddep, a tool to strip unneeded importpath from source codes == Version 2 == diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.9.1/macros.go new/golang-packaging-14.9.2/macros.go --- old/golang-packaging-14.9.1/macros.go 2016-06-08 12:36:28.0 +0200 +++ new/golang-packaging-14.9.2/macros.go 2016-06-21 11:32:43.0 +0200 @@ -18,6 +18,10 @@ %go_contribsrcdir %{_datadir}/go/contrib/src/ %go_tooldir%{_datadir}/go/pkg/tool/linux_%{go_arch} +%go_nostrip \ +%undefine _build_create_debug \ +%define __arch_install_post export NO_BRP_STRIP_DEBUG=true + %go_exclusivearch \ ExclusiveArch: aarch64 %ix86 x86_64 %arm ppc64 ppc64le s390x @@ -84,7 +88,7 @@ # go install importpath/baz # # See: go help install, go help packages -%gobuild %{_prefix}/lib/rpm/golang-macros.rb --build +%gobuild %{_prefix}/lib/rpm/golang-macros.rb --build # Install all compiled packages and binaries to the buildroot %goinstall %{_prefix}/lib/rpm/golang-macros.rb --install
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-06-12 18:54:44 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-04-22 16:25:42.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-06-12 18:54:46.0 +0200 @@ -1,0 +2,9 @@ +Wed Jun 08 10:36:29 UTC 2016 - i...@marguerite.su + +- Update to version 14.9.1: + * simplify rpmsysinfo.rb: don't guess variables' +values can be passed in by RPM environment +variables. use RbConfig to get libdir. + * support s390x architecture + +--- Old: golang-packaging-14.9.0.tar.xz New: golang-packaging-14.9.1.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.lT8oM9/_old 2016-06-12 18:54:48.0 +0200 +++ /var/tmp/diff_new_pack.lT8oM9/_new 2016-06-12 18:54:48.0 +0200 @@ -17,7 +17,7 @@ Name: golang-packaging -Version:14.9.0 +Version:14.9.1 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ _service ++ --- /var/tmp/diff_new_pack.lT8oM9/_old 2016-06-12 18:54:48.0 +0200 +++ /var/tmp/diff_new_pack.lT8oM9/_new 2016-06-12 18:54:48.0 +0200 @@ -1,17 +1,17 @@ - + https://github.com/openSUSE/golang-packaging git golang-packaging .git -14.9.0 -v14.9.0 +14.9.1 +v14.9.1 enable - + *.tar xz - + ++ golang-packaging-14.9.0.tar.xz -> golang-packaging-14.9.1.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.9.0/ChangeLog new/golang-packaging-14.9.1/ChangeLog --- old/golang-packaging-14.9.0/ChangeLog 2016-04-17 16:35:38.0 +0200 +++ new/golang-packaging-14.9.1/ChangeLog 2016-06-08 12:36:28.0 +0200 @@ -1,3 +1,50 @@ +== update version 14.9.1 == + + * simplify rpmsysinfo.rb: don't guess variables' +values can be passed in by RPM environment +variables. use RbConfig to get libdir. + * support s390x architecture + +== update version 14.9.0 == + + * Remove runtime dependency for Go API + +== update version 14.8.1 == + + * bugfix release + * fix a typo in cli.rb + * increase timeout to 300s, or go install can't +finish itself sometimes + +== update version 14.8 == + + * rpmsysinfo.rb: fix encoding problem in open() + * cli.rb: ruby 1.8.7 doesn't support passing environment +variables in open(), some commands/tests need time to +finish, an immediate io.close() will get us wrong +exitstatus (broken pipe, code 13). so use 'timeout' +module with a 30s and process.wait for them to quit +successfully + * golang.req: the oniguruma in ruby 1.8.7 doesn't support +named group in regexp. so ditch the named group used in +go_get_version() + +== update version 14.7 == + + * do not hardcode go version + +== update version 14.6 == + + * fix rbarch for Power Archtectures + +== update version 14.5 == + + * fix a typo that prevent golang.req from working (github#10) + +== update version 14.4 == + + * fix github#5 on golang.req + == update version 14.3 == * fix: command not found error for go test on SLE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.9.0/golang/rpmsysinfo.rb new/golang-packaging-14.9.1/golang/rpmsysinfo.rb --- old/golang-packaging-14.9.0/golang/rpmsysinfo.rb2016-04-17 16:35:38.0 +0200 +++ new/golang-packaging-14.9.1/golang/rpmsysinfo.rb2016-06-08 12:36:28.0 +0200 @@ -1,16 +1,6 @@ module RpmSysinfo - if File.directory?("/usr/src/packages") & File.writable?("/usr/src/packages") - @@topdir = "/usr/src/packages" - else - @@topdir = ENV["HOME"] + "/rpmbuild" - end - -@@buildroot = Dir.glob(@@topdir + "/BUILDROOT/*")[0] - -# sometimes buildroot locates in tmppath/name-version-build - -@@buildroot = Dir.glob("/var/tmp/*-build")[0] if @@buildroot == nil + require 'rbconfig' # x86_64-(gnu|linux|blabla...) @@rbarch = RUBY_PLATFORM.gsub(/-.*$/,"") @@ -18,57 +8,42 @@ @@ix86 = ["i386","i486","i586","i686","pentium3","pentium4","athlon","geode"] @@arm =
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-04-22 16:25:36 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-04-06 11:52:47.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-04-22 16:25:42.0 +0200 @@ -1,0 +2,22 @@ +Sun Apr 17 14:38:04 UTC 2016 - mplus...@suse.com + +- Update service + * use xz for compression + * change from disabled to localonly +- Update spec file to actually use tarball generated by _service +- Drop useless _servicedata + +--- +Fri Apr 15 09:02:35 UTC 2016 - tboer...@suse.com + +- Switched to service based package updates +- Update to version 14.9.0: + * do not hardcode go version + * fix encoding problem in rpmsysinfo.rb + * [SLE11]some commands need time to finish, immediate close will get wrong status, so use timeout 30s + * [SLE]ditch named group in regexp in golang.req, the oniguruma in ruby 1.8.7 doesn't support named group + * fix a typo in cli.rb + * increate timeout to 300s or go install can't finish + * Remove runtime dependency for Go API + +--- Old: golang-packaging-14.8.1.tar.gz New: _service golang-packaging-14.9.0.tar.xz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.pVyW33/_old 2016-04-22 16:25:43.0 +0200 +++ /var/tmp/diff_new_pack.pVyW33/_new 2016-04-22 16:25:43.0 +0200 @@ -17,15 +17,16 @@ Name: golang-packaging -Version:14.8.1 +Version:14.9.0 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 Group: Development/Languages/Golang Url:https://github.com/marguerite/%{name} -Source: https://github.com/marguerite/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Source: %{name}-%{version}.tar.xz BuildRequires: rpm BuildRequires: ruby +BuildRequires: xz Requires: go Requires: ruby BuildRoot: %{_tmppath}/%{name}-%{version}-build ++ _service ++ https://github.com/openSUSE/golang-packaging git golang-packaging .git 14.9.0 v14.9.0 enable *.tar xz
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-04-06 11:52:46 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-26 00:31:40.0 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-04-06 11:52:47.0 +0200 @@ -1,0 +2,24 @@ +Tue Apr 5 01:14:25 UTC 2016 - i...@marguerite.su + +- update version 14.8.1 + * bugfix release + * fix a typo in cli.rb + * increate timeout to 300s, or go install can't +finish itself sometimes + +--- +Sun Apr 3 03:14:46 UTC 2016 - i...@marguerite.su + +- update version 14.8 + * rpmsysinfo.rb: fix encoding problem in open() + * cli.rb: ruby 1.8.7 doesn't support passing environment +variables in popen(), some commands/tests need time to +finish, an immediate io.close() will get us wrong +exitstatus (broken pipe, code 13). so use 'timeout' +module with a 30s and process.wait for them to quit +successfully. + * golang.req: the oniguruma in ruby 1.8.7 doesn't support +named group in regexp. so ditch the named group used in +go_get_version() + +--- Old: golang-packaging-14.7.tar.gz New: golang-packaging-14.8.1.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.kAcOGY/_old 2016-04-06 11:52:48.0 +0200 +++ /var/tmp/diff_new_pack.kAcOGY/_new 2016-04-06 11:52:48.0 +0200 @@ -17,7 +17,7 @@ Name: golang-packaging -Version:14.7 +Version:14.8.1 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ golang-packaging-14.7.tar.gz -> golang-packaging-14.8.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.7/golang/cli.rb new/golang-packaging-14.8.1/golang/cli.rb --- old/golang-packaging-14.7/golang/cli.rb 2016-02-24 13:28:12.0 +0100 +++ new/golang-packaging-14.8.1/golang/cli.rb 2016-04-05 03:09:28.0 +0200 @@ -1,33 +1,55 @@ module CLI - def write_status(status) - file = "/tmp/exitstatus.txt" - mode = "w:UTF-8" - if status == 0 - File.open(file,mode) {|f| f.puts(0)} - else - File.open(file,mode) {|f| f.puts(1)} - abort "[ERROR]Go command failed! Please check." - end - end - - def self.run(env={},cmd="") - unless RUBY_VERSION.to_f > 1.8 - # popen in 1.8 doesn't support env hash - def popen_env(hash, cmd) - hash.each do |k,v| - ENV[k] = v - end - io = IO.popen(cmd) - io.close - write_status($?) - end - popen_env(env,cmd) {|f| f.each_line {|l| puts l}} - else - IO.popen(env,cmd) {|f| f.each_line {|l| puts l}} - write_status($?) - end - end + require 'timeout' + + def write_status(status) +file = "/tmp/exitstatus.txt" +mode = "w:UTF-8" +if status == 0 + File.open(file,mode) {|f| f.puts(0)} +else + File.open(file,mode) {|f| f.puts(1)} + abort "[ERROR]Go command failed! Please check." +end + end + + # popen in 1.8 doesn't support env hash + def popen_env(hash, cmd) +# set ENV separately +hash.each {|k,v| ENV[k] = v} + +# some commands need time, an immediate close +# will get a wrong status, so wait them with +# timeout 30s +# set timeout 300s, because go install takes +# lots of time sometimes +begin + Timeout.timeout(300) do +@pipe = IO.popen(cmd) +Process.wait(@pipe.pid) + end +rescue Timeout::Error + Process.kill(9,@pipe.pid) + # collect status + Process.wait(@pipe.pid) +end + +write_status($?) + + end + + def self.run(env={},cmd="") + +puts "GOPATH: #{env}" +puts "Command: #{cmd}" +unless RUBY_VERSION.to_f > 1.8 + popen_env(env,cmd) {|f| f.each_line {|l| puts l}} +else + IO.popen(env,cmd) {|f| f.each_line {|l| puts l}} + write_status($?) +
commit golang-packaging for openSUSE:Factory
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.0 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-02-26 00:31:40.0 +0100 @@ -1,0 +2,6 @@ +Wed Feb 24 13:22:40 UTC 2016 - i...@marguerite.su + +- 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.0 +0100 +++ /var/tmp/diff_new_pack.MMlFVR/_new 2016-02-26 00:31:41.0 +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.0 +0100 +++ new/golang-packaging-14.7/golang/rpmsysinfo.rb 2016-02-24 13:28:12.0 +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.req2016-01-29 17:43:52.0 +0100 +++ new/golang-packaging-14.7/golang.req2016-02-24 13:28:12.0 +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(?\S+)\s+(?[^\/]+)\/(?.*)$/ + 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
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-02-16 09:18:52 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-01-26 10:15:01.0 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-02-16 09:18:54.0 +0100 @@ -1,0 +2,6 @@ +Fri Feb 12 18:13:01 UTC 2016 - i...@marguerite.su + +- update version 14.6 + * Fix rbarch for Power architectures + +--- Old: golang-packaging-14.5.tar.gz New: golang-packaging-14.6.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.ETiblz/_old 2016-02-16 09:18:54.0 +0100 +++ /var/tmp/diff_new_pack.ETiblz/_new 2016-02-16 09:18:54.0 +0100 @@ -17,7 +17,7 @@ Name: golang-packaging -Version:14.5 +Version:14.6 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ golang-packaging-14.5.tar.gz -> golang-packaging-14.6.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.5/golang/rpmsysinfo.rb new/golang-packaging-14.6/golang/rpmsysinfo.rb --- old/golang-packaging-14.5/golang/rpmsysinfo.rb 2016-01-22 17:12:34.0 +0100 +++ new/golang-packaging-14.6/golang/rpmsysinfo.rb 2016-01-29 17:43:52.0 +0100 @@ -33,11 +33,11 @@ @@libdir = "/usr/lib64" @@go_arch = "arm64" end - if @@rbarch == "ppc64" + if @@rbarch == "powerpc64" @@libdir = "/usr/lib64" @@go_arch = "ppc64" end - if @@rbarch == "ppc64le" + if @@rbarch == "powerpc64le" @@libdir = "/usr/lib64" @@go_arch = "ppc64le" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.5/macros.go new/golang-packaging-14.6/macros.go --- old/golang-packaging-14.5/macros.go 2016-01-22 17:12:34.0 +0100 +++ new/golang-packaging-14.6/macros.go 2016-01-29 17:43:52.0 +0100 @@ -22,7 +22,7 @@ ExclusiveArch: aarch64 %ix86 x86_64 %arm ppc64 ppc64le %go_provides \ -%if 0%{?suse_version} < 1320 \ +%if 0%{?suse_version} <= 1110 \ %global _use_internal_dependency_generator 0 \ %global __find_provides %{_prefix}/lib/rpm/golang.prov \ %global __find_requires %{_prefix}/lib/rpm/golang.req \
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-01-26 10:15:00 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-01-20 09:55:17.0 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-01-26 10:15:01.0 +0100 @@ -1,0 +2,12 @@ +Fri Jan 22 16:15:14 UTC 2016 - i...@marguerite.su + +- update version 14.5 + * fix a typo that prevent golang.req from running (fix #10) + +--- +Fri Jan 22 07:23:07 UTC 2016 - i...@marguerite.su + +- update version 14.4 + * fix #5 on golang.req + +--- Old: golang-packaging-14.3.tar.gz New: golang-packaging-14.5.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.s0Y2Vi/_old 2016-01-26 10:15:02.0 +0100 +++ /var/tmp/diff_new_pack.s0Y2Vi/_new 2016-01-26 10:15:02.0 +0100 @@ -17,7 +17,7 @@ Name: golang-packaging -Version:14.3 +Version:14.5 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ golang-packaging-14.3.tar.gz -> golang-packaging-14.5.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.3/golang.attr new/golang-packaging-14.5/golang.attr --- old/golang-packaging-14.3/golang.attr 2016-01-19 11:33:28.0 +0100 +++ new/golang-packaging-14.5/golang.attr 2016-01-22 17:12:34.0 +0100 @@ -1,3 +1,3 @@ -%__golang_requires %{_perfix}/lib/rpm/golang.req +%__golang_requires %{_prefix}/lib/rpm/golang.req %__golang_provides %{_prefix}/lib/rpm/golang.prov %__golang_path ^(%{_prefix}/lib(64)?/go/contrib/pkg/linux_(386|amd64|ppc.*|arm.*)/.*\\.a|%{_bindir}/.*)$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.3/golang.req new/golang-packaging-14.5/golang.req --- old/golang-packaging-14.3/golang.req2016-01-19 11:33:28.0 +0100 +++ new/golang-packaging-14.5/golang.req2016-01-22 17:12:34.0 +0100 @@ -2,14 +2,20 @@ require '/usr/lib/rpm/golang/rpmsysinfo.rb' include RpmSysinfo +buildroot = RpmSysinfo.get_buildroot +contribdir = RpmSysinfo.get_go_contribdir importpath = RpmSysinfo.get_go_importpath # read stdin for filelist rpm feeds us for a (sub) package filelist = [] ARGF.each do |l| # if line has "*.a" - # buildroot + go_contribdir + golang.org/x/text/collate/colltab.a - filelist << l.strip! if ( l.index(/\.a\n$/) && ! l.index(/test|example/) ) + # buildroot + go_contribdir + github.com/stretchr/testify/assert.a + if l.index(".a\n") + unless l.gsub(buildroot + contribdir + '/' + importpath,'').index(/test|example/) + filelist << l.strip! + end + end end requires = []
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-01-20 09:55:07 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-01-12 16:13:34.0 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-01-20 09:55:17.0 +0100 @@ -1,0 +2,7 @@ +Tue Jan 19 10:36:14 UTC 2016 - i...@marguerite.su + +- update version 14.3 + * fix: command not found error for go test on SLE + * fix #5 again: gsub importpath itself is not enough + +--- Old: golang-packaging-14.2.tar.gz New: golang-packaging-14.3.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.2vOuos/_old 2016-01-20 09:55:18.0 +0100 +++ /var/tmp/diff_new_pack.2vOuos/_new 2016-01-20 09:55:18.0 +0100 @@ -17,7 +17,7 @@ Name: golang-packaging -Version:14.2 +Version:14.3 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 @@ -56,7 +56,7 @@ %files %defattr(-,root,root) -%doc COPYING README.md TODO ChangeLog +%doc COPYING README.md ChangeLog %config %{_sysconfdir}/rpm/macros.go %if %{?suse_version} >= 1320 %{_prefix}/lib/rpm/fileattrs/golang.attr ++ golang-packaging-14.2.tar.gz -> golang-packaging-14.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.2/ChangeLog new/golang-packaging-14.3/ChangeLog --- old/golang-packaging-14.2/ChangeLog 2016-01-11 12:16:49.0 +0100 +++ new/golang-packaging-14.3/ChangeLog 2016-01-19 11:33:28.0 +0100 @@ -1,3 +1,16 @@ +== update version 14.3 == + + * fix: command not found error for go test on SLE + * fix #5 again: gsub importpath itself is not enough + +== update version 14.2 == + + * golang.req: fix ' // indirect' comment in import + +== update version 14.1 == + + * fix: uniq! returns nil if everything is unique + == update version 14 == * if importpath has "test/example", it should survive (github#5) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.2/TODO new/golang-packaging-14.3/TODO --- old/golang-packaging-14.2/TODO 2016-01-11 12:16:49.0 +0100 +++ new/golang-packaging-14.3/TODO 1970-01-01 01:00:00.0 +0100 @@ -1,3 +0,0 @@ -# TODO - -* multithreading diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.2/golang/cli.rb new/golang-packaging-14.3/golang/cli.rb --- old/golang-packaging-14.2/golang/cli.rb 2016-01-11 12:16:49.0 +0100 +++ new/golang-packaging-14.3/golang/cli.rb 2016-01-19 11:33:28.0 +0100 @@ -1,19 +1,32 @@ module CLI - def self.run(command="") - - # echo the command we run to the buildlog - puts command - - IO.popen(command) {|f| f.each_line {|l| puts l}} - - if $? == 0 - File.open("/tmp/exitstatus.txt","w:UTF-8") {|f| f.puts(0)} + def write_status(status) + file = "/tmp/exitstatus.txt" + mode = "w:UTF-8" + if status == 0 + File.open(file,mode) {|f| f.puts(0)} else - File.open("/tmp/exitstatus.txt","w:UTF-8") {|f| f.puts(1)} + File.open(file,mode) {|f| f.puts(1)} abort "[ERROR]Go command failed! Please check." end + end + def self.run(env={},cmd="") + unless RUBY_VERSION.to_f > 1.8 + # popen in 1.8 doesn't support env hash + def popen_env(hash, cmd) + hash.each do |k,v| + ENV[k] = v + end + io = IO.popen(cmd) + io.close + write_status($?) + end + popen_env(env,cmd) {|f| f.each_line {|l| puts l}} + else + IO.popen(env,cmd) {|f| f.each_line {|l| puts l}} + write_status($?) + end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-14.2/golang-macros.rb
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-01-12 16:13:29 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-01-07 00:24:37.0 +0100 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-01-12 16:13:34.0 +0100 @@ -1,0 +2,31 @@ +Mon Jan 11 11:19:26 UTC 2016 - i...@marguerite.su + +- update version 14.2 + * golang.req: fix ' // indirect' comment in import + +--- +Mon Jan 11 02:06:17 UTC 2016 - i...@marguerite.su + +- update version 14.1 + * golang.prov fix: uniq! returns nil if everything is unique + +--- +Tue Jan 5 12:09:20 UTC 2016 - i...@marguerite.su + +- update version 14 + * if importpath has "test/example", it should survive (github#5) + * merge macros.go from openSUSE's go here + * add golang-macros.rb, replacement for the complicated +macros in shell in macros.go + * golang-macros.rb: ++ support build with fake build id ++ support build with custom tags (github#7) ++ support pass any -="a b c" or -= + to go install, shared build is possible now + (not fully support, other macros need to be adapted) ++ --filelist, to generate filelist used in %files + section with excluding support ++ use IO.popen to break the build at the exact place + it fails (github#6) + +--- @@ -10 +41 @@ -and check __.PKGDEF from .a files for "import"s. +and check __.PKGDEF from .a files for "import"s. (github#3, github#4) Old: golang-packaging-13.tar.gz New: golang-packaging-14.2.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.kKdg36/_old 2016-01-12 16:13:35.0 +0100 +++ /var/tmp/diff_new_pack.kKdg36/_new 2016-01-12 16:13:35.0 +0100 @@ -17,17 +17,17 @@ Name: golang-packaging -Version:13 +Version:14.2 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 Group: Development/Languages/Golang Url:https://github.com/marguerite/%{name} Source: https://github.com/marguerite/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz -BuildRequires: go BuildRequires: rpm +BuildRequires: ruby +Requires: go Requires: ruby -Requires: golang(API) = %{go_api_ver} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -36,6 +36,8 @@ %prep %setup -q +GOARCH=`ruby ./golang-macros.rb --arch` +sed -i "s/GOARCH/$GOARCH/" macros.go %build @@ -49,19 +51,19 @@ install -m0755 golang.prov %{buildroot}%{_prefix}/lib/rpm/ install -m0755 golang.req %{buildroot}%{_prefix}/lib/rpm/ cp -r golang %{buildroot}%{_prefix}/lib/rpm/ -install -m0755 golang-strip-builddep %{buildroot}%{_prefix}/lib/rpm/ -install -m0644 macros.golang-packaging %{buildroot}%{_sysconfdir}/rpm/ +install -m0755 golang-macros.rb %{buildroot}%{_prefix}/lib/rpm/ +install -m0644 macros.go %{buildroot}%{_sysconfdir}/rpm/ %files %defattr(-,root,root) %doc COPYING README.md TODO ChangeLog -%config %{_sysconfdir}/rpm/macros.golang-packaging +%config %{_sysconfdir}/rpm/macros.go %if %{?suse_version} >= 1320 %{_prefix}/lib/rpm/fileattrs/golang.attr %endif %{_prefix}/lib/rpm/golang %{_prefix}/lib/rpm/golang.prov %{_prefix}/lib/rpm/golang.req -%{_prefix}/lib/rpm/golang-strip-builddep +%{_prefix}/lib/rpm/golang-macros.rb %changelog ++ golang-packaging-13.tar.gz -> golang-packaging-14.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-13/ChangeLog new/golang-packaging-14.2/ChangeLog --- old/golang-packaging-13/ChangeLog 2016-01-04 17:16:19.0 +0100 +++ new/golang-packaging-14.2/ChangeLog 2016-01-11 12:16:49.0 +0100 @@ -1,3 +1,41 @@ +== update version 14 == + + * if importpath has "test/example", it should survive (github#5) + * merge macros.go from openSUSE's go here + * add golang-macros.rb, replacement for the complicated +macros in shell in macros.go + * golang-macros.rb: ++ support build with fake build id ++ support build with custom tags (github#7) ++ support pass any -="a b c" or -= + to go install, shared build is possible now + (not fully support, other macros need to be adapted) ++ --filelist, to
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2016-01-07 00:24:35 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 2015-09-08 17:46:51.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2016-01-07 00:24:37.0 +0100 @@ -1,0 +2,25 @@ +Mon Jan 4 01:52:15 UTC 2016 - i...@marguerite.su + +- update version 13 + * provides the importpath itself + * fix regex not to check files like .golden in -source + * filter "test/example" from Provides + * split common stuff to a module golang/rpmsysinfo.rb + * rewrite golang.req, now read from stdin RPM feeds, +and check __.PKGDEF from .a files for "import"s. + +--- +Sun Jan 3 03:50:28 UTC 2016 - i...@marguerite.su + +- update version 12 + * don't find provides/requires on -source, -debuginfo, -debugsource +subpackages + * add scripts to generate file lists. + +--- +Sat Jan 2 05:57:41 UTC 2016 - i...@marguerite.su + +- update version 11 + * fix for sles and openSUSE < 13.2 + +--- Old: golang-packaging-10.tar.gz New: golang-packaging-13.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.U4QuTn/_old 2016-01-07 00:24:39.0 +0100 +++ /var/tmp/diff_new_pack.U4QuTn/_new 2016-01-07 00:24:39.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package golang-packaging # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -16,22 +16,20 @@ # -%if %{?sles_version} -%define _rpmconfigdir %{_libexecdir}/rpm -%endif - Name: golang-packaging -Version:10 +Version:13 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 -Group: Development/Languages/Other +Group: Development/Languages/Golang Url:https://github.com/marguerite/%{name} Source: https://github.com/marguerite/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildRequires: go BuildRequires: rpm Requires: ruby -Requires: golang(API) = 1.5 +Requires: golang(API) = %{go_api_ver} BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch %description A toolchain to help packaging golang, written in ruby. @@ -43,20 +41,27 @@ %install mkdir -p %{buildroot}%{_sysconfdir}/rpm/ -mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs -install -m0644 golang.attr %{buildroot}%{_rpmconfigdir}/fileattrs/ -install -m0755 golang.prov %{buildroot}%{_rpmconfigdir}/ -install -m0755 golang.req %{buildroot}%{_rpmconfigdir}/ -install -m0755 golang-strip-builddep %{buildroot}%{_rpmconfigdir}/ -install -m0644 macros.go-extra %{buildroot}%{_sysconfdir}/rpm/ +mkdir -p %{buildroot}%{_prefix}/lib/rpm/ +%if 0%{?suse_version} >= 1320 +mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs +install -m0644 golang.attr %{buildroot}%{_prefix}/lib/rpm/fileattrs/ +%endif +install -m0755 golang.prov %{buildroot}%{_prefix}/lib/rpm/ +install -m0755 golang.req %{buildroot}%{_prefix}/lib/rpm/ +cp -r golang %{buildroot}%{_prefix}/lib/rpm/ +install -m0755 golang-strip-builddep %{buildroot}%{_prefix}/lib/rpm/ +install -m0644 macros.golang-packaging %{buildroot}%{_sysconfdir}/rpm/ %files %defattr(-,root,root) %doc COPYING README.md TODO ChangeLog -%config %{_sysconfdir}/rpm/macros.go-extra -%{_rpmconfigdir}/fileattrs/golang.attr -%{_rpmconfigdir}/golang.prov -%{_rpmconfigdir}/golang.req -%{_rpmconfigdir}/golang-strip-builddep +%config %{_sysconfdir}/rpm/macros.golang-packaging +%if %{?suse_version} >= 1320 +%{_prefix}/lib/rpm/fileattrs/golang.attr +%endif +%{_prefix}/lib/rpm/golang +%{_prefix}/lib/rpm/golang.prov +%{_prefix}/lib/rpm/golang.req +%{_prefix}/lib/rpm/golang-strip-builddep %changelog ++ golang-packaging-10.tar.gz -> golang-packaging-13.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-10/README.md new/golang-packaging-13/README.md --- old/golang-packaging-10/README.md 2015-09-04 18:21:25.0 +0200 +++ new/golang-packaging-13/README.md 2016-01-04 17:16:19.0
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2015-09-08 17:42:52 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 2015-09-02 00:35:55.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2015-09-08 17:46:51.0 +0200 @@ -1,0 +2,6 @@ +Fri Sep 4 16:24:13 UTC 2015 - i...@marguerite.su + +- update version 10 + * support all archtectures like ppc/arm + +--- Old: golang-packaging-9.tar.gz New: golang-packaging-10.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.OaV5sL/_old 2015-09-08 17:46:52.0 +0200 +++ /var/tmp/diff_new_pack.OaV5sL/_new 2015-09-08 17:46:52.0 +0200 @@ -21,7 +21,7 @@ %endif Name: golang-packaging -Version:9 +Version:10 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ golang-packaging-9.tar.gz -> golang-packaging-10.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-9/golang.attr new/golang-packaging-10/golang.attr --- old/golang-packaging-9/golang.attr 2015-08-28 13:25:02.0 +0200 +++ new/golang-packaging-10/golang.attr 2015-09-04 18:21:25.0 +0200 @@ -1,4 +1,3 @@ -ndir}/*|/usr/lib(64)?/go/contrib/pkg/linux_(386|amd64)/.*\\.a)$ %__golang_requires %{_rpmconfigdir}/golang.req %__golang_provides %{_rpmconfigdir}/golang.prov -%__golang_path ^(/usr/lib(64)?/go/contrib/pkg/linux_(386|amd64)/.*\\.a|%{_bindir}/.*)$ +%__golang_path ^(/usr/lib(64)?/go/contrib/pkg/linux_(386|amd64|ppc.*|arm.*)/.*\\.a|%{_bindir}/.*)$
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2015-09-02 00:35:54 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 2015-08-02 22:46:36.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2015-09-02 00:35:55.0 +0200 @@ -1,0 +2,6 @@ +Fri Aug 28 09:48:09 UTC 2015 - i...@marguerite.su + +- update version 9 + *update golang(API) to 1.5 + +--- Old: golang-packaging-8.tar.gz New: golang-packaging-9.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.xKqCPa/_old 2015-09-02 00:35:56.0 +0200 +++ /var/tmp/diff_new_pack.xKqCPa/_new 2015-09-02 00:35:56.0 +0200 @@ -21,16 +21,16 @@ %endif Name: golang-packaging -Version:8 +Version:9 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 Group: Development/Languages/Other Url:https://github.com/marguerite/%{name} -Source: https://github.com/marguerite/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +Source: https://github.com/marguerite/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: rpm Requires: ruby -Requires: golang(API) +Requires: golang(API) = 1.5 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ++ golang-packaging-8.tar.gz -> golang-packaging-9.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-8/ChangeLog new/golang-packaging-9/ChangeLog --- old/golang-packaging-8/ChangeLog2015-08-02 17:57:16.0 +0200 +++ new/golang-packaging-9/ChangeLog2015-08-28 13:25:02.0 +0200 @@ -1,3 +1,20 @@ +== update version 9 == + + * update golang(API) to 1.5 + +== update version 8 == + + * skip the last "/" in golang.prov, thanks to matwey + +== udpate version 7 == + + * handle gopkg.in/* requirements + +== update version 6 == + + * fix golang.req to not treat a sentence as importpath + * fix golang.attr to correctly detect /usr/bin/* + == Version 5 == * if a sub-directory doesn't contain any *.go file, do not diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-8/golang.req new/golang-packaging-9/golang.req --- old/golang-packaging-8/golang.req 2015-08-02 17:57:16.0 +0200 +++ new/golang-packaging-9/golang.req 2015-08-28 13:25:02.0 +0200 @@ -143,7 +143,7 @@ end - importlist << "golang(API) = 1.4" + importlist << "golang(API) = 1.5" return importlist
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2015-08-02 22:46:34 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 2015-07-25 07:44:33.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2015-08-02 22:46:36.0 +0200 @@ -1,0 +2,12 @@ +Sun Aug 2 15:59:58 UTC 2015 - i...@marguerite.su + +- update version 8 + * skip the last / in golang.prov, thanks to matwey + +--- +Fri Jul 31 02:52:31 UTC 2015 - i...@marguerite.su + +- udpate version 7 + * handle gopkg.in/* requirements + +--- Old: golang-packaging-6.tar.gz New: golang-packaging-8.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.mZj4c9/_old 2015-08-02 22:46:37.0 +0200 +++ /var/tmp/diff_new_pack.mZj4c9/_new 2015-08-02 22:46:37.0 +0200 @@ -21,7 +21,7 @@ %endif Name: golang-packaging -Version:6 +Version:8 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 ++ golang-packaging-6.tar.gz - golang-packaging-8.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-6/golang.prov new/golang-packaging-8/golang.prov --- old/golang-packaging-6/golang.prov 2015-07-24 03:40:05.0 +0200 +++ new/golang-packaging-8/golang.prov 2015-08-02 17:57:16.0 +0200 @@ -68,6 +68,8 @@ build = Dir.glob(/home/abuild/rpmbuild/BUILD/*#{pkgname}*)[0] #build = Dir.glob(`pwd`.gsub(/\n/,'') + /*#{pkgname}*/)[0] + importpath = importpath.gsub(/\/$/,'') if importpath.index(/\/$/) + return importpath,build,version end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-6/golang.req new/golang-packaging-8/golang.req --- old/golang-packaging-6/golang.req 2015-07-24 03:40:05.0 +0200 +++ new/golang-packaging-8/golang.req 2015-08-02 17:57:16.0 +0200 @@ -114,7 +114,7 @@ # .com|.net|.org matches all URL, own strips its own url, [\s] (whitespace) # guarantees it doens't match a sentence like comments - list i if ( i.index(/(\.com|\.net|\.org)/) ! i.index(own) ! i.index(/[\s]/) ) + list i if ( i.index(/(\.com|\.net|\.org|gopkg\.in)/) ! i.index(own) ! i.index(/[\s]/) ) end
commit golang-packaging for openSUSE:Factory
Hello community, here is the log from the commit of package golang-packaging for openSUSE:Factory checked in at 2015-07-25 07:44:32 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 2015-07-16 17:18:57.0 +0200 +++ /work/SRC/openSUSE:Factory/.golang-packaging.new/golang-packaging.changes 2015-07-25 07:44:33.0 +0200 @@ -1,0 +2,16 @@ +Fri Jul 24 01:44:47 UTC 2015 - i...@marguerite.su + +- update version 6 + * fix golang.req to not treat a sentence as importpath + * fix golang.attr to correctly detect /usr/bin/* + +--- +Wed Jul 22 14:56:07 UTC 2015 - i...@marguerite.su + +- update version 5 + * if a sub-directory doesn't contain any *.go file, do not +treat it as a Provides candidate. + * add /usr/bin to golang.attr for go executes to be handled +by golang-packaging + +--- Old: golang-packaging-4.tar.gz New: golang-packaging-6.tar.gz Other differences: -- ++ golang-packaging.spec ++ --- /var/tmp/diff_new_pack.bFjflc/_old 2015-07-25 07:44:34.0 +0200 +++ /var/tmp/diff_new_pack.bFjflc/_new 2015-07-25 07:44:34.0 +0200 @@ -16,8 +16,12 @@ # +%if %{?sles_version} +%define _rpmconfigdir %{_libexecdir}/rpm +%endif + Name: golang-packaging -Version:4 +Version:6 Release:0 Summary:A toolchain to help packaging golang License:GPL-3.0 @@ -25,8 +29,8 @@ Url:https://github.com/marguerite/%{name} Source: https://github.com/marguerite/%{name}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: rpm -Requires: golang(API) Requires: ruby +Requires: golang(API) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ++ golang-packaging-4.tar.gz - golang-packaging-6.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-4/ChangeLog new/golang-packaging-6/ChangeLog --- old/golang-packaging-4/ChangeLog2015-07-12 12:28:42.0 +0200 +++ new/golang-packaging-6/ChangeLog2015-07-24 03:40:05.0 +0200 @@ -1,10 +1,25 @@ +== Version 5 == + + * if a sub-directory doesn't contain any *.go file, do not +treat it as a Provides candidate. + * add /usr/bin to golang.attr for go executes to be handled +by golang-packaging + +== Version 4 == + + * fix encoding error in golang-strip-builddep + * add macros.go-extra, extra golang macros for packaging + == Version 3 == -* skip *example*.go/*test*.go for Requires finding -* support alias format (import xx xxx) for importpath -* add golang-strip-builddep, a tool to strip unneeded importpath from source codes + + * skip *example*.go/*test*.go for Requires finding + * support alias format (import xx xxx) for importpath + * add golang-strip-builddep, a tool to strip unneeded importpath from source codes == Version 2 == -* fix pkgname detection + + * fix pkgname detection == Version 1 == -* implement Requires/Provides + + * implement Requires/Provides diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-4/golang.attr new/golang-packaging-6/golang.attr --- old/golang-packaging-4/golang.attr 2015-07-12 12:28:42.0 +0200 +++ new/golang-packaging-6/golang.attr 2015-07-24 03:40:05.0 +0200 @@ -1,3 +1,4 @@ +ndir}/*|/usr/lib(64)?/go/contrib/pkg/linux_(386|amd64)/.*\\.a)$ %__golang_requires %{_rpmconfigdir}/golang.req %__golang_provides %{_rpmconfigdir}/golang.prov -%__golang_path ^/usr/lib(64)?/go/contrib/pkg/linux_(386|amd64)/.*\\.a$ +%__golang_path ^(/usr/lib(64)?/go/contrib/pkg/linux_(386|amd64)/.*\\.a|%{_bindir}/.*)$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/golang-packaging-4/golang.prov new/golang-packaging-6/golang.prov --- old/golang-packaging-4/golang.prov 2015-07-12 12:28:42.0 +0200 +++ new/golang-packaging-6/golang.prov 2015-07-24 03:40:05.0 +0200 @@ -13,11 +13,11 @@ build_found = 0 - if l.index(Source:) then + if l.index(/Source(0)?:/) then unless l.index(%{name}) then - pkgname = l.gsub(/Source:/,'').lstrip!.chomp!.gsub(/^.*\//,'').gsub(/-%.*$/,'') + pkgname =