Hello community, here is the log from the commit of package go for openSUSE:Factory checked in at 2014-09-17 17:25:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/go (Old) and /work/SRC/openSUSE:Factory/.go.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "go" Changes: -------- --- /work/SRC/openSUSE:Factory/go/go.changes 2014-09-09 19:00:51.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.go.new/go.changes 2014-09-17 17:25:40.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Sep 9 14:56:06 UTC 2014 - i...@marguerite.su + +- add new macro godoc_package & go_recommends to easy packaging + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ macros.go ++++++ --- /var/tmp/diff_new_pack.uMsam7/_old 2014-09-17 17:25:41.000000000 +0200 +++ /var/tmp/diff_new_pack.uMsam7/_new 2014-09-17 17:25:41.000000000 +0200 @@ -27,6 +27,11 @@ Provides: %{name}-devel = %{version} \ Provides: %{name}-devel-static = %{version} +%go_recommends \ +%if 0%{?suse_version} >= 1100 \ +Recommends: %{name}-doc \ +%endif + %go_disable_brp_strip_static_archive \ %undefine __os_install_post \ %define __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib/rpm/[^/]*/?brp-strip-static-archive %{__strip}!!g') @@ -167,3 +172,13 @@ find . -name *.go -exec install -Dm644 \{\} %{buildroot}%{go_contribsrcdir}/\{\} \\; \ %{nil} +# Template for doc sub-package +%godoc_package(n:r:) \ +%package %{-n:-n %{-n*}-}doc \ +Summary: API documention for package %{name} \ +Group: Documentation/Other \ +Requires: %{-n:%{-n*}}%{!-n:%{name}} = %{version} \ +%{-r:Requires: %{-r*}} \ +%description %{-n:-n %{-n*}-}doc \ +This package provides API, examples and documentation \ +for package %{name}. \ No newline at end of file -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org