# The libraries and binaries produced by this compiler are not compatible # with coreutils strip (yet). %global debug_package %{nil} %global __spec_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot \ /usr/lib/rpm/redhat/brp-compress Name: go Version: 0 Release: 0.20100609%{?dist} Summary: Go compiler and tools (gc) Group: Development/Languages License: BSD URL: http://golang.org/ # This is built from upstream mercurial: # hg clone -r release https://go.googlecode.com/hg/ go-src # tar -cjf go-20100427.tar.bz2 go-src/ Source0: go-20100609.tar.bz2 # Patch away the need for environment variables: Patch0: go-goos.c-no-envvars.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ed BuildRequires: bison ExclusiveArch: %ix86 x86_64 %package vim Summary: go syntax files for vim Group: Applications/Editors Requires: vim-common Requires: %{name} = %{version}-%{release} %description vim Go syntax for vim. %package emacs Summary: go syntax files for emacs Group: Applications/Editors Requires: emacs-common Requires: %{name} = %{version}-%{release} %description emacs Go syntax for emacs. %description Go is a systems programming language that aims to be both fast and convenient. %prep %setup -q -n "go-src" %patch0 %ifarch %ix86 %global GOARCH 386 %endif %ifarch x86_64 %global GOARCH amd64 %endif sed -i -e "s|__GOROOT__|%{_libdir}/go|g" \ -e "s|__GOARCH__|%{GOARCH}|g" \ src/lib9/goos.c echo >README.Fedora < - 0-0.20100504 - Fix the patch to allow GOROOT overrides during the build process * Thu Apr 29 2010 Conrad Meyer - 0-0.20100427 - Initial Go hg release spec template.