hughesjr / rpms / golang

Forked from rpms/golang 5 years ago
Clone

Blame SPECS/golang.spec

4d1d36
# build ids are not currently generated:
4d1d36
# https://code.google.com/p/go/issues/detail?id=5238
4d1d36
#
4d1d36
# also, debuginfo extraction currently fails with
4d1d36
# "Failed to write file: invalid section alignment"
4d1d36
%global debug_package %{nil}
4d1d36
4d1d36
# we are shipping the full contents of src in the data subpackage, which
4d1d36
# contains binary-like things (ELF data for tests, etc)
4d1d36
%global _binaries_in_noarch_packages_terminate_build 0
4d1d36
4d1d36
# Do not check any files in doc or src for requires
4d1d36
%global __requires_exclude_from ^(%{_datadir}|/usr/lib)/%{name}/(doc|src)/.*$
4d1d36
4d1d36
# Don't alter timestamps of especially the .a files (or else go will rebuild later)
4d1d36
# Actually, don't strip at all since we are not even building debug packages and this corrupts the dwarf testdata
4d1d36
%global __strip /bin/true
4d1d36
4d1d36
# rpmbuild magic to keep from having meta dependency on libc.so.6
4d1d36
%define _use_internal_dependency_generator 0
4d1d36
%define __find_requires %{nil}
4d1d36
%global __spec_install_post /usr/lib/rpm/check-rpaths   /usr/lib/rpm/check-buildroot  \
4d1d36
  /usr/lib/rpm/brp-compress
