|
|
|
@ -14,7 +14,7 @@ Source0 : mattermost.service
@@ -14,7 +14,7 @@ Source0 : mattermost.service
|
|
|
|
|
Source1 : mattermost.logrotate |
|
|
|
|
BuildRequires: golang |
|
|
|
|
BuildRequires: git |
|
|
|
|
Requires : git |
|
|
|
|
BuildRequires: optipng |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
@ -31,6 +31,7 @@ git clone https://github.com/mattermost/mattermost-server/
@@ -31,6 +31,7 @@ git clone https://github.com/mattermost/mattermost-server/
|
|
|
|
|
git clone https://github.com/mattermost/mattermost-webapp/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
cd src/github.com/mattermost/mattermost-server/ |
|
|
|
@ -42,7 +43,12 @@ sed 's/amd64/%{_arch}/g' -i build/release.mk
@@ -42,7 +43,12 @@ sed 's/amd64/%{_arch}/g' -i build/release.mk
|
|
|
|
|
make build-linux |
|
|
|
|
cd ../mattermost-webapp |
|
|
|
|
git checkout tags/v%{version} |
|
|
|
|
make build |
|
|
|
|
npm install |
|
|
|
|
%ifarch ppc64 ppc64le |
|
|
|
|
# because optipng doesn't build on ppc64 or ppc64le |
|
|
|
|
cp %{_bindir}/optipng node_modules/optipng-bin/vendor/optipng |
|
|
|
|
%endif |
|
|
|
|
npm run build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|