Browse Source

upgrading package: mylg 0.2.6.20180804 -> 0.2.6.20210117

master
parent
commit
1d303b3c4c
  1. 10
      mylg/mylg.spec

10
mylg/mylg.spec

@ -23,7 +23,7 @@
# package version # package version
%define V_opkg 0.2.6 %define V_opkg 0.2.6
%define V_dist 20180804 %define V_dist 20210117
# package information # package information
Name: mylg Name: mylg
@ -36,7 +36,7 @@ Class: EVAL
Group: Networking Group: Networking
License: MIT License: MIT
Version: %{V_opkg}.%{V_dist} Version: %{V_opkg}.%{V_dist}
Release: 20180804 Release: 20210117
# list of sources # list of sources
Source0: http://download.openpkg.org/components/versioned/mylg/mylg-%{V_dist}.tar.xz Source0: http://download.openpkg.org/components/versioned/mylg/mylg-%{V_dist}.tar.xz
@ -69,14 +69,16 @@ PreReq: libpcap
%build %build
# build program # build program
export GOPATH=`pwd` export GOPATH=`pwd`
go build -x -o mylg src/github.com/mehrdadrad/mylg/mylg.go cd src/github.com/mehrdadrad/mylg
go build -v -o mylg mylg.go
%install %install
# install program # install program
%{l_shtool} mkdir -f -p -m 755 \ %{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin $RPM_BUILD_ROOT%{l_prefix}/bin
%{l_shtool} install -c -s -m 755 \ %{l_shtool} install -c -s -m 755 \
mylg $RPM_BUILD_ROOT%{l_prefix}/bin/ src/github.com/mehrdadrad/mylg/mylg \
$RPM_BUILD_ROOT%{l_prefix}/bin/
# determine installation files # determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

Loading…
Cancel
Save