4d1d36
4d1d36
# let this match the macros in macros.golang
4d1d36
%global goroot          /usr/lib/%{name}
9b5743
%global gopath          %{_datadir}/gocode
130f5c
#%global go_arches       %{ix86} x86_64 %{arm}
130f5c
%global go_arches       x86_64
4d1d36
%ifarch x86_64
4d1d36
%global gohostarch  amd64
4d1d36
%endif
4d1d36
%ifarch %{ix86}
4d1d36
%global gohostarch  386
4d1d36
%endif
4d1d36
%ifarch %{arm}
4d1d36
%global gohostarch  arm
4d1d36
%endif
4d1d36
dffe98
%global go_api 1.4
dffe98
4d1d36
Name:           golang
dffe98
Version:        1.4.2
130f5c
Release:        9%{?dist}
4d1d36
Summary:        The Go Programming Language
4d1d36
4d1d36
License:        BSD
4d1d36
URL:            http://golang.org/
9b5743
Source0:        https://storage.googleapis.com/golang/go%{version}.src.tar.gz
4d1d36
4d1d36
# this command moved places
4d1d36
%if 0%{?fedora} >= 21
4d1d36
BuildRequires:  /usr/bin/hostname
f4f7d7
Patch210:       golang-f21-hostname.patch
f4f7d7
f4f7d7
# Patch211 - F21+ has glibc 2.19.90 (2.20 devel)+ which deprecates
f4f7d7
#            _BSD_SOURCE and _SVID_SOURCE
f4f7d7
Patch211:       golang-1.2-BSD-SVID-SOURCE.patch
4d1d36
%else
4d1d36
BuildRequires:  /bin/hostname
4d1d36
%endif
4d1d36
4d1d36
Provides:       go = %{version}-%{release}
4d1d36
Requires:       golang-bin
dffe98
Requires:       golang-src = %{version}-%{release}
4d1d36
4d1d36
Patch0:         golang-1.2-verbose-build.patch
4d1d36
4d1d36
# https://bugzilla.redhat.com/show_bug.cgi?id=1038683
4d1d36
Patch1:         golang-1.2-remove-ECC-p224.patch
4d1d36
130f5c
# https://github.com/golang/go/issues/9605
130f5c
Patch2: 	disable-flanky-CPU-profile-test.patch
4d1d36
# Having documentation separate was broken
4d1d36
Obsoletes:      %{name}-docs < 1.1-4
4d1d36
4d1d36
# RPM can't handle symlink -> dir with subpackages, so merge back
4d1d36
Obsoletes:      %{name}-data < 1.1.1-4
4d1d36
dffe98
# emacs and vim subpackages no longer provided in 1.4.2
dffe98
Obsoletes:      emacs-%{name} <= 1.3.3-3
dffe98
Obsoletes:      %{name}-vim <= 1.3.3
dffe98
130f5c
# obsoletes *BSD sub packages
130f5c
Obsoletes:	pkg-plan9-386 <= 1.4.2
130f5c
Obsoletes:	pkg-plan9-amd64 <= 1.4.2
130f5c
Obsoletes:	pkg-freebsd-386 <= 1.4.2
130f5c
Obsoletes:	pkg-freebsd-amd64 <= 1.4.2
130f5c
Obsoletes:	pkg-freebsd-arm <= 1.4.2
130f5c
Obsoletes:	pkg-netbsd-386 <= 1.4.2
130f5c
Obsoletes:	pkg-netbsd-amd64 <= 1.4.2
130f5c
Obsoletes:	pkg-netbsd-arm <= 1.4.2
130f5c
Obsoletes:	pkg-openbsd-386 <= 1.4.2
130f5c
Obsoletes:	pkg-openbsd-amd64 <= 1.4.2
130f5c
4d1d36
# These are the only RHEL/Fedora architectures that we compile this package for
4d1d36
ExclusiveArch:  %{go_arches}
4d1d36
4d1d36
Source100:      golang-gdbinit
4d1d36
Source101:      golang-prelink.conf
4d1d36
Source102:      macros.golang
4d1d36
4d1d36
%description
4d1d36
%{summary}.
4d1d36
4d1d36
4d1d36
# Restore this package if RPM gets fixed (bug #975909)
4d1d36
#%package       data
4d1d36
#Summary:       Required architecture-independent files for Go
4d1d36
#Requires:      %{name} = %{version}-%{release}
4d1d36
#BuildArch:     noarch
4d1d36
#Obsoletes:     %{name}-docs < 1.1-4
4d1d36
#
4d1d36
#%description   data
4d1d36
#%{summary}.
4d1d36
4d1d36
4d1d36
##
4d1d36
# the source tree
4d1d36
%package        src
4d1d36
Summary:        Golang compiler source tree
4d1d36
BuildArch:      noarch
4d1d36
%description    src
4d1d36
%{summary}
4d1d36
4d1d36
##
4d1d36
# This is the only architecture specific binary
4d1d36
%ifarch %{ix86}
4d1d36
%package        pkg-bin-linux-386
4d1d36
Summary:        Golang compiler tool for linux 386
4d1d36
Requires:       go = %{version}-%{release}
4d1d36
Requires:       golang-pkg-linux-386 = %{version}-%{release}
9b5743
Requires(post): golang-pkg-linux-386 = %{version}-%{release}
4d1d36
Provides:       golang-bin = 386
dffe98
Provides:       go(API)(go) = %{go_api}
4d1d36
# We strip the meta dependency, but go does require glibc.
4d1d36
# This is an odd issue, still looking for a better fix.
4d1d36
Requires:       glibc
9b5743
Requires:       gcc
4d1d36
Requires(post): %{_sbindir}/update-alternatives
4d1d36
Requires(postun): %{_sbindir}/update-alternatives
4d1d36
%description    pkg-bin-linux-386
4d1d36
%{summary}
4d1d36
%endif
4d1d36
4d1d36
%ifarch x86_64
4d1d36
%package        pkg-bin-linux-amd64
4d1d36
Summary:        Golang compiler tool for linux amd64
4d1d36
Requires:       go = %{version}-%{release}
4d1d36
Requires:       golang-pkg-linux-amd64 = %{version}-%{release}
9b5743
Requires(post): golang-pkg-linux-amd64 = %{version}-%{release}
4d1d36
Provides:       golang-bin = amd64
dffe98
Provides:       go(API)(go) = %{go_api}
4d1d36
# We strip the meta dependency, but go does require glibc.
4d1d36
# This is an odd issue, still looking for a better fix.
4d1d36
Requires:       glibc
9b5743
Requires:       gcc
4d1d36
Requires(post): %{_sbindir}/update-alternatives
4d1d36
Requires(postun): %{_sbindir}/update-alternatives
4d1d36
%description    pkg-bin-linux-amd64
4d1d36
%{summary}
4d1d36
%endif
4d1d36
4d1d36
%ifarch %{arm}
4d1d36
%package        pkg-bin-linux-arm
4d1d36
Summary:        Golang compiler tool for linux arm
4d1d36
Requires:       go = %{version}-%{release}
4d1d36
Requires:       golang-pkg-linux-arm = %{version}-%{release}
9b5743
Requires(post): golang-pkg-linux-arm = %{version}-%{release}
4d1d36
Provides:       golang-bin = arm
dffe98
Provides:       go(API)(go) = %{go_api}
4d1d36
# We strip the meta dependency, but go does require glibc.
4d1d36
# This is an odd issue, still looking for a better fix.
4d1d36
Requires:       glibc
9b5743
Requires:       gcc
4d1d36
Requires(post): %{_sbindir}/update-alternatives
4d1d36
Requires(postun): %{_sbindir}/update-alternatives
4d1d36
%description    pkg-bin-linux-arm
4d1d36
%{summary}
4d1d36
%endif
4d1d36
4d1d36
##
4d1d36
# architecture independent go tooling, that allows for cross
4d1d36
# compiling on golang supported architectures
4d1d36
# http://golang.org/doc/install/source#environment
4d1d36
%package        pkg-linux-386
4d1d36
Summary:        Golang compiler toolchain to compile for linux 386
4d1d36
Requires:       go = %{version}-%{release}
dffe98
Provides:       go(API)(cgo) = %{go_api}
4d1d36
BuildArch:      noarch
4d1d36
%description    pkg-linux-386
4d1d36
%{summary}
4d1d36
4d1d36
%package        pkg-linux-amd64
4d1d36
Summary:        Golang compiler toolchain to compile for linux amd64
4d1d36
Requires:       go = %{version}-%{release}
dffe98
Provides:       go(API)(cgo) = %{go_api}
4d1d36
BuildArch:      noarch
4d1d36
%description    pkg-linux-amd64
4d1d36
%{summary}
4d1d36
4d1d36
%package        pkg-linux-arm
4d1d36
Summary:        Golang compiler toolchain to compile for linux arm
4d1d36
Requires:       go = %{version}-%{release}
dffe98
Provides:       go(API)(cgo) = %{go_api}
4d1d36
BuildArch:      noarch
4d1d36
%description    pkg-linux-arm
4d1d36
%{summary}
4d1d36
4d1d36
%package        pkg-darwin-386
4d1d36
Summary:        Golang compiler toolchain to compile for darwin 386
4d1d36
Requires:       go = %{version}-%{release}
4d1d36
BuildArch:      noarch
4d1d36
%description    pkg-darwin-386
4d1d36
%{summary}
4d1d36
4d1d36
%package        pkg-darwin-amd64
4d1d36
Summary:        Golang compiler toolchain to compile for darwin amd64
4d1d36
Requires:       go = %{version}-%{release}
4d1d36
BuildArch:      noarch
4d1d36
%description    pkg-darwin-amd64
4d1d36
%{summary}
4d1d36
4d1d36
%package        pkg-windows-386
4d1d36
Summary:        Golang compiler toolchain to compile for windows 386
4d1d36
Requires:       go = %{version}-%{release}
4d1d36
BuildArch:      noarch
4d1d36
%description    pkg-windows-386
4d1d36
%{summary}
4d1d36
4d1d36
%package        pkg-windows-amd64
4d1d36
Summary:        Golang compiler toolchain to compile for windows amd64
4d1d36
Requires:       go = %{version}-%{release}
4d1d36
BuildArch:      noarch
4d1d36
%description    pkg-windows-amd64
4d1d36
%{summary}
4d1d36
130f5c
#%package        pkg-plan9-386
130f5c
#Summary:        Golang compiler toolchain to compile for plan9 386
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-plan9-386
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-plan9-amd64
130f5c
#Summary:        Golang compiler toolchain to compile for plan9 amd64
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-plan9-amd64
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-freebsd-386
130f5c
#Summary:        Golang compiler toolchain to compile for freebsd 386
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-freebsd-386
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-freebsd-amd64
130f5c
#Summary:        Golang compiler toolchain to compile for freebsd amd64
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-freebsd-amd64
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-freebsd-arm
130f5c
#Summary:        Golang compiler toolchain to compile for freebsd arm
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-freebsd-arm
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-netbsd-386
130f5c
#Summary:        Golang compiler toolchain to compile for netbsd 386
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-netbsd-386
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-netbsd-amd64
130f5c
#Summary:        Golang compiler toolchain to compile for netbsd amd64
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-netbsd-amd64
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-netbsd-arm
130f5c
#Summary:        Golang compiler toolchain to compile for netbsd arm
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-netbsd-arm
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-openbsd-386
130f5c
#Summary:        Golang compiler toolchain to compile for openbsd 386
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-openbsd-386
130f5c
#%{summary}
4d1d36
130f5c
#%package        pkg-openbsd-amd64
130f5c
#Summary:        Golang compiler toolchain to compile for openbsd amd64
130f5c
#Requires:       go = %{version}-%{release}
130f5c
#BuildArch:      noarch
130f5c
#%description    pkg-openbsd-amd64
130f5c
#%{summary}
4d1d36
dffe98
## missing ./go/src/runtime/defs_openbsd_arm.h
4d1d36
## we'll skip this bundle for now
4d1d36
#%package        pkg-openbsd-arm
4d1d36
#Summary:        Golang compiler toolchain to compile for openbsd arm
4d1d36
#Requires:       go = %{version}-%{release}
4d1d36
#BuildArch:      noarch
4d1d36
#%description    pkg-openbsd-arm
4d1d36
#%{summary}
4d1d36
4d1d36
# Workaround old RPM bug of symlink-replaced-with-dir failure
4d1d36
%pretrans -p <lua>
4d1d36
for _,d in pairs({"api", "doc", "include", "lib", "src"}) do
4d1d36
  path = "%{goroot}/" .. d
