Browse code

Added latest version of go 1.10.4

Change-Id: I75aa1c6c2022edf9ce00c1dfc0f1d912b5b50be6
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5781
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Sharath George

Tapas Kundu authored on 2018/09/25 03:14:37
Showing 10 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Calico networking for CNI
2 2
 Name:           calico-cni
3 3
 Version:        1.11.2
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        ASL 2.0
6 6
 URL:            https://github.com/projectcalico/cni-plugin
7 7
 Source0:        %{name}-%{version}.tar.gz
... ...
@@ -13,7 +13,7 @@ Vendor:         VMware, Inc.
13 13
 Distribution:   Photon
14 14
 BuildRequires:  git
15 15
 BuildRequires:  glide
16
-BuildRequires:  go >= 1.7
16
+BuildRequires:  go = 1.9.4
17 17
 Requires:       cni
18 18
 %define debug_package %{nil}
19 19
 
... ...
@@ -59,6 +59,8 @@ install -vpm 0755 -t %{buildroot}/usr/share/calico-cni/k8s/ k8s-install/scripts/
59 59
 /usr/share/calico-cni/k8s/calico.conf.default
60 60
 
61 61
 %changelog
62
+*   Mon Sep 24 2018 Tapas Kundu <tkundu@vmware.com> 1.11.2-2
63
+-   Build using go version 1.9
62 64
 *   Fri May 18 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 1.11.2-1
63 65
 -   calico-cni v1.11.2
64 66
 *   Thu Dec 07 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.11.0-2
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:       confd is a lightweight configuration management tool
2 2
 Name:          calico-confd
3 3
 Version:       0.14.0
4
-Release:       1%{?dist}
4
+Release:       2%{?dist}
5 5
 Group:         Applications/System
6 6
 Vendor:        VMware, Inc.
7 7
 License:       MIT
... ...
@@ -9,7 +9,7 @@ URL:           https://github.com/kelseyhightower/confd/releases
9 9
 Source0:       %{name}-%{version}.tar.gz
10 10
 Distribution:  Photon
11 11
 BuildRequires: glide
12
-BuildRequires: go >= 1.7
12
+BuildRequires: go = 1.9.4
13 13
 %define sha1 calico-confd=1ee7b4f992737f28a970dfeeb35faa35d1601a92
14 14
 
15 15
 %description
... ...
@@ -35,6 +35,8 @@ install -vpm 0755 -t %{buildroot}%{_bindir}/ bin/confd
35 35
 %{_bindir}/confd
36 36
 
37 37
 %changelog
38
+*    Mon Sep 24 2018 Tapas Kundu <tkundu@vmware.com> 0.14.0-2
39
+-    Build using go version 1.9
38 40
 *    Fri Nov 03 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.14.0-1
39 41
 -    Calico confd v0.14.0
40 42
 *    Fri Aug 18 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.12.0-1
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:       Docker libnetwork plugin for Calico
2 2
 Name:          calico-libnetwork
3 3
 Version:       1.1.0
4
-Release:       1%{?dist}
4
+Release:       2%{?dist}
5 5
 Group:         Applications/System
6 6
 Vendor:        VMware, Inc.
7 7
 License:       Apache-2.0
... ...
@@ -10,7 +10,7 @@ Source0:       %{name}-%{version}.tar.gz
10 10
 Distribution:  Photon
11 11
 BuildRequires: git
12 12
 BuildRequires: glide
13
-BuildRequires: go >= 1.7
13
+BuildRequires: go = 1.9.4
14 14
 %define sha1 calico-libnetwork=bed540d714a7b2e0d0138556894541109dc7b792
15 15
 %define debug_package %{nil}
16 16
 
... ...
@@ -39,5 +39,7 @@ install -vpm 0755 -t %{buildroot}/usr/share/calico/docker/ dist/libnetwork-plugi
39 39
 /usr/share/calico/docker/libnetwork-plugin
40 40
 
41 41
 %changelog
42
+*    Mon Sep 24 2018 Tapas Kundu <tkundu@vmware.com> 1.1.0-2
43
+-    Build using go version 1.9
42 44
 *    Fri Aug 18 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.1.0-1
43 45
 -    Calico libnetwork plugin for PhotonOS.
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Calico node and documentation for project calico.
2 2
 Name:           calico
