Summary: A tool that inspect which pages of a file or files are being cached by the Linux kernel Name: pcstat Version: 1 Release: 6%{?dist} License: Apache URL: https://github.com/tobert/pcstat Group: Development/Debuggers Vendor: VMware, Inc. Distribution: Photon Source0: https://github.com/tobert/pcstat/archive/pcstat-1.zip %define sha1 pcstat=cd67c42d291763597dbe3fb19e8e367c54a4a898 Source1: https://github.com/golang/sys/golang-sys-08-02-2017.zip %define sha1 golang-sys=7f713451011d127755448c6603c15dc907bc47bc Patch0: pcstat-aarch64-support.patch BuildRequires: unzip go audit git Requires: go %description A tool that inspect which pages of a file or files are being cached by the Linux kernel %prep %setup -qn pcstat-master %patch0 -p1 %build cd .. unzip %{SOURCE1} mkdir -p build/src/github.com/tobert/pcstat mkdir -p build/src/golang.org/x/sys mkdir -p build/bin cp -r pcstat-master/* build/src/github.com/tobert/pcstat/. cp -r sys-master/* build/src/golang.org/x/sys cd build export GOPATH=`pwd` cd bin export GOBIN=`pwd` export PATH=$PATH:$GOBIN cd ../src/github.com/tobert/pcstat go build cd pcstat go build go install %install mkdir -p %{buildroot}/%{_bindir} cp ../build/bin/pcstat %{buildroot}/%{_bindir} %clean rm -rf %{buildroot}/* %files %defattr(-,root,root) %{_bindir}/pcstat %changelog * Wed Jan 03 2018 Alexey Makhalov 1-6 - Aarch64 support * Wed Aug 02 2017 Dheeraj Shetty 1-5 - Remove the build time dependencies and avoid downloading from github * Tue Mar 07 2017 XIaolin Li 1-4 - Moved executable from /usr/local/bin to /usr/bin. * Fri Feb 10 2017 Xiaolin Li 1-3 - Fix the build. * Tue May 24 2016 Priyesh Padmavilasom 1-2 - GA - Bump release of all rpms * Wed Nov 25 2015 Harish Udaiya Kumar 0.7.3-1 - Initial build. First version