|
|
@ -43,20 +43,20 @@ popd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
%install |
|
|
|
mkdir -p %{buildroot}%{mattermost_home}/plugins/voice/{server,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/voice/ |
|
|
|
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/voice/plugin.json |
|
|
|
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/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/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/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/voice/server/dist/ |
|
|
|
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/voice/webapp/dist/ |
|
|
|
cp -rv src/github.com/mattermost/mattermost-plugin-voice/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/com.mattermost.voice/webapp/dist/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
%files |
|
|
|
%{mattermost_home}/plugins/voice/plugin.json |
|
|
|
%{mattermost_home}/plugins/com.mattermost.voice/plugin.json |
|
|
|
%{mattermost_home}/plugins/voice/server/dist/plugin.exe |
|
|
|
%{mattermost_home}/plugins/com.mattermost.voice/server/dist/plugin.exe |
|
|
|
%{mattermost_home}/plugins/voice/webapp/dist/main.js |
|
|
|
%{mattermost_home}/plugins/com.mattermost.voice/webapp/dist/main.js |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
%changelog |
|
|
|