diff --git a/SPECS/mattermost-plugin-github.spec b/SPECS/mattermost-plugin-github.spec index 72bf561..b893774 100644 --- a/SPECS/mattermost-plugin-github.spec +++ b/SPECS/mattermost-plugin-github.spec @@ -4,7 +4,7 @@ %define debug_package %{nil} Name: mattermost-plugin-github -Version: 0.10.2 +Version: 0.11.0 Release: 1%{?dist} URL: https://github.com/mattermost/mattermost-plugin-github Summary: Plugin for Mattermost and Github diff --git a/SPECS/mattermost-plugin-jitsi.spec b/SPECS/mattermost-plugin-jitsi.spec index bae991c..26e6b60 100644 --- a/SPECS/mattermost-plugin-jitsi.spec +++ b/SPECS/mattermost-plugin-jitsi.spec @@ -27,8 +27,9 @@ git clone https://github.com/seansackowitz/mattermost-plugin-jitsi %build export GOPATH=`pwd` export PATH="bin:"$PATH +export GO111MODULE=on cd src/github.com/seansackowitz/mattermost-plugin-jitsi -#git checkout tags/v%{version} +git checkout tags/v%{version} pushd webapp npm install npm run build diff --git a/SPECS/mattermost-plugin-rssfeed.spec b/SPECS/mattermost-plugin-rssfeed.spec index ce5f0a1..557c0be 100644 --- a/SPECS/mattermost-plugin-rssfeed.spec +++ b/SPECS/mattermost-plugin-rssfeed.spec @@ -28,6 +28,7 @@ git clone https://github.com/wbernest/mattermost-plugin-rssfeed %build export GOPATH=`pwd` export PATH="bin:"$PATH +export GO111MODULE=on cd src/github.com/wbernest/mattermost-plugin-rssfeed pushd server #$GOPATH/bin/dep ensure diff --git a/SPECS/mattermost-plugin-voice.spec b/SPECS/mattermost-plugin-voice.spec index a41b43a..9696618 100644 --- a/SPECS/mattermost-plugin-voice.spec +++ b/SPECS/mattermost-plugin-voice.spec @@ -43,20 +43,20 @@ popd %install -mkdir -p %{buildroot}%{mattermost_home}/plugins/voice/{server,webapp}/dist/ -cp -rv src/github.com/mattermost/mattermost-plugin-voice/plugin.json %{buildroot}%{mattermost_home}/plugins/voice/ -sed 's/"executables": {/"executables": { "server\/dist\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/voice/plugin.json -sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/voice/plugin.json -sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/voice/plugin.json -sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/voice/plugin.json -cp -rv src/github.com/mattermost/mattermost-plugin-voice/plugin.exe %{buildroot}%{mattermost_home}/plugins/voice/server/dist/ -cp -rv src/github.com/mattermost/mattermost-plugin-voice/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/voice/webapp/dist/ +mkdir -p %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/{server,webapp}/dist/ +cp -rv src/github.com/mattermost/mattermost-plugin-voice/plugin.json %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/ +sed 's/"executables": {/"executables": { "server\/dist\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/plugin.json +sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/plugin.json +sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/plugin.json +sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/plugin.json +cp -rv src/github.com/mattermost/mattermost-plugin-voice/plugin.exe %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/server/dist/ +cp -rv src/github.com/mattermost/mattermost-plugin-voice/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/webapp/dist/ %files -%{mattermost_home}/plugins/voice/plugin.json -%{mattermost_home}/plugins/voice/server/dist/plugin.exe -%{mattermost_home}/plugins/voice/webapp/dist/main.js +%{mattermost_home}/plugins/com.mattermost.voice/plugin.json +%{mattermost_home}/plugins/com.mattermost.voice/server/dist/plugin.exe +%{mattermost_home}/plugins/com.mattermost.voice/webapp/dist/main.js %changelog diff --git a/SPECS/mattermost-plugin-walltime.spec b/SPECS/mattermost-plugin-walltime.spec index 5459bf4..4d3f40a 100644 --- a/SPECS/mattermost-plugin-walltime.spec +++ b/SPECS/mattermost-plugin-walltime.spec @@ -22,8 +22,6 @@ export GOPATH=`pwd` go get -u -v github.com/pkg/errors mkdir -p src/github.com/mattermost/ cd src/github.com/mattermost/ -git clone https://github.com/mattermost/mattermost-server -git clone https://github.com/mattermost/mattermost-webapp git clone https://github.com/mattermost/mattermost-plugin-walltime @@ -31,16 +29,20 @@ git clone https://github.com/mattermost/mattermost-plugin-walltime export GOPATH=`pwd` export PATH="bin:"$PATH cd src/github.com/mattermost/mattermost-plugin-walltime -make +pushd webapp +npm install +npm run build +popd %install -mkdir -p %{buildroot}%{mattermost_home}/plugins -cp -rv src/github.com/mattermost/mattermost-plugin-walltime/dist/com.mattermost.walltime-plugin/ %{buildroot}%{mattermost_home}/plugins/ +mkdir -p %{buildroot}%{mattermost_home}/plugins/com.mattermost.walltime/webapp/dist/ +cp -rv src/github.com/mattermost/mattermost-plugin-walltime/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/com.mattermost.walltime/webapp/dist/ +cp -rv src/github.com/mattermost/mattermost-plugin-walltime/plugin.json %{buildroot}%{mattermost_home}/plugins/com.mattermost.walltime/plugin.json %files -%{mattermost_home}/plugins/com.mattermost.walltime-plugin/plugin.json -%{mattermost_home}/plugins/com.mattermost.walltime-plugin/webapp/dist/main.js +%{mattermost_home}/plugins/com.mattermost.walltime/plugin.json +%{mattermost_home}/plugins/com.mattermost.walltime/webapp/dist/main.js %changelog