|
|
|
@ -4,8 +4,9 @@
@@ -4,8 +4,9 @@
|
|
|
|
|
%define debug_package %{nil} |
|
|
|
|
|
|
|
|
|
Name: mattermost-plugin-remind |
|
|
|
|
Version: 0.0.1 |
|
|
|
|
Version: 0.4.4 |
|
|
|
|
Release: 1%{?dist} |
|
|
|
|
URL: https://github.com/scottleedavis/mattermost-plugin-remind/ |
|
|
|
|
Summary: Plugin for Mattermost and Remind |
|
|
|
|
License: Apache |
|
|
|
|
BuildRequires: golang |
|
|
|
@ -18,10 +19,16 @@ Requires: mattermost
@@ -18,10 +19,16 @@ 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/gorilla/mux |
|
|
|
|
mkdir -p src/github.com/mattermost/ |
|
|
|
|
mkdir -p src/github.com/scottleedavis/ |
|
|
|
|
cd src/github.com/scottleedavis/ |
|
|
|
|
pushd src/github.com/mattermost |
|
|
|
|
git clone https://github.com/mattermost/mattermost-server |
|
|
|
|
popd |
|
|
|
|
pushd src/github.com/scottleedavis/ |
|
|
|
|
git clone https://github.com/scottleedavis/mattermost-plugin-remind |
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
@ -29,8 +36,7 @@ export GOPATH=`pwd`
@@ -29,8 +36,7 @@ export GOPATH=`pwd`
|
|
|
|
|
export PATH="bin:"$PATH |
|
|
|
|
cd src/github.com/scottleedavis/mattermost-plugin-remind |
|
|
|
|
pushd server |
|
|
|
|
$GOPATH/bin/dep ensure |
|
|
|
|
go build -o plugin.exe |
|
|
|
|
go build -o plugin.exe ./server |
|
|
|
|
popd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|