Change-Id: Ib3bc3b2e7a6af297701d843aaf3042a75a0f0ccb
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3399
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: A tool that inspect which pages of a file or files are being cached by the Linux kernel |
| 2 | 2 |
Name: pcstat |
| 3 | 3 |
Version: 1 |
| 4 |
-Release: 4%{?dist}
|
|
| 4 |
+Release: 5%{?dist}
|
|
| 5 | 5 |
License: Apache |
| 6 | 6 |
URL: https://github.com/tobert/pcstat |
| 7 | 7 |
Group: Development/Debuggers |
| ... | ... |
@@ -9,6 +9,8 @@ Vendor: VMware, Inc. |
| 9 | 9 |
Distribution: Photon |
| 10 | 10 |
Source0: https://github.com/tobert/pcstat/archive/pcstat-1.zip |
| 11 | 11 |
%define sha1 pcstat=cd67c42d291763597dbe3fb19e8e367c54a4a898 |
| 12 |
+Source1: https://github.com/golang/sys/golang-sys-08-02-2017.zip |
|
| 13 |
+%define sha1 golang-sys=7f713451011d127755448c6603c15dc907bc47bc |
|
| 12 | 14 |
BuildRequires: unzip go audit git |
| 13 | 15 |
Requires: go |
| 14 | 16 |
%description |
| ... | ... |
@@ -18,15 +20,17 @@ A tool that inspect which pages of a file or files are being cached by the Linux |
| 18 | 18 |
%setup -qn pcstat-master |
| 19 | 19 |
%build |
| 20 | 20 |
cd .. |
| 21 |
+unzip %{SOURCE1}
|
|
| 21 | 22 |
mkdir -p build/src/github.com/tobert/pcstat |
| 23 |
+mkdir -p build/src/golang.org/x/sys |
|
| 22 | 24 |
mkdir -p build/bin |
| 23 | 25 |
cp -r pcstat-master/* build/src/github.com/tobert/pcstat/. |
| 26 |
+cp -r sys-master/* build/src/golang.org/x/sys |
|
| 24 | 27 |
cd build |
| 25 | 28 |
export GOPATH=`pwd` |
| 26 | 29 |
cd bin |
| 27 | 30 |
export GOBIN=`pwd` |
| 28 | 31 |
export PATH=$PATH:$GOBIN |
| 29 |
-go get golang.org/x/sys/unix |
|
| 30 | 32 |
cd ../src/github.com/tobert/pcstat |
| 31 | 33 |
go build |
| 32 | 34 |
cd pcstat |
| ... | ... |
@@ -45,6 +49,8 @@ rm -rf %{buildroot}/*
|
| 45 | 45 |
%{_bindir}/pcstat
|
| 46 | 46 |
|
| 47 | 47 |
%changelog |
| 48 |
+* Wed Aug 02 2017 Dheeraj Shetty <dheerajs@vmware.com> 1-5 |
|
| 49 |
+- Remove the build time dependencies and avoid downloading from github |
|
| 48 | 50 |
* Tue Mar 07 2017 XIaolin Li <xiaolinl@vmware.com> 1-4 |
| 49 | 51 |
- Moved executable from /usr/local/bin to /usr/bin. |
| 50 | 52 |
* Fri Feb 10 2017 Xiaolin Li <xiaolinl@vmware.com> 1-3 |