4d1d36
  if posix.stat(path, "type") == "link" then
4d1d36
    os.remove(path)
4d1d36
    posix.mkdir(path)
4d1d36
  end
4d1d36
end
4d1d36
4d1d36
4d1d36
%prep
4d1d36
%setup -q -n go
4d1d36
4d1d36
%if 0%{?fedora} >= 21
4d1d36
%patch210 -p0
9b5743
%patch211 -p1
4d1d36
%endif
4d1d36
4d1d36
# increase verbosity of build
4d1d36
%patch0 -p1
4d1d36
4d1d36
# remove the P224 curve
4d1d36
%patch1 -p1
4d1d36
130f5c
# disable flanky test
130f5c
%patch2 -p1
4d1d36
%build
4d1d36
# set up final install location
4d1d36
export GOROOT_FINAL=%{goroot}
4d1d36
4d1d36
# TODO use the system linker to get the system link flags and build-id
4d1d36
# when https://code.google.com/p/go/issues/detail?id=5221 is solved
4d1d36
#export GO_LDFLAGS="-linkmode external -extldflags $RPM_LD_FLAGS"
4d1d36
4d1d36
export GOHOSTOS=linux
4d1d36
export GOHOSTARCH=%{gohostarch}
4d1d36
4d1d36
# build for all (see http://golang.org/doc/install/source#environment)
4d1d36
pushd src
130f5c
	for goos in darwin linux windows ; do
4d1d36
		for goarch in 386 amd64 arm ; do
4d1d36
			if [ "${goarch}" = "arm" ] ; then
4d1d36
				if [ "${goos}" = "darwin" -o "${goos}" = "windows" -o "${goos}" = "plan9" -o "${goos}" = "openbsd" ] ;then
4d1d36
					continue
4d1d36
				fi
4d1d36
			fi
dffe98
			# use our gcc options for this build, but store gcc as default for compiler
dffe98
			CC="gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS" \
dffe98
			CC_FOR_TARGET="gcc" \
4d1d36
				GOOS=${goos} \
4d1d36
				GOARCH=${goarch} \
9b5743
				./make.bash --no-clean
4d1d36
		done
4d1d36
	done
4d1d36
popd
4d1d36
4d1d36
%install
4d1d36
rm -rf $RPM_BUILD_ROOT
4d1d36
4d1d36
# create the top level directories
4d1d36
mkdir -p $RPM_BUILD_ROOT%{_bindir}
4d1d36
mkdir -p $RPM_BUILD_ROOT%{goroot}
4d1d36
4d1d36
# install everything into libdir (until symlink problems are fixed)
4d1d36
# https://code.google.com/p/go/issues/detail?id=5830
9b5743
cp -apv api bin doc favicon.ico include lib pkg robots.txt src misc VERSION \
4d1d36
   $RPM_BUILD_ROOT%{goroot}
4d1d36
9b5743
# bz1099206
9b5743
find $RPM_BUILD_ROOT%{goroot}/src -exec touch -r $RPM_BUILD_ROOT%{goroot}/VERSION "{}" \;
9b5743
# and level out all the built archives
9b5743
touch $RPM_BUILD_ROOT%{goroot}/pkg
9b5743
find $RPM_BUILD_ROOT%{goroot}/pkg -exec touch -r $RPM_BUILD_ROOT%{goroot}/pkg "{}" \;
9b5743
# generate the spec file ownership of this source tree and packages
9b5743
cwd=$(pwd)
9b5743
src_list=$cwd/go-src.list
9b5743
rm -f $src_list
9b5743
touch $src_list
9b5743
pushd $RPM_BUILD_ROOT%{goroot}
9b5743
	find src/ -type d -printf '%%%dir %{goroot}/%p\n' >> $src_list
9b5743
	find src/ ! -type d -printf '%{goroot}/%p\n' >> $src_list
9b5743
9b5743
130f5c
	for goos in darwin linux windows ; do
9b5743
		for goarch in 386 amd64 arm ; do
9b5743
			if [ "${goarch}" = "arm" ] ; then
130f5c
				if [ "${goos}" = "darwin" -o "${goos}" = "windows" ] ;then
9b5743
					continue
9b5743
				fi
9b5743
			fi
9b5743
			file_list=${cwd}/pkg-${goos}-${goarch}.list
9b5743
			rm -f $file_list
9b5743
			touch $file_list
9b5743
			find pkg/${goos}_${goarch}/ -type d -printf '%%%dir %{goroot}/%p\n' >> $file_list
9b5743
			find pkg/${goos}_${goarch}/ ! -type d -printf '%{goroot}/%p\n' >> $file_list
9b5743
		done
9b5743
	done