3 3
 Version:        2.6.7
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        Apache-2.0
6 6
 URL:            https://github.com/projectcalico/calico
7 7
 Source0:        %{name}-%{version}.tar.gz
... ...
@@ -11,11 +11,11 @@ Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12 12
 BuildRequires:  git
13 13
 BuildRequires:  glide
14
-BuildRequires:  go >= 1.7
14
+BuildRequires:  go = 1.9.4
15 15
 BuildRequires:  make
16 16
 
17 17
 %description
18
-Calico node is a container that bundles together various components reqiured for networking containers using project calico. This includes key components such as felix agent for programming routes and ACLs, BIRD routing daemon, and confd datastore monitor engine. 
18
+Calico node is a container that bundles together various components reqiured for networking containers using project calico. This includes key components such as felix agent for programming routes and ACLs, BIRD routing daemon, and confd datastore monitor engine.
19 19
 
20 20
 %prep
21 21
 %setup
... ...
@@ -50,6 +50,8 @@ sed -i 's/. startup.env/source \/startup.env/g' %{buildroot}/usr/share/calico/do
50 50
 /usr/share/calico/docker/fs/*
51 51
 
52 52
 %changelog
53
+*   Mon Sep 24 2018 Tapas Kundu <tkundu@vmware.com> 2.6.7-2
54
+-   Build using go version 1.9
53 55
 *   Fri May 18 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 2.6.7-1
54 56
 -   Calico Node v2.6.7.
55 57
 *   Tue Dec 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.6.3-1
... ...
@@ -4,7 +4,7 @@
4 4
 Summary:        Docker
5 5
 Name:           docker
6 6
 Version:        17.06.0
7
-Release:        6%{?dist}
7
+Release:        7%{?dist}
8 8
 License:        ASL 2.0
9 9
 URL:            http://docs.docker.com
10 10
 Group:          Applications/File
... ...
@@ -39,7 +39,7 @@ BuildRequires:  libltdl-devel
39 39
 BuildRequires:  libgcc-devel
40 40
 BuildRequires:  glibc-devel
41 41
 BuildRequires:  unzip
42
-BuildRequires:  go
42
+BuildRequires:  go = 1.9.4
43 43
 BuildRequires:  sed
44 44
 BuildRequires:  cmake
45 45
 BuildRequires:  findutils
... ...
@@ -225,6 +225,8 @@ rm -rf %{buildroot}/*
225 225
 %{_datadir}/vim/vimfiles/syntax/dockerfile.vim
226 226
 
227 227
 %changelog
228
+*   Tue Sep 25 2018 Tapas Kundu <tkundu@vmware.com> 17.06.0-7
229
+-   Use go 1.9 rather than latest go toolchain
228 230
 *   Thu Sep 20 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 17.06.0-6
229 231
 -   Fix AppArmor not being applied to exec processes.
230 232
 *   Thu Aug 30 2018 Keerthana K <keerthanak@vmware.com> 17.06.0-5
... ...
@@ -256,7 +258,7 @@ rm -rf %{buildroot}/*
256 256
 *   Tue Jun 28 2016 Anish Swaminathan <anishs@vmware.com> 1.11.2-1
257 257
 -   Upgraded to version 1.11.2
258 258
 *   Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com>  1.11.0-6
259
--   Fixed logic to restart the active services after upgrade 
259
+-   Fixed logic to restart the active services after upgrade
260 260
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.11.0-5
261 261
 -   GA - Bump release of all rpms
262 262
 *   Tue May 10 2016 Anish Swaminathan <anishs@vmware.com> 1.11.0-4
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Vendor Package Management for Goland
2 2
 Name:           glide
3 3
 Version:        0.13.1
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        MIT
6 6
 URL:            https://github.com/Masterminds/glide
7 7
 Source0:        %{name}-%{version}.tar.gz
... ...
@@ -10,7 +10,7 @@ Group:          Development/Tools
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12 12
 BuildRequires:  git
13
-BuildRequires:  go >= 1.7
13
+BuildRequires:  go = 1.9.4
14 14
 BuildRequires:  perl
15 15
 
16 16
 %description
... ...
@@ -36,6 +36,8 @@ install -vpm 0755 -t %{buildroot}%{_bindir}/ ./glide
36 36
 %{_bindir}/glide
37 37
 
38 38
 %changelog
39
+*   Mon Sep 24 2018 Tapas Kundu <tkundu@vmware.com> 0.13.1-2
40
+-   Build using go version 1.9
39 41
 *   Thu Sep 13 2018 Michelle Wang <michellew@vmware.com> 0.13.1-1
40 42
 -   Update version to 0.13.1.
41 43
 *   Mon Aug 14 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.12.3-1
42 44
new file mode 100644
... ...
@@ -0,0 +1,113 @@
0
+%global goroot          /usr/lib/golang
1
+%global gopath          %{_datadir}/gocode
2
+%ifarch aarch64
3
+%global gohostarch      arm64
4
+%else
5
+%global gohostarch      amd64
6
+%endif
7
+
8
+# rpmbuild magic to keep from having meta dependency on libc.so.6
9
+#%define _use_internal_dependency_generator 0
10
+#%define __find_requires %{nil}
11
+
12
+Summary:        Go
13
+Name:           go
14
+Version:        1.10.4
15
+Release:        1%{?dist}
16
+License:        BSD
17
+URL:            https://golang.org
18
+Group:          System Environment/Security
19
+Vendor:         VMware, Inc.
20
+Distribution:   Photon
21
+Source0:        https://dl.google.com/go/%{name}%{version}.src.tar.gz
22
+%define sha1    go=adcd9d0bbbc764fa4ff20c08eb4a5a527fa95d96
23
+Requires:       glibc
24
+
25
+%description
26
+Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
27
+
28
+%prep
29
+%setup -qn %{name}
30
+
31
+%build
32
+export GOHOSTOS=linux
33
+export GOHOSTARCH=%{gohostarch}
34
+export GOROOT_BOOTSTRAP=%{goroot}
35
+
36
+export GOROOT="`pwd`"
37
+export GOPATH=%{gopath}
38
+export GOROOT_FINAL=%{_bindir}/go
39
+rm -f  %{gopath}/src/runtime/*.c
40
+pushd src
41
+./make.bash --no-clean
42
+popd
43
+
44
+%install
45
+rm -rf %{buildroot}
46
+
47
+mkdir -p %{buildroot}%{_bindir}
48
+mkdir -p %{buildroot}%{goroot}
49
+
50
+cp -R api bin doc favicon.ico lib pkg robots.txt src misc VERSION %{buildroot}%{goroot}
51
+
52
+# remove the unnecessary zoneinfo file (Go will always use the system one first)
53
+rm -rfv %{buildroot}%{goroot}/lib/time
54
+
55
+# remove the doc Makefile
56
+rm -rfv %{buildroot}%{goroot}/doc/Makefile
57
+
58
+# put binaries to bindir, linked to the arch we're building,
59
+# leave the arch independent pieces in %{goroot}
60
+mkdir -p %{buildroot}%{goroot}/bin/linux_%{gohostarch}
61
+ln -sfv ../go %{buildroot}%{goroot}/bin/linux_%{gohostarch}/go
62
+ln -sfv ../gofmt %{buildroot}%{goroot}/bin/linux_%{gohostarch}/gofmt
63
+ln -sfv %{goroot}/bin/gofmt %{buildroot}%{_bindir}/gofmt
64
+ln -sfv %{goroot}/bin/go %{buildroot}%{_bindir}/go
65
+
66
+# ensure these exist and are owned
67
+mkdir -p %{buildroot}%{gopath}/src/github.com/
68
+mkdir -p %{buildroot}%{gopath}/src/bitbucket.org/
69
+mkdir -p %{buildroot}%{gopath}/src/code.google.com/
70
+mkdir -p %{buildroot}%{gopath}/src/code.google.com/p/
71
+
72
+install -vdm755 %{buildroot}/etc/profile.d
73
+cat >> %{buildroot}/etc/profile.d/go-exports.sh <<- "EOF"
74
+export GOROOT=%{goroot}
75
+export GOPATH=%{_datadir}/gocode
76
+export GOHOSTOS=linux
77
+export GOHOSTARCH=%{gohostarch}
78
+export GOOS=linux
79
+EOF
80
+#chown -R root:root %{buildroot}/etc/profile.d/go-exports.sh
81
+
82
+
83
+#%{_fixperms} %{buildroot}/*
84
+
85
+%post -p /sbin/ldconfig
86
+
87
+%postun
88
+/sbin/ldconfig
89
+if [ $1 -eq 0 ]; then
90
+  #This is uninstall
91
+  rm /etc/profile.d/go-exports.sh
92
+  rm -rf /opt/%{name}
93
+  exit 0
94
+fi
95
+
96
+%clean
97
+rm -rf %{buildroot}/*
98
+
99
+%files
100
+%defattr(-,root,root)
101
+%exclude %{goroot}/src/*.rc
102
+%exclude %{goroot}/include/plan9
103
+/etc/profile.d/go-exports.sh
104
+%{goroot}/*
105
+%{gopath}/src
106
+%exclude %{goroot}/src/pkg/debug/dwarf/testdata
107
+%exclude %{goroot}/src/pkg/debug/elf/testdata
108
+%{_bindir}/*
109
+
110
+%changelog
111
+*   Mon Sep 24 2018 Tapas Kundu <tkundu@vmware.com> 1.10.4-1
112
+-   Initial build for 1.10.4
0 113
new file mode 100644
... ...
@@ -0,0 +1,148 @@
0
+
1
+%global goroot          /usr/lib/golang
2
+%global gopath          %{_datadir}/gocode
3
+%ifarch aarch64
4
+%global gohostarch      arm64
5
+%else
6
+%global gohostarch      amd64
7
+%endif
8
+
9
+# rpmbuild magic to keep from having meta dependency on libc.so.6
10
+%define _use_internal_dependency_generator 0
11
+%define __find_requires %{nil}
12
+
13
+Summary:        Go
14
+Name:           go
15
+Version:        1.9.4
16
+Release:        2%{?dist}
17
+License:        BSD
18
+URL:            https://golang.org
19
+Group:          System Environment/Security
20
+Vendor:         VMware, Inc.
21
+Distribution:   Photon
22
+Source0:        https://dl.google.com/go/%{name}%{version}.src.tar.gz
23
+%define sha1    go=12b0ecee83525cd594f4fbf30380d4832e06f189
24
+Patch0:         go_imports_fix.patch
25
+Patch1:         CVE-2018-7187.patch
26
+Requires:       glibc
27
+
28
+%description
29
+Go is an open source programming language that makes it easy to build simple, reliable, and efficient software
30
+
31
+%prep
32
+%setup -qn %{name}
33
+%patch0 -p1
34
+%patch1 -p1
35
+
36
+%build
37
+export GOHOSTOS=linux
38
+export GOHOSTARCH=%{gohostarch}
39
+export GOROOT_BOOTSTRAP=%{goroot}
40
+
41
+export GOROOT="`pwd`"
42
+export GOPATH=%{gopath}
43
+export GOROOT_FINAL=%{_bindir}/go
44
+rm -f  %{gopath}/src/runtime/*.c
45
+pushd src
46
+./make.bash --no-clean
47
+popd
48
+
49
+%install
50
+rm -rf %{buildroot}
51
+
52
+mkdir -p %{buildroot}%{_bindir}
53
+mkdir -p %{buildroot}%{goroot}
54
+
55
+cp -R api bin doc favicon.ico lib pkg robots.txt src misc VERSION %{buildroot}%{goroot}
56
+
57
+# remove the unnecessary zoneinfo file (Go will always use the system one first)
58
+rm -rfv %{buildroot}%{goroot}/lib/time
59
+
60
+# remove the doc Makefile
61
+rm -rfv %{buildroot}%{goroot}/doc/Makefile
62
+
63
+# put binaries to bindir, linked to the arch we're building,
64
+# leave the arch independent pieces in %{goroot}
65
+mkdir -p %{buildroot}%{goroot}/bin/linux_%{gohostarch}
66
+ln -sfv ../go %{buildroot}%{goroot}/bin/linux_%{gohostarch}/go
67
+ln -sfv ../gofmt %{buildroot}%{goroot}/bin/linux_%{gohostarch}/gofmt
68
+ln -sfv %{goroot}/bin/gofmt %{buildroot}%{_bindir}/gofmt
69
+ln -sfv %{goroot}/bin/go %{buildroot}%{_bindir}/go
70
+
71
+# ensure these exist and are owned
72
+mkdir -p %{buildroot}%{gopath}/src/github.com/
73
+mkdir -p %{buildroot}%{gopath}/src/bitbucket.org/
74
+mkdir -p %{buildroot}%{gopath}/src/code.google.com/
75
+mkdir -p %{buildroot}%{gopath}/src/code.google.com/p/
76
+
77
+install -vdm755 %{buildroot}/etc/profile.d
78
+cat >> %{buildroot}/etc/profile.d/go-exports.sh <<- "EOF"
79
+export GOROOT=%{goroot}
80
+export GOPATH=%{_datadir}/gocode
81
+export GOHOSTOS=linux
82
+export GOHOSTARCH=%{gohostarch}
83
+export GOOS=linux
84
+EOF
85
+#chown -R root:root %{buildroot}/etc/profile.d/go-exports.sh
86
+
87
+
88
+#%{_fixperms} %{buildroot}/*
89
+
90
+%post -p /sbin/ldconfig
91
+
92
+%postun
93
+/sbin/ldconfig
94
+if [ $1 -eq 0 ]; then
95
+  #This is uninstall
96
+  rm /etc/profile.d/go-exports.sh
97
+  rm -rf /opt/%{name}
98
+  exit 0
99
+fi
100
+
101
+%clean
102
+rm -rf %{buildroot}/*
103
+
104
+%files
105
+%defattr(-,root,root)
106
+%exclude %{goroot}/src/*.rc
107
+%exclude %{goroot}/include/plan9
108
+/etc/profile.d/go-exports.sh
109
+%{goroot}/*
110
+%{gopath}/src
111
+%exclude %{goroot}/src/pkg/debug/dwarf/testdata
112
+%exclude %{goroot}/src/pkg/debug/elf/testdata
113
+%{_bindir}/*
114
+
115
+%changelog
116
+*   Mon Apr 02 2018 Dheeraj Shetty <dheerajs@vmware.com> 1.9.4-2
117
+-   Fix for CVE-2018-7187
118
+*   Thu Mar 15 2018 Xiaolin Li <xiaolinl@vmware.com> 1.9.4-1
119
+-   Update to golang release v1.9.4
120
+*   Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.9.1-2
121
+-   Aarch64 support
122
+*   Wed Nov 01 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.9.1-1
123
+-   Update to golang release v1.9.1
124
+*   Wed May 31 2017 Xiaolin Li <xiaolinl@vmware.com> 1.8.1-2
125
+-   Remove mercurial from buildrequires and requires.
126
+*   Tue Apr 11 2017 Danut Moraru <dmoraru@vmware.com> 1.8.1-1
127
+-   Update Golang to version 1.8.1, updated patch0
128
+*   Wed Dec 28 2016 Xiaolin Li <xiaolinl@vmware.com> 1.7.4-1
129
+-   Updated Golang to 1.7.4.
130
+*   Thu Oct 06 2016 ChangLee <changlee@vmware.com> 1.6.3-2
131
+-   Modified %check
132
+*   Wed Jul 27 2016 Anish Swaminathan <anishs@vmware.com> 1.6.3-1
133
+-   Update Golang to version 1.6.3 - fixes CVE 2016-5386
134
+*   Fri Jul 8 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.6.2-1
135
+-   Updated the Golang to version 1.6.2
136
+*   Thu Jun 2 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.4.2-5
137
+-   Fix script syntax
138
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.4.2-4
139
+-   GA - Bump release of all rpms
140
+*   Thu May 05 2016 Kumar Kaushik <kaushikk@vmware.com> 1.4.2-3
141
+-   Handling upgrade scenario pre/post/un scripts.
142
+*   Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 1.4.2-2
143
+-   Edit post script.
144
+*   Mon Aug 03 2015 Vinay Kulkarni <kulkarniv@vmware.com> 1.4.2-1
145
+-   Update to golang release version 1.4.2
146
+*   Fri Oct 17 2014 Divya Thaluru <dthaluru@vmware.com> 1.3.3-1
147
+-   Initial build.  First version
0 148
deleted file mode 100644
... ...
@@ -1,148 +0,0 @@
1
-
2
-%global goroot          /usr/lib/golang
3
-%global gopath          %{_datadir}/gocode
4
-%ifarch aarch64
5
-%global gohostarch      arm64
6
-%else
7
-%global gohostarch      amd64
8
-%endif
9
-
10
-# rpmbuild magic to keep from having meta dependency on libc.so.6
11
-%define _use_internal_dependency_generator 0
12
-%define __find_requires %{nil}
13
-
14
-Summary:        Go 
15
-Name:           go
16
-Version:        1.9.4
17
-Release:        2%{?dist}
18
-License:        BSD
19
-URL:            https://golang.org
20
-Group:          System Environment/Security
21
-Vendor:         VMware, Inc.
22
-Distribution:   Photon
23
-Source0:        https://dl.google.com/go/%{name}%{version}.src.tar.gz
24
-%define sha1    go=12b0ecee83525cd594f4fbf30380d4832e06f189
25
-Patch0:         go_imports_fix.patch
26
-Patch1:         CVE-2018-7187.patch
27
-Requires:       glibc
28
-
29
-%description
30
-Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.  
31
-
32
-%prep
33
-%setup -qn %{name}
34
-%patch0 -p1
35
-%patch1 -p1
36
-
37
-%build
38
-export GOHOSTOS=linux
39
-export GOHOSTARCH=%{gohostarch}
40
-export GOROOT_BOOTSTRAP=%{goroot}
41
-
42
-export GOROOT="`pwd`"
43
-export GOPATH=%{gopath}
44
-export GOROOT_FINAL=%{_bindir}/go
45
-rm -f  %{gopath}/src/runtime/*.c 
46
-pushd src
47
-./make.bash --no-clean
48
-popd
49
-
50
-%install
51
-rm -rf %{buildroot}
52
-
53
-mkdir -p %{buildroot}%{_bindir}
54
-mkdir -p %{buildroot}%{goroot}
55
-
56
-cp -R api bin doc favicon.ico lib pkg robots.txt src misc VERSION %{buildroot}%{goroot}
57
-
58
-# remove the unnecessary zoneinfo file (Go will always use the system one first)
59
-rm -rfv %{buildroot}%{goroot}/lib/time
60
-
61
-# remove the doc Makefile
62
-rm -rfv %{buildroot}%{goroot}/doc/Makefile
63
-
64
-# put binaries to bindir, linked to the arch we're building,
65
-# leave the arch independent pieces in %{goroot}
66
-mkdir -p %{buildroot}%{goroot}/bin/linux_%{gohostarch}
67
-ln -sfv ../go %{buildroot}%{goroot}/bin/linux_%{gohostarch}/go
68
-ln -sfv ../gofmt %{buildroot}%{goroot}/bin/linux_%{gohostarch}/gofmt
69
-ln -sfv %{goroot}/bin/gofmt %{buildroot}%{_bindir}/gofmt
70
-ln -sfv %{goroot}/bin/go %{buildroot}%{_bindir}/go
71
-
72
-# ensure these exist and are owned
73
-mkdir -p %{buildroot}%{gopath}/src/github.com/
74
-mkdir -p %{buildroot}%{gopath}/src/bitbucket.org/
75
-mkdir -p %{buildroot}%{gopath}/src/code.google.com/
76
-mkdir -p %{buildroot}%{gopath}/src/code.google.com/p/
77
-
78
-install -vdm755 %{buildroot}/etc/profile.d
79
-cat >> %{buildroot}/etc/profile.d/go-exports.sh <<- "EOF"
80
-export GOROOT=%{goroot}
81
-export GOPATH=%{_datadir}/gocode
82
-export GOHOSTOS=linux
83
-export GOHOSTARCH=%{gohostarch}
84
-export GOOS=linux
85
-EOF
86
-#chown -R root:root %{buildroot}/etc/profile.d/go-exports.sh
87
-
88
-
89
-#%{_fixperms} %{buildroot}/*
90
-
91
-%post -p /sbin/ldconfig
92
-
93
-%postun
94
-/sbin/ldconfig
95
-if [ $1 -eq 0 ]; then
96
-  #This is uninstall
97
-  rm /etc/profile.d/go-exports.sh
98
-  rm -rf /opt/%{name}
99
-  exit 0
100
-fi
101
-
102
-%clean
103
-rm -rf %{buildroot}/*
104
-
105
-%files
106
-%defattr(-,root,root)
107
-%exclude %{goroot}/src/*.rc
108
-%exclude %{goroot}/include/plan9
109
-/etc/profile.d/go-exports.sh
110
-%{goroot}/*
111
-%{gopath}/src
112
-%exclude %{goroot}/src/pkg/debug/dwarf/testdata
113
-%exclude %{goroot}/src/pkg/debug/elf/testdata
114
-%{_bindir}/*
115
-
116
-%changelog
117
-*   Mon Apr 02 2018 Dheeraj Shetty <dheerajs@vmware.com> 1.9.4-2
118
--   Fix for CVE-2018-7187
119
-*   Thu Mar 15 2018 Xiaolin Li <xiaolinl@vmware.com> 1.9.4-1
120
--   Update to golang release v1.9.4
121
-*   Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 1.9.1-2
122
--   Aarch64 support
123
-*   Wed Nov 01 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.9.1-1
124
--   Update to golang release v1.9.1
125
-*   Wed May 31 2017 Xiaolin Li <xiaolinl@vmware.com> 1.8.1-2
126
--   Remove mercurial from buildrequires and requires.
127
-*   Tue Apr 11 2017 Danut Moraru <dmoraru@vmware.com> 1.8.1-1
128
--   Update Golang to version 1.8.1, updated patch0
129
-*   Wed Dec 28 2016 Xiaolin Li <xiaolinl@vmware.com> 1.7.4-1
130
--   Updated Golang to 1.7.4.
131
-*   Thu Oct 06 2016 ChangLee <changlee@vmware.com> 1.6.3-2
132
--   Modified %check
133
-*   Wed Jul 27 2016 Anish Swaminathan <anishs@vmware.com> 1.6.3-1
134
--   Update Golang to version 1.6.3 - fixes CVE 2016-5386
135
-*   Fri Jul 8 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.6.2-1
136
--   Updated the Golang to version 1.6.2
137
-*   Thu Jun 2 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.4.2-5
138
--   Fix script syntax 
139
-*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.4.2-4
140
--   GA - Bump release of all rpms
141
-*   Thu May 05 2016 Kumar Kaushik <kaushikk@vmware.com> 1.4.2-3
142
--   Handling upgrade scenario pre/post/un scripts.
143
-*   Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 1.4.2-2
144
--   Edit post script.
145
-*   Mon Aug 03 2015 Vinay Kulkarni <kulkarniv@vmware.com> 1.4.2-1
146
--   Update to golang release version 1.4.2
147
-*   Fri Oct 17 2014 Divya Thaluru <dthaluru@vmware.com> 1.3.3-1
148
--   Initial build.  First version
... ...
@@ -1,18 +1,18 @@
1 1
 Summary:       BGP implementation in Go
2 2
 Name:          gobgp
3
-Version:       1.23
3
+Version:       1.33
4 4
 Release:       1%{?dist}
5 5
 Group:         Applications/System
6 6
 Vendor:        VMware, Inc.
7 7
 License:       Apache-2.0
8 8
 URL:           https://github.com/osrg/gobgp
9 9
 Source0:       %{name}-%{version}.tar.gz
10
-%define sha1 gobgp=3df002f61911cf56c33bd4350fe9d2ad39bcfca5
10
+%define sha1 gobgp=8bd87fc99895eef4fd80e4f4f2217df93b0cfea3
11 11
 Source1:       golang-dep-0.3.0.tar.gz
12 12
 %define sha1 golang-dep-0.3.0=e5e9952227930fe1e8632edc03d690bffc3e1132
13 13
 Distribution:  Photon
14 14
 BuildRequires: git
15
-BuildRequires: go >= 1.7
15
+BuildRequires: go = 1.9.4
16 16
 %define debug_package %{nil}
17 17
 
18 18
 %description
... ...
@@ -48,5 +48,7 @@ install ${GOPATH}/src/github.com/osrg/gobgp/dist/gobgpd %{buildroot}%{_bindir}/
48 48
 %doc LICENSE README.md
49 49
 
50 50
 %changelog
51
+*    Mon Sep 24 2018 Tapas Kundu <tkundu@vmware.com> 1.33-1
52
+-    Updated to 1.33 and Build using go version 1.9
51 53
 *    Mon Sep 11 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.23-1
52 54
 -    Go BGP daemon for PhotonOS.