|
|
|
@ -19,7 +19,7 @@ Requires: mattermost
@@ -19,7 +19,7 @@ Requires: mattermost
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -T -c %{name}-%{version} |
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
go get -u -v github.com/golang/dep/cmd/dep |
|
|
|
|
#go get -u -v github.com/golang/dep/cmd/dep |
|
|
|
|
mkdir -p src/github.com/wbernest/ |
|
|
|
|
cd src/github.com/wbernest/ |
|
|
|
|
git clone https://github.com/wbernest/mattermost-plugin-rssfeed |
|
|
|
@ -30,11 +30,11 @@ export GOPATH=`pwd`
@@ -30,11 +30,11 @@ export GOPATH=`pwd`
|
|
|
|
|
export PATH="bin:"$PATH |
|
|
|
|
cd src/github.com/wbernest/mattermost-plugin-rssfeed |
|
|
|
|
pushd server |
|
|
|
|
$GOPATH/bin/dep ensure |
|
|
|
|
pushd vendor/github.com/mattermost/ |
|
|
|
|
rm -rf mattermost-server |
|
|
|
|
git clone https://github.com/mattermost/mattermost-server |
|
|
|
|
popd |
|
|
|
|
#$GOPATH/bin/dep ensure |
|
|
|
|
#pushd vendor/github.com/mattermost/ |
|
|
|
|
#rm -rf mattermost-server |
|
|
|
|
#git clone https://github.com/mattermost/mattermost-server |
|
|
|
|
#popd |
|
|
|
|
go build -ldflags '-extldflags -s -w -buildid %{version}' -o plugin.exe |
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|