9b5743
popd
9b5743
4d1d36
# remove the unnecessary zoneinfo file (Go will always use the system one first)
4d1d36
rm -rfv $RPM_BUILD_ROOT%{goroot}/lib/time
4d1d36
4d1d36
# remove the doc Makefile
4d1d36
rm -rfv $RPM_BUILD_ROOT%{goroot}/doc/Makefile
4d1d36
4d1d36
# put binaries to bindir, linked to the arch we're building,
4d1d36
# leave the arch independent pieces in %{goroot}
4d1d36
mkdir -p $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}
4d1d36
mv $RPM_BUILD_ROOT%{goroot}/bin/go $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}/go
4d1d36
mv $RPM_BUILD_ROOT%{goroot}/bin/gofmt $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}/gofmt
4d1d36
9b5743
# ensure these exist and are owned
9b5743
mkdir -p $RPM_BUILD_ROOT%{gopath}/src/github.com/
9b5743
mkdir -p $RPM_BUILD_ROOT%{gopath}/src/bitbucket.org/
9b5743
mkdir -p $RPM_BUILD_ROOT%{gopath}/src/code.google.com/
9b5743
mkdir -p $RPM_BUILD_ROOT%{gopath}/src/code.google.com/p/
9b5743
4d1d36
# remove the go and gofmt for other platforms (not used in the compile)
4d1d36
pushd $RPM_BUILD_ROOT%{goroot}/bin/
4d1d36
	rm -rf darwin_* windows_* freebsd_* netbsd_* openbsd_* plan9_*
4d1d36
	case "%{gohostarch}" in
4d1d36
		amd64)
4d1d36
			rm -rf linux_386 linux_arm ;;
4d1d36
		386)
4d1d36
			rm -rf linux_arm linux_amd64 ;;
4d1d36
		arm)
4d1d36
			rm -rf linux_386 linux_amd64 ;;
4d1d36
	esac
4d1d36
popd
4d1d36
9b5743
# make sure these files exist and point to alternatives
9b5743
rm -f $RPM_BUILD_ROOT%{_bindir}/go
9b5743
ln -sf /etc/alternatives/go $RPM_BUILD_ROOT%{_bindir}/go
9b5743
rm -f $RPM_BUILD_ROOT%{_bindir}/gofmt
9b5743
ln -sf /etc/alternatives/gofmt $RPM_BUILD_ROOT%{_bindir}/gofmt
4d1d36
4d1d36
# gdbinit
4d1d36
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d
9b5743
cp -av %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d/golang.gdb
4d1d36
4d1d36
# prelink blacklist
4d1d36
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d
4d1d36
cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
4d1d36
4d1d36
# rpm macros
4d1d36
mkdir -p %{buildroot}
4d1d36
%if 0%{?rhel} > 6 || 0%{?fedora} > 0
4d1d36
mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d
4d1d36
cp -av %{SOURCE102} $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d/macros.golang
4d1d36
%else
4d1d36
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
4d1d36
cp -av %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.golang
4d1d36
%endif
4d1d36
4d1d36
9b5743
%check
130f5c
export GOROOT=$(pwd -P)
130f5c
export PATH="$PATH":"$GOROOT"/bin
130f5c
cd src
9b5743
# skip using CGO for test. causes a SIGABRT on fc21 (bz1086900)
9b5743
# until this test/issue is fixed
9b5743
# https://bugzilla.redhat.com/show_bug.cgi?id=1086900
9b5743
# CGO for test, which fails in i686 on fc21 inside mock/chroot (bz1087621)
9b5743
# https://bugzilla.redhat.com/show_bug.cgi?id=1087621
9b5743
9b5743
# not using our 'gcc' since the CFLAGS fails crash_cgo_test.go due to unused variables
9b5743
# https://code.google.com/p/go/issues/detail?id=6883
130f5c
CGO_ENABLED=0 ./run.bash --no-rebuild
130f5c
cd ..
9b5743
130f5c
if [ $(go list -json std | grep Stale | wc -l) -gt 2 ] ; then
130f5c
	# cmd/go and cmd/gofmt show like they are stale. we can ignore
130f5c
	exit 1
130f5c
fi
9b5743
9b5743
4d1d36
%ifarch %{ix86}
4d1d36
%post pkg-bin-linux-386
9b5743
# since the cgo.a packaged in this rpm will be older than the other archives likely built on the ARM builder,
9b5743
touch -r %{goroot}/pkg/linux_386/runtime.a %{goroot}/pkg/linux_386/runtime/cgo.a
9b5743
4d1d36
%{_sbindir}/update-alternatives --install %{_bindir}/go \
4d1d36
	go %{goroot}/bin/linux_386/go 90 \
4d1d36
	--slave %{_bindir}/gofmt gofmt %{goroot}/bin/linux_386/gofmt
4d1d36
4d1d36
%preun pkg-bin-linux-386
4d1d36
if [ $1 = 0 ]; then
4d1d36
	%{_sbindir}/update-alternatives --remove go %{goroot}/bin/linux_386/go
4d1d36
fi
4d1d36
%endif
4d1d36
4d1d36
%ifarch x86_64
4d1d36
%post pkg-bin-linux-amd64
9b5743
# since the cgo.a packaged in this rpm will be older than the other archives likely built on the ARM builder,
9b5743
touch -r %{goroot}/pkg/linux_amd64/runtime.a %{goroot}/pkg/linux_amd64/runtime/cgo.a
9b5743
4d1d36
%{_sbindir}/update-alternatives --install %{_bindir}/go \
4d1d36
	go %{goroot}/bin/linux_amd64/go 90 \
4d1d36
	--slave %{_bindir}/gofmt gofmt %{goroot}/bin/linux_amd64/gofmt
4d1d36
4d1d36
%preun pkg-bin-linux-amd64
4d1d36
if [ $1 = 0 ]; then
4d1d36
	%{_sbindir}/update-alternatives --remove go %{goroot}/bin/linux_amd64/go
130f5c
	touch /usr/bin/go
130f5c
	touch /usr/bin/gofmt
4d1d36
fi
4d1d36
%endif
4d1d36
4d1d36
%ifarch %{arm}
4d1d36
%post pkg-bin-linux-arm
9b5743
# since the cgo.a packaged in this rpm will be older than the other archives likely built on the ARM builder,
9b5743
touch -r %{goroot}/pkg/linux_arm/runtime.a %{goroot}/pkg/linux_arm/runtime/cgo.a
9b5743
4d1d36
%{_sbindir}/update-alternatives --install %{_bindir}/go \
4d1d36
	go %{goroot}/bin/linux_arm/go 90 \
