add Go wiki gadget xml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=150
This commit is contained in:
Graham Anderson 2012-08-20 08:14:10 +00:00 committed by Git OBS Bridge
parent 99f760b727
commit a1bc232568
3 changed files with 14 additions and 4 deletions

5
go-wiki-gadget.xml Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="openSUSE Build Service" />
<Content type="url" href="http://software.opensuse.org/download/iframe?project=devel:languages:go&amp;package=go" />
</Module>

11
go.spec
View File

@ -41,8 +41,8 @@ Patch5: verbose-build.patch
# PATCH-FIX-OPENSUSE fix vim Godoc and Import helpers/autocomplete
Patch6: opensuse-vim.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison
BuildRequires: ed
#BuildRequires: bison
#BuildRequires: ed
%if 0%{?suse_version} >= 1210
BuildRequires: systemd
%endif
@ -59,6 +59,11 @@ ExclusiveArch: %ix86 x86_64 %arm
%systemd_requires
%endif
# fc pukes on the debug info in the command binaries
%if 0%{?fedora}
%define debug_package %{nil}
%endif
%description
Go is an expressive, concurrent, garbage collected systems programming language
that is type safe and memory safe. It has pointers but no pointer arithmetic.
@ -243,7 +248,7 @@ find %{_libdir}/go/pkg -type f -exec touch {} +
%config %{_sysconfdir}/bash_completion.d/go
%config %{_sysconfdir}/profile.d/go.sh
%config %{_sysconfdir}/rpm/macros.go
%if 0%{?suse_version} >= 1210
%if 0%{?suse_version} >= 1210 || 0%{?fedora} >= 16
%{_unitdir}/godoc.service
%endif

View File

@ -24,7 +24,6 @@ Provides: %{name}-devel-static = %{version}
%undefine __os_install_post \
%define __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib/rpm/[^/]*/?brp-strip-static-archive %{__strip}!!g')
# Prepare the expected Go package build environement.
# We need a $GOPATH: go help gopath
# We need a valid importpath: go help packages
@ -127,6 +126,7 @@ TMPBIN=%{_builddir}/go/bin \
if [ "$(ls -A $TMPBIN)" ]; then \
install -m755 $TMPBIN/* %{buildroot}%{_bindir} \
fi \
%go_disable_brp_strip_static_archive \
%{nil}
%gofix() \