Browse Source

mattermost plugin updates

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 4 years ago
parent
commit
e0ea19ce93
  1. 59
      SPECS/mattermost-plugin-bigbluebutton.spec
  2. 26
      SPECS/mattermost-plugin-custom-attributes.spec
  3. 10
      SPECS/mattermost-plugin-jitsi.spec
  4. 40
      SPECS/mattermost-plugin-matterpoll.spec
  5. 2
      SPECS/mattermost-plugin-memes.spec
  6. 56
      SPECS/mattermost-plugin-nextcloud.spec
  7. 20
      SPECS/mattermost-plugin-profanity-filter.spec
  8. 21
      SPECS/mattermost-plugin-remind.spec
  9. 2
      SPECS/mattermost-plugin-rssfeed.spec
  10. 4
      SPECS/mattermost-plugin-voice.spec
  11. 24
      SPECS/mattermost-plugin-walltime.spec
  12. 58
      SPECS/mattermost-plugin-webex.spec
  13. 2
      SPECS/mattermost-plugin-welcomebot.spec
  14. 2
      SPECS/mattermost-plugin-zoom.spec

59
SPECS/mattermost-plugin-bigbluebutton.spec

@ -0,0 +1,59 @@ @@ -0,0 +1,59 @@
%define mattermost_user mattermost
%define mattermost_group mattermost
%define mattermost_home /var/lib/mattermost
%define debug_package %{nil}

Name: mattermost-plugin-bigbluebutton
Version: 2.2.0
Release: 1%{?dist}
URL: https://github.com/Salatfreak/mattermost-plugin-bigbluebutton
Summary: BigBlueButton plugin for Mattermost
License: Apache
BuildRequires: golang
Requires: mattermost


%description


%prep
%setup -q -T -c %{name}-%{version}
export GOPATH=`pwd`
go get -u -v github.com/pkg/errors
go get -u -v github.com/robfig/cron
go get -u -v github.com/segmentio/ksuid
mkdir -p src/github.com/blindsidenetworks/
pushd src/github.com/blindsidenetworks/
git clone https://github.com/blindsidenetworks/mattermost-plugin-bigbluebutton
popd
mkdir -p src/github.com/mattermost/
pushd src/github.com/mattermost/
git clone https://github.com/mattermost/mattermost-server
popd


%build
export GOPATH=`pwd`
export PATH="bin:"$PATH
cd src/github.com/blindsidenetworks/mattermost-plugin-bigbluebutton
pushd webapp
npm install
npm run build
popd
go build -o plugin.exe ./server


%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/bigbluebutton/{server,webapp}
cp -rv src/github.com/blindsidenetworks/mattermost-plugin-bigbluebutton/plugin.json %{buildroot}%{mattermost_home}/plugins/bigbluebutton/
cp -rv src/github.com/blindsidenetworks/mattermost-plugin-bigbluebutton/plugin.exe %{buildroot}%{mattermost_home}/plugins/bigbluebutton/server/
cp -rv src/github.com/blindsidenetworks/mattermost-plugin-bigbluebutton/webapp/dist/bigbluebutton_bundle.js %{buildroot}%{mattermost_home}/plugins/bigbluebutton/webapp/


%files
%{mattermost_home}/plugins/bigbluebutton/plugin.json
%{mattermost_home}/plugins/bigbluebutton/server/plugin.exe
%{mattermost_home}/plugins/bigbluebutton/webapp/bigbluebutton_bundle.js


%changelog

26
SPECS/mattermost-plugin-custom-attributes.spec

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
%define debug_package %{nil}

Name: mattermost-plugin-custom-attributes
Version: 1.2.0
Version: 1.3.0
Release: 1%{?dist}
Summary: Plugin for Mattermost to have Custom Attributes
URL: https://github.com/mattermost/mattermost-plugin-custom-attributes
@ -29,29 +29,29 @@ export GOPATH=`pwd` @@ -29,29 +29,29 @@ export GOPATH=`pwd`
export PATH="bin:"$PATH
export GO111MODULE=on
cd src/github.com/mattermost/mattermost-plugin-custom-attributes
git checkout v%{version}
pushd webapp
npm install
npm run build
popd
git checkout tags/v%{version}
go build -o plugin.exe ./server


