ensure /usr/bin/go is present for the library %post
This commit is contained in:
parent
7619d5057c
commit
8bd3750385
23
golang.spec
23
golang.spec
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
Name: golang
|
Name: golang
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: The Go Programming Language
|
Summary: The Go Programming Language
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -221,6 +221,7 @@ Requires(postun): %{_sbindir}/update-alternatives
|
|||||||
Summary: Golang compiler toolchain to compile for linux 386
|
Summary: Golang compiler toolchain to compile for linux 386
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-linux-386
|
%description pkg-linux-386
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -228,6 +229,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for linux amd64
|
Summary: Golang compiler toolchain to compile for linux amd64
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-linux-amd64
|
%description pkg-linux-amd64
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -235,6 +237,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for linux arm
|
Summary: Golang compiler toolchain to compile for linux arm
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-linux-arm
|
%description pkg-linux-arm
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -242,6 +245,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for darwin 386
|
Summary: Golang compiler toolchain to compile for darwin 386
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-darwin-386
|
%description pkg-darwin-386
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -249,6 +253,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for darwin amd64
|
Summary: Golang compiler toolchain to compile for darwin amd64
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-darwin-amd64
|
%description pkg-darwin-amd64
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -256,6 +261,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for windows 386
|
Summary: Golang compiler toolchain to compile for windows 386
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-windows-386
|
%description pkg-windows-386
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -263,6 +269,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for windows amd64
|
Summary: Golang compiler toolchain to compile for windows amd64
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-windows-amd64
|
%description pkg-windows-amd64
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -270,6 +277,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for plan9 386
|
Summary: Golang compiler toolchain to compile for plan9 386
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-plan9-386
|
%description pkg-plan9-386
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -277,6 +285,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for plan9 amd64
|
Summary: Golang compiler toolchain to compile for plan9 amd64
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-plan9-amd64
|
%description pkg-plan9-amd64
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -284,6 +293,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for freebsd 386
|
Summary: Golang compiler toolchain to compile for freebsd 386
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-freebsd-386
|
%description pkg-freebsd-386
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -291,6 +301,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for freebsd amd64
|
Summary: Golang compiler toolchain to compile for freebsd amd64
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-freebsd-amd64
|
%description pkg-freebsd-amd64
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -298,6 +309,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for freebsd arm
|
Summary: Golang compiler toolchain to compile for freebsd arm
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-freebsd-arm
|
%description pkg-freebsd-arm
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -305,6 +317,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for netbsd 386
|
Summary: Golang compiler toolchain to compile for netbsd 386
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-netbsd-386
|
%description pkg-netbsd-386
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -312,6 +325,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for netbsd amd64
|
Summary: Golang compiler toolchain to compile for netbsd amd64
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-netbsd-amd64
|
%description pkg-netbsd-amd64
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -319,6 +333,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for netbsd arm
|
Summary: Golang compiler toolchain to compile for netbsd arm
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-netbsd-arm
|
%description pkg-netbsd-arm
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -326,6 +341,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for openbsd 386
|
Summary: Golang compiler toolchain to compile for openbsd 386
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-openbsd-386
|
%description pkg-openbsd-386
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -333,6 +349,7 @@ BuildArch: noarch
|
|||||||
Summary: Golang compiler toolchain to compile for openbsd amd64
|
Summary: Golang compiler toolchain to compile for openbsd amd64
|
||||||
Requires: go = %{version}-%{release}
|
Requires: go = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): golang-bin
|
||||||
%description pkg-openbsd-amd64
|
%description pkg-openbsd-amd64
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -342,6 +359,7 @@ BuildArch: noarch
|
|||||||
#Summary: Golang compiler toolchain to compile for openbsd arm
|
#Summary: Golang compiler toolchain to compile for openbsd arm
|
||||||
#Requires: go = %{version}-%{release}
|
#Requires: go = %{version}-%{release}
|
||||||
#BuildArch: noarch
|
#BuildArch: noarch
|
||||||
|
#Requires(post): golang-bin
|
||||||
#%description pkg-openbsd-arm
|
#%description pkg-openbsd-arm
|
||||||
#%{summary}
|
#%{summary}
|
||||||
|
|
||||||
@ -960,6 +978,9 @@ GOROOT=%{goroot} GOOS=openbsd GOARCH=amd64 go install std
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-6
|
||||||
|
- bz1099206 more fixing. The packages %%post need golang-bin present first
|
||||||
|
|
||||||
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-5
|
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-5
|
||||||
- bz1099206 more fixing. Let go fix its own timestamps and freshness
|
- bz1099206 more fixing. Let go fix its own timestamps and freshness
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user