webbuilder_pel7x64builder0
5 years ago
2 changed files with 64 additions and 0 deletions
@ -0,0 +1,13 @@ |
|||||||
|
--- mattermost-plugin-github/Makefile 2019-04-04 12:36:13.650000000 +0200 |
||||||
|
+++ mattermost-plguin-github/Makefile 2019-04-04 12:40:42.030000000 +0200 |
||||||
|
@@ -68,8 +68,8 @@ |
||||||
|
ifneq ($(HAS_SERVER),) |
||||||
|
mkdir -p server/dist; |
||||||
|
cd server && env GOOS=linux GOARCH=amd64 $(GO) build -o dist/plugin-linux-amd64; |
||||||
|
- cd server && env GOOS=darwin GOARCH=amd64 $(GO) build -o dist/plugin-darwin-amd64; |
||||||
|
- cd server && env GOOS=windows GOARCH=amd64 $(GO) build -o dist/plugin-windows-amd64.exe; |
||||||
|
+ cd server && env GOOS=linux GOARCH=ppc64le $(GO) build -o dist/plugin-linux-ppc64le; |
||||||
|
+ cd server && env GOOS=linux GOARCH=ppc64 $(GO) build -o dist/plugin-linux-ppc64; |
||||||
|
endif |
||||||
|
|
||||||
|
# webapp/.npminstall ensures NPM dependencies are installed without having to run this all the time |
@ -0,0 +1,51 @@ |
|||||||
|
%define mattermost_user mattermost |
||||||
|
%define mattermost_group mattermost |
||||||
|
%define mattermost_home /var/lib/mattermost |
||||||
|
%define debug_package %{nil} |
||||||
|
|
||||||
|
Name: mattermost-plugin-github |
||||||
|
Version: 0.8.0 |
||||||
|
Release: 1%{?dist} |
||||||
|
Summary: Plugin for Mattermost and Github |
||||||
|
License: Apache |
||||||
|
Patch1: mattermost-plugin-github-arch-make.patch |
||||||
|
BuildRequires: golang |
||||||
|
Requires: mattermost |
||||||
|
|
||||||
|
|
||||||
|
%description |
||||||
|
|
||||||
|
|
||||||
|
%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/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-github |
||||||
|
%patch1 -p0 |
||||||
|
|
||||||
|
|
||||||
|
%build |
||||||
|
export GOPATH=`pwd` |
||||||
|
export PATH="bin:"$PATH |
||||||
|
cd src/github.com/mattermost/mattermost-plugin-github |
||||||
|
make |
||||||
|
|
||||||
|
|
||||||
|
%install |
||||||
|
mkdir -p %{buildroot}%{mattermost_home}/plugins |
||||||
|
cp -rv src/github.com/mattermost/mattermost-plugin-github/dist/github/ %{buildroot}%{mattermost_home}/plugins/ |
||||||
|
|
||||||
|
|
||||||
|
%files |
||||||
|
%{mattermost_home}/plugins/github/assets/profile.png |
||||||
|
%{mattermost_home}/plugins/github/plugin.json |
||||||
|
%{mattermost_home}/plugins/github/server/dist/plugin-linux-amd64 |
||||||
|
%{mattermost_home}/plugins/github/server/dist/plugin-linux-ppc64 |
||||||
|
%{mattermost_home}/plugins/github/server/dist/plugin-linux-ppc64le |
||||||
|
%{mattermost_home}/plugins/github/webapp/dist/main.js |
||||||
|
|
||||||
|
%changelog |
Loading…
Reference in new issue