%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/custom-attributes/{webapp,server}/
cp -rv src/github.com/mattermost/mattermost-plugin-custom-attributes/plugin.json %{buildroot}%{mattermost_home}/plugins/custom-attributes/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/custom-attributes/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/custom-attributes/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/custom-attributes/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/custom-attributes/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-custom-attributes/plugin.exe %{buildroot}%{mattermost_home}/plugins/custom-attributes/server/
cp -rv src/github.com/mattermost/mattermost-plugin-custom-attributes/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/custom-attributes/webapp/
mkdir -p %{buildroot}%{mattermost_home}/plugins/com.mattermost.custom-attributes/{webapp,server}/
cp -rv src/github.com/mattermost/mattermost-plugin-custom-attributes/plugin.json %{buildroot}%{mattermost_home}/plugins/com.mattermost.custom-attributes/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.custom-attributes/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.custom-attributes/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.custom-attributes/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.custom-attributes/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-custom-attributes/plugin.exe %{buildroot}%{mattermost_home}/plugins/com.mattermost.custom-attributes/server/
cp -rv src/github.com/mattermost/mattermost-plugin-custom-attributes/webapp/dist/ %{buildroot}%{mattermost_home}/plugins/com.mattermost.custom-attributes/webapp/


%files
%{mattermost_home}/plugins/custom-attributes/plugin.json
%{mattermost_home}/plugins/custom-attributes/server/plugin.exe
%{mattermost_home}/plugins/custom-attributes/webapp/main.js
%{mattermost_home}/plugins/com.mattermost.custom-attributes/plugin.json
%{mattermost_home}/plugins/com.mattermost.custom-attributes/server/plugin.exe
%{mattermost_home}/plugins/com.mattermost.custom-attributes/webapp/dist/main.js


%changelog

10
SPECS/mattermost-plugin-jitsi.spec

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
%define debug_package %{nil}

Name: mattermost-plugin-jitsi
Version: 1.3.0
Version: 2.0.0
Release: 1%{?dist}
URL: https://github.com/mattermost/mattermost-plugin-jitsi
Summary: Plugin for Mattermost and Jitsi
@ -29,9 +29,9 @@ export GOPATH=`pwd` @@ -29,9 +29,9 @@ export GOPATH=`pwd`
export PATH="bin:"$PATH
export GO111MODULE=on
cd src/github.com/mattermost/mattermost-plugin-jitsi
git checkout tags/v%{version}
git checkout v%{version}
pushd webapp
ppm install
npm install
npm run build
popd
go build -o plugin.exe ./server
@ -45,13 +45,13 @@ sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.j @@ -45,13 +45,13 @@ sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.j
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-jitsi/plugin.exe %{buildroot}%{mattermost_home}/plugins/jitsi/server/
cp -rv src/github.com/mattermost/mattermost-plugin-jitsi/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/jitsi/webapp/
cp -rv src/github.com/mattermost/mattermost-plugin-jitsi/webapp/dist/ %{buildroot}%{mattermost_home}/plugins/jitsi/webapp/


%files
%{mattermost_home}/plugins/jitsi/plugin.json
%{mattermost_home}/plugins/jitsi/server/plugin.exe
%{mattermost_home}/plugins/jitsi/webapp/main.js
%{mattermost_home}/plugins/jitsi/webapp/dist/main.js


%changelog

40
SPECS/mattermost-plugin-matterpoll.spec

@ -4,8 +4,9 @@ @@ -4,8 +4,9 @@
%define debug_package %{nil}

Name: mattermost-plugin-matterpoll
Version: 1.0.3
Version: 1.4.0
Release: 1%{?dist}
URL: https://github.com/matterpoll/matterpoll
Summary: Plugin for Mattermost and Github
License: Apache
BuildRequires: golang
@ -18,35 +19,42 @@ Requires: mattermost @@ -18,35 +19,42 @@ Requires: mattermost
%prep
%setup -q -T -c %{name}-%{version}
export GOPATH=`pwd`
go get -u -v github.com/golang/dep/cmd/dep
mkdir -p src/github.com/matterpoll/
cd src/github.com/matterpoll/
pushd src/github.com/matterpoll/
git clone https://github.com/matterpoll/matterpoll
popd
mkdir -p src/github.com/mattermost/
pushd src/github.com/mattermost/
git clone https://github.com/mattermost/mattermost-utilities
popd