4d1d36
	--slave %{_bindir}/gofmt gofmt %{goroot}/bin/linux_arm/gofmt
4d1d36
4d1d36
%preun pkg-bin-linux-arm
4d1d36
if [ $1 = 0 ]; then
4d1d36
	%{_sbindir}/update-alternatives --remove go %{goroot}/bin/linux_arm/go
4d1d36
fi
4d1d36
%endif
4d1d36
9b5743
4d1d36
%files
9b5743
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
9b5743
# VERSION has to be present in the GOROOT, for `go install std` to work
9b5743
%doc %{goroot}/VERSION
dffe98
%doc %{goroot}/doc/*
4d1d36
4d1d36
# go files
9b5743
%dir %{goroot}
9b5743
%{goroot}/*
dffe98
%exclude %{goroot}/VERSION
4d1d36
%exclude %{goroot}/bin/
4d1d36
%exclude %{goroot}/pkg/
4d1d36
%exclude %{goroot}/src/
4d1d36
9b5743
# ensure directory ownership, so they are cleaned up if empty
9b5743
%dir %{gopath}
9b5743
%dir %{gopath}/src
9b5743
%dir %{gopath}/src/github.com/
9b5743
%dir %{gopath}/src/bitbucket.org/
9b5743
%dir %{gopath}/src/code.google.com/
9b5743
%dir %{gopath}/src/code.google.com/p/
9b5743
4d1d36
4d1d36
# gdbinit (for gdb debugging)
4d1d36
%{_sysconfdir}/gdbinit.d
4d1d36
4d1d36
# prelink blacklist
4d1d36
%{_sysconfdir}/prelink.conf.d
4d1d36
4d1d36
%if 0%{?rhel} > 6 || 0%{?fedora} > 0
4d1d36
%{_rpmconfigdir}/macros.d/macros.golang
4d1d36
%else
4d1d36
%{_sysconfdir}/rpm/macros.golang
4d1d36
%endif
4d1d36
4d1d36
9b5743
%files -f go-src.list src
130f5c
%exclude %{goroot}/src/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj
130f5c
%exclude %{goroot}/src/debug/elf/testdata/gcc-386-freebsd-exec
130f5c
%exclude %{goroot}/src/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj
4d1d36
4d1d36
%ifarch %{ix86}
4d1d36
%files pkg-bin-linux-386
4d1d36
%{goroot}/bin/linux_386/
4d1d36
# binary executables
9b5743
%{_bindir}/go
9b5743
%{_bindir}/gofmt
9b5743
%dir %{goroot}/pkg/obj/linux_386
9b5743
%{goroot}/pkg/obj/linux_386/*
9b5743
%{goroot}/pkg/linux_386/runtime/cgo.a
9b5743
%dir %{goroot}/pkg/tool/linux_386
9b5743
%{goroot}/pkg/tool/linux_386/5a
9b5743
%{goroot}/pkg/tool/linux_386/5c
9b5743
%{goroot}/pkg/tool/linux_386/5g
9b5743
%{goroot}/pkg/tool/linux_386/5l
9b5743
%{goroot}/pkg/tool/linux_386/6a
9b5743
%{goroot}/pkg/tool/linux_386/6c
9b5743
%{goroot}/pkg/tool/linux_386/6g
9b5743
%{goroot}/pkg/tool/linux_386/6l
9b5743
%{goroot}/pkg/tool/linux_386/8a
9b5743
%{goroot}/pkg/tool/linux_386/8c
9b5743
%{goroot}/pkg/tool/linux_386/8g
9b5743
%{goroot}/pkg/tool/linux_386/8l
9b5743
%{goroot}/pkg/tool/linux_386/addr2line
9b5743
%{goroot}/pkg/tool/linux_386/dist
9b5743
%{goroot}/pkg/tool/linux_386/nm
9b5743
%{goroot}/pkg/tool/linux_386/objdump
9b5743
%{goroot}/pkg/tool/linux_386/pack
9b5743
%{goroot}/pkg/tool/linux_386/pprof
4d1d36
%endif
4d1d36
4d1d36
%ifarch x86_64
4d1d36
%files pkg-bin-linux-amd64
4d1d36
%{goroot}/bin/linux_amd64/
4d1d36
# binary executables
9b5743
%{_bindir}/go
9b5743
%{_bindir}/gofmt
9b5743
%dir %{goroot}/pkg/obj/linux_amd64
9b5743
%{goroot}/pkg/obj/linux_amd64/*
9b5743
%{goroot}/pkg/linux_amd64/runtime/cgo.a
9b5743
%dir %{goroot}/pkg/tool/linux_amd64
9b5743
%{goroot}/pkg/tool/linux_amd64/5a
9b5743
%{goroot}/pkg/tool/linux_amd64/5c
9b5743
%{goroot}/pkg/tool/linux_amd64/5g
9b5743
%{goroot}/pkg/tool/linux_amd64/5l
9b5743
%{goroot}/pkg/tool/linux_amd64/6a
9b5743
%{goroot}/pkg/tool/linux_amd64/6c
9b5743
%{goroot}/pkg/tool/linux_amd64/6g
9b5743
%{goroot}/pkg/tool/linux_amd64/6l
9b5743
%{goroot}/pkg/tool/linux_amd64/8a
9b5743
%{goroot}/pkg/tool/linux_amd64/8c
9b5743
%{goroot}/pkg/tool/linux_amd64/8g
9b5743
%{goroot}/pkg/tool/linux_amd64/8l
9b5743
%{goroot}/pkg/tool/linux_amd64/addr2line
9b5743
%{goroot}/pkg/tool/linux_amd64/dist
9b5743
%{goroot}/pkg/tool/linux_amd64/nm
9b5743
%{goroot}/pkg/tool/linux_amd64/objdump
9b5743
%{goroot}/pkg/tool/linux_amd64/pack
9b5743
%{goroot}/pkg/tool/linux_amd64/pprof
4d1d36
%endif
4d1d36
4d1d36
%ifarch %{arm}
4d1d36
%files pkg-bin-linux-arm
4d1d36
%{goroot}/bin/linux_arm/
4d1d36
# binary executables
9b5743
%{_bindir}/go
9b5743
%{_bindir}/gofmt
9b5743
%dir %{goroot}/pkg/obj/linux_arm
9b5743
%{goroot}/pkg/obj/linux_arm/*
9b5743
%{goroot}/pkg/linux_arm/runtime/cgo.a
9b5743
%dir %{goroot}/pkg/tool/linux_arm
9b5743
%{goroot}/pkg/tool/linux_arm/5a
9b5743
%{goroot}/pkg/tool/linux_arm/5c
9b5743
%{goroot}/pkg/tool/linux_arm/5g
9b5743
%{goroot}/pkg/tool/linux_arm/5l
9b5743
%{goroot}/pkg/tool/linux_arm/6a
9b5743
%{goroot}/pkg/tool/linux_arm/6c
9b5743
%{goroot}/pkg/tool/linux_arm/6g
9b5743
%{goroot}/pkg/tool/linux_arm/6l
9b5743
%{goroot}/pkg/tool/linux_arm/8a
9b5743
%{goroot}/pkg/tool/linux_arm/8c
9b5743
%{goroot}/pkg/tool/linux_arm/8g
9b5743
%{goroot}/pkg/tool/linux_arm/8l
9b5743
%{goroot}/pkg/tool/linux_arm/addr2line
9b5743
%{goroot}/pkg/tool/linux_arm/dist
9b5743
%{goroot}/pkg/tool/linux_arm/nm
9b5743
%{goroot}/pkg/tool/linux_arm/objdump
9b5743
%{goroot}/pkg/tool/linux_arm/pack
9b5743
%{goroot}/pkg/tool/linux_arm/pprof
4d1d36
%endif
4d1d36
9b5743
%files pkg-linux-386 -f pkg-linux-386.list
4d1d36
%{goroot}/pkg/linux_386/
9b5743
%ifarch %{ix86}
9b5743
%exclude %{goroot}/pkg/linux_386/runtime/cgo.a
9b5743
%endif
9b5743
%{goroot}/pkg/tool/linux_386/cgo
9b5743
%{goroot}/pkg/tool/linux_386/fix
9b5743
%{goroot}/pkg/tool/linux_386/yacc
4d1d36
9b5743
%files pkg-linux-amd64 -f pkg-linux-amd64.list
4d1d36
%{goroot}/pkg/linux_amd64/
9b5743
%ifarch x86_64
9b5743
%exclude %{goroot}/pkg/linux_amd64/runtime/cgo.a
9b5743
%endif
9b5743
%{goroot}/pkg/tool/linux_amd64/cgo
9b5743
%{goroot}/pkg/tool/linux_amd64/fix
9b5743
%{goroot}/pkg/tool/linux_amd64/yacc
4d1d36
9b5743
%files pkg-linux-arm -f pkg-linux-arm.list
4d1d36
%{goroot}/pkg/linux_arm/
9b5743
%ifarch %{arm}
9b5743
%exclude %{goroot}/pkg/linux_arm/runtime/cgo.a
9b5743
%endif
9b5743
%{goroot}/pkg/tool/linux_arm/cgo
9b5743
%{goroot}/pkg/tool/linux_arm/fix
9b5743
%{goroot}/pkg/tool/linux_arm/yacc
4d1d36
9b5743
%files pkg-darwin-386 -f pkg-darwin-386.list
4d1d36
%{goroot}/pkg/darwin_386/
4d1d36
%{goroot}/pkg/tool/darwin_386/
4d1d36
9b5743
%files pkg-darwin-amd64 -f pkg-darwin-amd64.list
4d1d36
%{goroot}/pkg/darwin_amd64/
4d1d36
%{goroot}/pkg/tool/darwin_amd64/
4d1d36
9b5743
%files pkg-windows-386 -f pkg-windows-386.list
4d1d36
%{goroot}/pkg/windows_386/
4d1d36
%{goroot}/pkg/tool/windows_386/
4d1d36
9b5743
%files pkg-windows-amd64 -f pkg-windows-amd64.list
4d1d36
%{goroot}/pkg/windows_amd64/
4d1d36
%{goroot}/pkg/tool/windows_amd64/
4d1d36
130f5c
#%files pkg-plan9-386 -f pkg-plan9-386.list
130f5c
#%{goroot}/pkg/plan9_386/
130f5c
#%{goroot}/pkg/tool/plan9_386/
4d1d36
130f5c
#%files pkg-plan9-amd64 -f pkg-plan9-amd64.list
130f5c
#%{goroot}/pkg/plan9_amd64/
130f5c
#%{goroot}/pkg/tool/plan9_amd64/
4d1d36
130f5c
#%files pkg-freebsd-386 -f pkg-freebsd-386.list
130f5c
#%{goroot}/pkg/freebsd_386/
130f5c
#%{goroot}/pkg/tool/freebsd_386/
4d1d36
130f5c
#%files pkg-freebsd-amd64 -f pkg-freebsd-amd64.list
130f5c
#%{goroot}/pkg/freebsd_amd64/
130f5c
#%{goroot}/pkg/tool/freebsd_amd64/
4d1d36
130f5c
#%files pkg-freebsd-arm -f pkg-freebsd-arm.list
130f5c
#%{goroot}/pkg/freebsd_arm/
130f5c
#%{goroot}/pkg/tool/freebsd_arm/
4d1d36
130f5c
#%files pkg-netbsd-386 -f pkg-netbsd-386.list
130f5c
#%{goroot}/pkg/netbsd_386/
130f5c
#%{goroot}/pkg/tool/netbsd_386/
4d1d36
130f5c
#%files pkg-netbsd-amd64 -f pkg-netbsd-amd64.list
130f5c
#%{goroot}/pkg/netbsd_amd64/
130f5c
#%{goroot}/pkg/tool/netbsd_amd64/
4d1d36
130f5c
#%files pkg-netbsd-arm -f pkg-netbsd-arm.list
130f5c
#%{goroot}/pkg/netbsd_arm/
130f5c
#%{goroot}/pkg/tool/netbsd_arm/
4d1d36
130f5c
#%files pkg-openbsd-386 -f pkg-openbsd-386.list
130f5c
#%{goroot}/pkg/openbsd_386/
130f5c
#%{goroot}/pkg/tool/openbsd_386/
4d1d36
130f5c
#%files pkg-openbsd-amd64 -f pkg-openbsd-amd64.list
130f5c
#%{goroot}/pkg/openbsd_amd64/
130f5c
#%{goroot}/pkg/tool/openbsd_amd64/
4d1d36
4d1d36
## skipping for now
4d1d36
#%files pkg-openbsd-arm
4d1d36
#%{goroot}/pkg/openbsd_arm/
4d1d36
#%{goroot}/pkg/tool/openbsd_arm/
4d1d36
4d1d36
4d1d36
%changelog
130f5c
* Tue Jun 30 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.2-9
130f5c
- Enable tests during build time
130f5c
- Disable building of *BSD sub packages
130f5c
130f5c
* Fri Jun 12 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.2-6
130f5c
- Resolves: rhbz#1206063
130f5c
dffe98
* Fri May 08 2015 Lokesh Mandvekar <lsm5@redhat.com> - 1.4.2-4
130f5c
- Revert previous build
dffe98
- bring back non-linux and non-x86_64 subpackages
dffe98
dffe98
* Mon May 04 2015 Lokesh Mandvekar <lsm5@redhat.com> - 1.4.2-3
dffe98
- update to 1.4.2 (iterative build)
dffe98
- remove non-linux and non-x86_64 subpackages
dffe98
dffe98
* Mon May 04 2015 Lokesh Mandvekar <lsm5@redhat.com> - 1.4.2-2
dffe98
- update to 1.4.2 (iterative build)
dffe98
- emacs and vim subpackages obsoleted as they're no longer provided
dffe98
dffe98
* Fri Apr 17 2015 Lokesh Mandvekar <lsm5@redhat.com> - 1.4.2-1
dffe98
- update to 1.4.2 - initial build
dffe98
- recompile CentOS7 virt SIG srpm for rhel7
dffe98
dffe98
* Wed Feb 18 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.2-1
dffe98
- updating to go1.4.2
dffe98
dffe98
* Fri Jan 16 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.1-1
dffe98
- updating to go1.4.1
dffe98
dffe98
* Fri Jan 02 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4-2
dffe98
- doc organizing
dffe98
dffe98
* Thu Dec 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.4-1
dffe98
- update to go1.4 release
dffe98
dffe98
* Wed Dec 03 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.99-3.1.4rc2
dffe98
- update to go1.4rc2
dffe98
dffe98
* Mon Nov 17 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.99-2.1.4rc1
dffe98
- update to go1.4rc1
dffe98
dffe98
* Thu Oct 30 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.99-1.1.4beta1
dffe98
- update to go1.4beta1
dffe98
dffe98
* Thu Oct 30 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.3-3
dffe98
- macros will need to be in their own rpm
dffe98
dffe98
* Fri Oct 24 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.3-2
dffe98
- split out rpm macros (bz1156129)
dffe98
- progress on gccgo accomodation
9b5743
9b5743
* Wed Oct 01 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.3-1
9b5743
- update to go1.3.3 (bz1146882)
9b5743
9b5743
* Mon Sep 29 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.2-1
9b5743
- update to go1.3.2 (bz1147324)
9b5743
9b5743
* Thu Sep 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.1-3
9b5743
- patching the tzinfo failure
9b5743
9b5743
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
9b5743
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9b5743
9b5743
* Wed Aug 13 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.1-1
9b5743
- update to go1.3.1
9b5743
9b5743
* Wed Aug 13 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-11
9b5743
- merged a line wrong
9b5743
9b5743
* Wed Aug 13 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-10
9b5743
- more work to get cgo.a timestamps to line up, due to build-env
9b5743
- explicitly list all the files and directories for the source and packages trees
9b5743
- touch all the built archives to be the same
9b5743
9b5743
* Mon Aug 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-9
9b5743
- make golang-src 'noarch' again, since that was not a fix, and takes up more space
9b5743
9b5743
* Mon Aug 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-8
9b5743
- update timestamps of source files during %%install bz1099206
9b5743
9b5743
* Fri Aug 08 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-7
9b5743
- update timestamps of source during %%install bz1099206
9b5743
9b5743
* Wed Aug 06 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-6
9b5743
- make the source subpackage arch'ed, instead of noarch
9b5743
9b5743
* Mon Jul 21 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-5
9b5743
- fix the writing of pax headers
9b5743
9b5743
* Tue Jul 15 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-4
9b5743
- fix the loading of gdb safe-path. bz981356
9b5743
9b5743
* Tue Jul 08 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-3
9b5743
- `go install std` requires gcc, to build cgo. bz1105901, bz1101508
9b5743
9b5743
* Mon Jul 07 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-2
9b5743
- archive/tar memory allocation improvements
9b5743
9b5743
* Thu Jun 19 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-1
9b5743
- update to go1.3
9b5743
9b5743
* Fri Jun 13 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3rc2-1
9b5743
- update to go1.3rc2
9b5743
9b5743
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3rc1-2
9b5743
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9b5743
9b5743
* Tue Jun 03 2014 Vincent Batts <vbatts@redhat.com> 1.3rc1-1
9b5743
- update to go1.3rc1
9b5743
- new arch file shuffling
9b5743
9b5743
* Wed May 21 2014 Vincent Batts <vbatts@redhat.com> 1.3beta2-1
9b5743
- update to go1.3beta2
9b5743
- no longer provides go-mode for xemacs (emacs only)
9b5743
9b5743
* Wed May 21 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-7
9b5743
- bz1099206 ghost files are not what is needed
9b5743
9b5743
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-6
9b5743
- bz1099206 more fixing. The packages %%post need golang-bin present first
9b5743
9b5743
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-5
9b5743
- bz1099206 more fixing. Let go fix its own timestamps and freshness
9b5743
9b5743
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-4
9b5743
- fix the existence and alternatives of `go` and `gofmt`
9b5743
9b5743
* Mon May 19 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-3
9b5743
- bz1099206 fix timestamp issue caused by koji builders
9b5743
9b5743
* Fri May 09 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-2
9b5743
- more arch file shuffling
9b5743
9b5743
* Fri May 09 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-1
9b5743
- update to go1.2.2
9b5743
9b5743
* Thu May 08 2014 Vincent Batts <vbatts@redhat.com> 1.2.1-8
9b5743
- RHEL6 rpm macros can't %%exlude missing files
9b5743
9b5743
* Wed May 07 2014 Vincent Batts <vbatts@redhat.com> 1.2.1-7
9b5743
- missed two arch-dependent src files
9b5743
9b5743
* Wed May 07 2014 Vincent Batts <vbatts@redhat.com> 1.2.1-6
9b5743
- put generated arch-dependent src in their respective RPMs
9b5743
9b5743
* Fri Apr 11 2014 Vincent Batts <vbatts@redhat.com> 1.2.1-5
9b5743
- skip test that is causing a SIGABRT on fc21 bz1086900
9b5743
9b5743
* Thu Apr 10 2014 Vincent Batts <vbatts@fedoraproject.org> 1.2.1-4
9b5743
- fixing file and directory ownership bz1010713
9b5743
4d1d36
* Wed Apr 09 2014 Vincent Batts <vbatts@fedoraproject.org> 1.2.1-3
4d1d36
- including more to macros (%%go_arches)
4d1d36
- set a standard goroot as /usr/lib/golang, regardless of arch
4d1d36
- include sub-packages for compiler toolchains, for all golang supported architectures
4d1d36
4d1d36
* Wed Mar 26 2014 Vincent Batts <vbatts@fedoraproject.org> 1.2.1-2
4d1d36
- provide a system rpm macros. Starting with %gopath
4d1d36
4d1d36
* Tue Mar 04 2014 Adam Miller <maxamillion@fedoraproject.org> 1.2.1-1
4d1d36
- Update to latest upstream
4d1d36
9b5743
* Thu Feb 20 2014 Adam Miller <maxamillion@fedoraproject.org> 1.2-7
4d1d36
- Remove  _BSD_SOURCE and _SVID_SOURCE, they are deprecated in recent
4d1d36
  versions of glibc and aren't needed
4d1d36
4d1d36
* Wed Feb 19 2014 Adam Miller <maxamillion@fedoraproject.org> 1.2-6
4d1d36
- pull in upstream archive/tar implementation that supports xattr for
4d1d36
  docker 0.8.1
4d1d36
4d1d36
* Tue Feb 18 2014 Vincent Batts <vbatts@redhat.com> 1.2-5
4d1d36
- provide 'go', so users can yum install 'go'
4d1d36
4d1d36
* Fri Jan 24 2014 Vincent Batts <vbatts@redhat.com> 1.2-4
4d1d36
- skip a flaky test that is sporadically failing on the build server
4d1d36
4d1d36
* Thu Jan 16 2014 Vincent Batts <vbatts@redhat.com> 1.2-3
4d1d36
- remove golang-godoc dependency. cyclic dependency on compiling godoc
4d1d36
4d1d36
* Wed Dec 18 2013 Vincent Batts <vbatts@redhat.com> - 1.2-2
4d1d36
- removing P224 ECC curve
4d1d36
4d1d36
* Mon Dec 2 2013 Vincent Batts <vbatts@fedoraproject.org> - 1.2-1
4d1d36
- Update to upstream 1.2 release
4d1d36
- remove the pax tar patches
4d1d36
4d1d36
* Tue Nov 26 2013 Vincent Batts <vbatts@redhat.com> - 1.1.2-8
4d1d36
- fix the rpmspec conditional for rhel and fedora
4d1d36
4d1d36
* Thu Nov 21 2013 Vincent Batts <vbatts@redhat.com> - 1.1.2-7
4d1d36
- patch tests for testing on rawhide
4d1d36
- let the same spec work for rhel and fedora
4d1d36
4d1d36
* Wed Nov 20 2013 Vincent Batts <vbatts@redhat.com> - 1.1.2-6
4d1d36
- don't symlink /usr/bin out to ../lib..., move the file
4d1d36
- seperate out godoc, to accomodate the go.tools godoc
4d1d36
4d1d36
* Fri Sep 20 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-5
4d1d36
- Pull upstream patches for BZ#1010271
4d1d36
- Add glibc requirement that got dropped because of meta dep fix
4d1d36
4d1d36
* Fri Aug 30 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-4
4d1d36
- fix the libc meta dependency (thanks to vbatts [at] redhat.com for the fix)
4d1d36
4d1d36
* Tue Aug 27 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-3
4d1d36
- Revert incorrect merged changelog
4d1d36
4d1d36
* Tue Aug 27 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-2
4d1d36
- This was reverted, just a placeholder changelog entry for bad merge
4d1d36
4d1d36
* Tue Aug 20 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-1
4d1d36
- Update to latest upstream
4d1d36
4d1d36
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-7
4d1d36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4d1d36
4d1d36
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.1.1-6
4d1d36
- Perl 5.18 rebuild
4d1d36
4d1d36
* Wed Jul 10 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-5
4d1d36
- Blacklist testdata files from prelink
4d1d36
- Again try to fix #973842
4d1d36
4d1d36
* Fri Jul  5 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-4
4d1d36
- Move src to libdir for now (#973842) (upstream issue https://code.google.com/p/go/issues/detail?id=5830)
4d1d36
- Eliminate noarch data package to work around RPM bug (#975909)
4d1d36
- Try to add runtime-gdb.py to the gdb safe-path (#981356)
4d1d36
4d1d36
* Wed Jun 19 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-3
4d1d36
- Use lua for pretrans (http://fedoraproject.org/wiki/Packaging:Guidelines#The_.25pretrans_scriptlet)
4d1d36
4d1d36
* Mon Jun 17 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-2
4d1d36
- Hopefully really fix #973842
4d1d36
- Fix update from pre-1.1.1 (#974840)
4d1d36
4d1d36
* Thu Jun 13 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-1
4d1d36
- Update to 1.1.1
4d1d36
- Fix basically useless package (#973842)
4d1d36
4d1d36
* Sat May 25 2013 Dan HorĂ¡k <dan[at]danny.cz> - 1.1-3
4d1d36
- set ExclusiveArch
4d1d36
4d1d36
* Fri May 24 2013 Adam Goode <adam@spicenitz.org> - 1.1-2
4d1d36
- Fix noarch package discrepancies
4d1d36
4d1d36
* Fri May 24 2013 Adam Goode <adam@spicenitz.org> - 1.1-1
4d1d36
- Initial Fedora release.
4d1d36
- Update to 1.1
4d1d36
4d1d36
* Thu May  9 2013 Adam Goode <adam@spicenitz.org> - 1.1-0.3.rc3
4d1d36
- Update to rc3
4d1d36
4d1d36
* Thu Apr 11 2013 Adam Goode <adam@spicenitz.org> - 1.1-0.2.beta2
4d1d36
- Update to beta2
4d1d36
4d1d36
* Tue Apr  9 2013 Adam Goode <adam@spicenitz.org> - 1.1-0.1.beta1
4d1d36
- Initial packaging.