Accepting request 59610 from home:andtecheu:branches:devel:languages:go
Looks good, thanks a bunch. OBS-URL: https://build.opensuse.org/request/show/59610 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=33
This commit is contained in:
parent
1c5242a096
commit
f05fbc5803
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c5e3b27b3a61a556426262c85b05d2ac9e29264d3ae17e85011c6f72cfde9f73
|
||||
size 5617605
|
3
go-20110120.tar.bz2
Normal file
3
go-20110120.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cd64aab8885249fdb7d3ad996481d7402dc1e349d0274f0339749554e1ca2f26
|
||||
size 5618396
|
@ -1,5 +1,4 @@
|
||||
addFilter("binaryinfo-readelf-failed")
|
||||
addFilter("devel-file-in-non-devel-package")
|
||||
addFilter("statically-linked-binary")
|
||||
addFilter("executable-stack")
|
||||
addFilter("no-soname")
|
||||
addFilter("executable-stack")
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 1 11:31:23 UTC 2011 - graham@andtech.eu
|
||||
|
||||
- Updated to release 20/01/2011
|
||||
- run full test suite (without net dependant tests)
|
||||
- remove redundant libcgo.so from .spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 8 16:26:27 UTC 2010 - saschpe@suse.de
|
||||
|
||||
|
16
go.spec
16
go.spec
@ -10,7 +10,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
%define pkg_release 20101208
|
||||
%define pkg_release 20110120
|
||||
%ifarch %ix86
|
||||
%define go_os_arch linux_386
|
||||
%endif
|
||||
@ -102,7 +102,14 @@ export GOROOT="`pwd`"
|
||||
export GOBIN="$GOROOT/bin"
|
||||
mkdir -p "$GOBIN"
|
||||
cd src
|
||||
STRIP=/bin/true CFLAGS=$RPM_OPT_FLAGS LC_ALL=C PATH="$PATH:$GOBIN" ./make.bash
|
||||
# disable syslog test in chroot environment
|
||||
sed 's/NOTEST+=http/NOTEST+=http syslog/g' $GOROOT/src/pkg/Makefile > $GOROOT/src/pkg/make.tmp
|
||||
mv $GOROOT/src/pkg/make.tmp $GOROOT/src/pkg/Makefile
|
||||
# remove computer lang benchmark tests from run.bash
|
||||
sed '114,119d' $GOROOT/src/run.bash > $GOROOT/src/run.tmp
|
||||
mv $GOROOT/src/run.tmp $GOROOT/src/run.bash
|
||||
# disable net tests and run full test suite
|
||||
DISABLE_NET_TESTS=1 STRIP=/bin/true CFLAGS=$RPM_OPT_FLAGS LC_ALL=C PATH="$PATH:$GOBIN" ./all.bash
|
||||
|
||||
%install
|
||||
export GOROOT="$RPM_BUILD_ROOT%{_libdir}/%{name}"
|
||||
@ -120,10 +127,8 @@ mkdir -p $GOROOT/src
|
||||
install -m644 src/Make.{ccmd,clib,cmd,common,inc,pkg} $GOROOT/src
|
||||
|
||||
install -Dm644 lib/{lib9.a,libbio.a,libmach.a} $RPM_BUILD_ROOT%{_libdir}
|
||||
install -Dm755 pkg/%{go_os_arch}/libcgo.so $RPM_BUILD_ROOT%{_libdir}
|
||||
cp -r lib/godoc $GOROOT/lib
|
||||
cp -r pkg $GOROOT
|
||||
rm $GOROOT/pkg/%{go_os_arch}/libcgo.so # already found in _libdir
|
||||
|
||||
# documentation
|
||||
mkdir -p doc/examples
|
||||
@ -131,6 +136,8 @@ mv doc/{prog.sh,makehtml,progs} doc/examples
|
||||
mv misc/cgo doc/examples
|
||||
chmod 644 doc/codelab/wiki/test.sh
|
||||
|
||||
# no rpath check on bin/govet
|
||||
export NO_BRP_CHECK_RPATH=true
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -140,7 +147,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/go
|
||||
%{_libdir}/lib9.a
|
||||
%{_libdir}/libbio.a
|
||||
%{_libdir}/libcgo.so
|
||||
%{_libdir}/libmach.a
|
||||
%ifarch %ix86
|
||||
%{_bindir}/8*
|
||||
|
Loading…
Reference in New Issue
Block a user