%build
export GOPATH=`pwd`
export PATH="bin:"$PATH
cd src/github.com/matterpoll/matterpoll
pushd server
$GOPATH/bin/dep ensure
popd
go build -o plugin.exe ./server
pushd webapp
npm install
npm run build
popd


%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/matterpoll/server
cp -rv src/github.com/matterpoll/matterpoll/plugin.json %{buildroot}%{mattermost_home}/plugins/matterpoll/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/matterpoll/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/matterpoll/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/matterpoll/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/matterpoll/plugin.json
cp -rv src/github.com/matterpoll/matterpoll/plugin.exe %{buildroot}%{mattermost_home}/plugins/matterpoll/server/

mkdir -p %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/{server,webapp}
cp -rv src/github.com/matterpoll/matterpoll/plugin.json %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
cp -rv src/github.com/matterpoll/matterpoll/plugin.exe %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/server/
cp -rv src/github.com/matterpoll/matterpoll/webapp/dist/ %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/webapp/


%files
%{mattermost_home}/plugins/matterpoll/plugin.json
%{mattermost_home}/plugins/matterpoll/server/plugin.exe
%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/server/plugin.exe
%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/webapp/dist/main.js


%changelog

2
SPECS/mattermost-plugin-memes.spec

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
%define debug_package %{nil}

Name: mattermost-plugin-memes
Version: 1.2.0
Version: 1.4.0
Release: 1%{?dist}
Summary: Plugin for Mattermost to have Memes
URL: https://github.com/mattermost/mattermost-plugin-memes

56
SPECS/mattermost-plugin-nextcloud.spec

@ -0,0 +1,56 @@ @@ -0,0 +1,56 @@
%define mattermost_user mattermost
%define mattermost_group mattermost
%define mattermost_home /var/lib/mattermost
%define debug_package %{nil}

Name: mattermost-plugin-nextcloud
Version: 20210214
Release: 1%{?dist}
URL: https://github.com/Salatfreak/mattermost-plugin-nextcloud
Summary: Mattermost plugin for integration into Nextcloud
License: Apache
BuildRequires: golang
Requires: mattermost


%description


%prep
%setup -q -T -c %{name}-%{version}
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/Salatfreak/mattermost-plugin-nextcloud


%build
export GOPATH=`pwd`
export PATH="bin:"$PATH
cd src/github.com/mattermost/mattermost-plugin-nextcloud
pushd webapp
npm install
npm run build
popd
go build -o plugin.exe ./server


%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/{server,webapp}
cp -rv src/github.com/mattermost/mattermost-plugin-nextcloud/plugin.json %{buildroot}%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-nextcloud/plugin.exe %{buildroot}%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/server/
cp -rv src/github.com/mattermost/mattermost-plugin-nextcloud/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/webapp/


%files
%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/plugin.json
%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/server/plugin.exe
%{mattermost_home}/plugins/com.github.salatfreak.mattermost-plugin-nextcloud/webapp/main.js


%changelog

20
SPECS/mattermost-plugin-profanity-filter.spec

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
%define debug_package %{nil}

Name: mattermost-plugin-profanity-filter
Version: 20200609
Version: 20210214
Release: 1%{?dist}
Summary: Plugin for Mattermost to have Memes
URL: https://github.com/mattermost/mattermost-plugin-profanity-filter
@ -33,18 +33,18 @@ go build -o plugin.exe ./server @@ -33,18 +33,18 @@ go build -o plugin.exe ./server


