Less useless stripping, better provides and rpmlint fix.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=17
This commit is contained in:
Sascha Peilicke 2010-11-09 18:26:33 +00:00 committed by Git OBS Bridge
parent e13dc03b92
commit 61b63f140e
2 changed files with 4 additions and 2 deletions

View File

@ -2,3 +2,4 @@ addFilter("binaryinfo-readelf-failed")
addFilter("unstripped-binary-or-object")
addFilter("devel-file-in-non-devel-package")
addFilter("statically-linked-binary")
addFilter("executable-stack")

View File

@ -28,7 +28,8 @@ BuildRequires: fdupes
%endif
ExclusiveArch: %ix86 x86_64
Provides: libcgo %{name} = %{version}
Provides: libcgo
Recommends: go-doc
%description
Go is an expressive, concurrent, garbage collected systems programming language
@ -82,7 +83,7 @@ export GOROOT="`pwd`"
export GOBIN="$GOROOT/bin"
mkdir -p "$GOBIN"
cd src
CFLAGS=$RPM_OPT_FLAGS LC_ALL=C PATH="$PATH:$GOBIN" ./make.bash
STRIP=/bin/true CFLAGS=$RPM_OPT_FLAGS LC_ALL=C PATH="$PATH:$GOBIN" ./make.bash
%install
export GOROOT="$RPM_BUILD_ROOT%{_libdir}/go"