|
|
|
@ -22,8 +22,8 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_opkg 0.9.0 |
|
|
|
|
%define V_dist 20210208 |
|
|
|
|
%define V_opkg 0.10.0 |
|
|
|
|
%define V_dist 20210225 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: vsh |
|
|
|
@ -36,7 +36,7 @@ Class: EVAL
|
|
|
|
|
Group: Security |
|
|
|
|
License: MIT |
|
|
|
|
Version: %{V_opkg}.%{V_dist} |
|
|
|
|
Release: 20210208 |
|
|
|
|
Release: 20210225 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/vsh/vsh-%{V_dist}.tar.xz |
|
|
|
@ -66,14 +66,16 @@ PreReq: OpenPKG, openpkg >= 20160101
|
|
|
|
|
%build |
|
|
|
|
# build program |
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
go build -v -o vsh src/github.com/fishi0x01/vsh/main.go |
|
|
|
|
cd src/github.com/fishi0x01/vsh |
|
|
|
|
go build -v -o vsh main.go |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
# install program |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin |
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
vsh $RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
|
src/github.com/fishi0x01/vsh/vsh \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
|
|
|
|
|
|
# determine installation files |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
|