%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/profanity-filter/server/
cp -rv src/github.com/mattermost/mattermost-plugin-profanity-filter/plugin.json %{buildroot}%{mattermost_home}/plugins/profanity-filter/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/profanity-filter/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/profanity-filter/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/profanity-filter/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/profanity-filter/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-profanity-filter/plugin.exe %{buildroot}%{mattermost_home}/plugins/profanity-filter/server/
mkdir -p %{buildroot}%{mattermost_home}/plugins/mattermost-profanity-filter/server/
cp -rv src/github.com/mattermost/mattermost-plugin-profanity-filter/plugin.json %{buildroot}%{mattermost_home}/plugins/mattermost-profanity-filter/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/mattermost-profanity-filter/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/mattermost-profanity-filter/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/mattermost-profanity-filter/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/mattermost-profanity-filter/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-profanity-filter/plugin.exe %{buildroot}%{mattermost_home}/plugins/mattermost-profanity-filter/server/


%files
%{mattermost_home}/plugins/profanity-filter/plugin.json
%{mattermost_home}/plugins/profanity-filter/server/plugin.exe
%{mattermost_home}/plugins/mattermost-profanity-filter/plugin.json
%{mattermost_home}/plugins/mattermost-profanity-filter/server/plugin.exe


%changelog

21
SPECS/mattermost-plugin-remind.spec

@ -35,25 +35,22 @@ popd @@ -35,25 +35,22 @@ popd
export GOPATH=`pwd`
export PATH="bin:"$PATH
cd src/github.com/scottleedavis/mattermost-plugin-remind
pushd server
go build -o plugin.exe ./server
popd



%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/remind/{server,webapp}
cp -rv src/github.com/scottleedavis/mattermost-plugin-remind/plugin.json %{buildroot}%{mattermost_home}/plugins/remind/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/remind/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/remind/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/remind/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/remind/plugin.json
cp -rv src/github.com/scottleedavis/mattermost-plugin-remind/server/plugin.exe %{buildroot}%{mattermost_home}/plugins/remind/server/
mkdir -p %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/{server,webapp}
cp -rv src/github.com/scottleedavis/mattermost-plugin-remind/plugin.json %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
cp -rv src/github.com/scottleedavis/mattermost-plugin-remind/plugin.exe %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/server/


%files
%{mattermost_home}/plugins/remind/plugin.json
%{mattermost_home}/plugins/remind/server/plugin.exe
%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/server/plugin.exe


%changelog

2
SPECS/mattermost-plugin-rssfeed.spec

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
%define debug_package %{nil}

Name: mattermost-plugin-rssfeed
Version: 0.1.0
Version: 0.2.0
Release: 1%{?dist}
URL: https://github.com/wbernest/mattermost-plugin-rssfeed
Summary: Plugin for Mattermost and RSS feed

4
SPECS/mattermost-plugin-voice.spec

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
%define mp3wasmversion 0.1.6

Name: mattermost-plugin-voice
Version: 0.1.0
Version: 0.2.2
Release: 1%{?dist}
URL: https://github.com/streamer45/mattermost-plugin-voice
Summary: Plugin for Mattermost for Voice Messaging
@ -20,7 +20,6 @@ Requires: mattermost @@ -20,7 +20,6 @@ Requires: mattermost
%prep
%setup -q -T -c %{name}-%{version}
export GOPATH=`pwd`
go get -u -v github.com/golang/dep/cmd/dep
wget https://github.com/streamer45/mp3rec-wasm/releases/download/v%{mp3wasmversion}/mp3enc-wasm-%{mp3wasmversion}.tar.gz
tar xvf mp3enc-wasm-%{mp3wasmversion}.tar.gz
mkdir -p src/github.com/mattermost/
@ -34,6 +33,7 @@ export GOPATH=`pwd` @@ -34,6 +33,7 @@ export GOPATH=`pwd`
export PATH="bin:"$PATH
export GO111MODULE=on
cd src/github.com/mattermost/mattermost-plugin-voice
go build -o manifest ./build/manifest
go mod download
go build -ldflags '-extldflags -s -w -buildid %{version}' -o plugin.exe ./server
pushd webapp

24
SPECS/mattermost-plugin-walltime.spec

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
%define debug_package %{nil}

