SPECS/glide/glide.spec
ea8a3d4a
 Summary:        Vendor Package Management for Goland
 Name:           glide
b55a65bd
 Version:        0.13.1
1a02949f
 Release:        2%{?dist}
ea8a3d4a
 License:        MIT
 URL:            https://github.com/Masterminds/glide
 Source0:        %{name}-%{version}.tar.gz
b55a65bd
 %define sha1 glide=c471dbae8556c8594a042b612fe569b3df0a1991
ea8a3d4a
 Group:          Development/Tools
 Vendor:         VMware, Inc.
 Distribution:   Photon
 BuildRequires:  git
1a02949f
 BuildRequires:  go = 1.9.4
ea8a3d4a
 BuildRequires:  perl
 
 %description
 Glide is a tool for managing the vendor directory within a Go package.
 
 %prep
 %setup
 
 %build
 mkdir -p ${GOPATH}/src/github.com/Masterminds/glide
 cp -r * ${GOPATH}/src/github.com/Masterminds/glide/.
 pushd ${GOPATH}/src/github.com/Masterminds/glide
 make VERSION=%{version} build
 
 %install
 pushd ${GOPATH}/src/github.com/Masterminds/glide
 make install
 install -vdm 755 %{buildroot}%{_bindir}
 install -vpm 0755 -t %{buildroot}%{_bindir}/ ./glide
 
 %files
 %defattr(-,root,root)
 %{_bindir}/glide
 
 %changelog
1a02949f
 *   Mon Sep 24 2018 Tapas Kundu <tkundu@vmware.com> 0.13.1-2
 -   Build using go version 1.9
b55a65bd
 *   Thu Sep 13 2018 Michelle Wang <michellew@vmware.com> 0.13.1-1
 -   Update version to 0.13.1.
ea8a3d4a
 *   Mon Aug 14 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.12.3-1
 -   glide for PhotonOS.