webbuilder_pel7ppc64lebuilder0
4 years ago
14 changed files with 250 additions and 76 deletions
@ -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 |
@ -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 |
@ -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 |
Loading…
Reference in new issue