Name: mattermost-plugin-walltime
Version: 0.1.1
Version: 1.0.0
Release: 1%{?dist}
URL: https://github.com/mattermost/mattermost-plugin-walltime
Summary: Plugin for Mattermost to convert time
@ -18,17 +18,11 @@ Requires: mattermost @@ -18,17 +18,11 @@ Requires: mattermost

%prep
%setup -q -T -c %{name}-%{version}
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-plugin-walltime
git clone https://github.com/mattermost/mattermost-plugin-walltime com.mattermost.walltime-plugin


%build
export GOPATH=`pwd`
export PATH="bin:"$PATH
cd src/github.com/mattermost/mattermost-plugin-walltime
cd com.mattermost.walltime-plugin
pushd webapp
npm install
npm run build
@ -36,13 +30,15 @@ popd @@ -36,13 +30,15 @@ popd


%install
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
mkdir -p %{buildroot}%{mattermost_home}/plugins/com.mattermost.walltime-plugin/webapp/dist/
cd com.mattermost.walltime-plugin
cp -rv webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/com.mattermost.walltime-plugin/webapp/dist/
cp -rv plugin.json %{buildroot}%{mattermost_home}/plugins/com.mattermost.walltime-plugin/plugin.json


%files
%{mattermost_home}/plugins/com.mattermost.walltime/plugin.json
%{mattermost_home}/plugins/com.mattermost.walltime/webapp/dist/main.js
%{mattermost_home}/plugins/com.mattermost.walltime-plugin/plugin.json
%{mattermost_home}/plugins/com.mattermost.walltime-plugin/webapp/dist/main.js


%changelog

58
SPECS/mattermost-plugin-webex.spec

@ -0,0 +1,58 @@ @@ -0,0 +1,58 @@
%define mattermost_user mattermost
%define mattermost_group mattermost
%define mattermost_home /var/lib/mattermost
%define debug_package %{nil}

Name: mattermost-plugin-webex
Version: 1.1.0
Release: 1%{?dist}
URL: https://github.com/mattermost/mattermost-plugin-webex
Summary: Plugin for Mattermost to connect over webex
License: Apache
BuildRequires: golang
Requires: mattermost


%description


%prep
%setup -q -T -c %{name}-%{version}
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-plugin-webex


%build
export GOPATH=`pwd`
export PATH="bin:"$PATH
cd src/github.com/mattermost/mattermost-plugin-webex
git checkout tags/v%{version}
pushd webapp
npm install
npm run build
popd
go build -o plugin.exe ./server


%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/com.mattermost.webex/{server,webapp}
cp -rv src/github.com/mattermost/mattermost-plugin-webex/plugin.json %{buildroot}%{mattermost_home}/plugins/com.mattermost.webex/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.webex/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.webex/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.webex/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.mattermost.webex/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-webex/plugin.exe %{buildroot}%{mattermost_home}/plugins/com.mattermost.webex/server/
cp -rv src/github.com/mattermost/mattermost-plugin-webex/webapp/dist/ %{buildroot}%{mattermost_home}/plugins/com.mattermost.webex/webapp/


%files
%{mattermost_home}/plugins/com.mattermost.webex/plugin.json
%{mattermost_home}/plugins/com.mattermost.webex/server/plugin.exe
%{mattermost_home}/plugins/com.mattermost.webex/webapp/dist/main.js
%{mattermost_home}/plugins/com.mattermost.webex/webapp/dist/main.js.map


%changelog

2
SPECS/mattermost-plugin-welcomebot.spec

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
%define debug_package %{nil}

Name: mattermost-plugin-welcomebot
Version: 1.1.0
Version: 1.2.0
Release: 1%{?dist}
URL: https://github.com/mattermost/mattermost-plugin-welcomebot/
Summary: Plugin for Mattermost as a Welcome Bot

2
SPECS/mattermost-plugin-zoom.spec

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
%define debug_package %{nil}

Name: mattermost-plugin-zoom
Version: 1.3.1
Version: 1.5.0
Release: 1%{?dist}
URL: https://github.com/mattermost/mattermost-plugin-zoom
Summary: Plugin for Mattermost and Zoom

Loading…
Cancel
Save