From 4c789893e150e23b9e289b2ffbc9b1edbb8bc2ff Mon Sep 17 00:00:00 2001 From: webbuilder_pel7ppc64bebuilder0 Date: Tue, 16 Apr 2019 16:16:49 +0200 Subject: [PATCH] mattermost make ppc64 work Signed-off-by: webbuilder_pel7ppc64bebuilder0 --- SPECS/mattermost.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SPECS/mattermost.spec b/SPECS/mattermost.spec index 4a6c871..d0a367f 100644 --- a/SPECS/mattermost.spec +++ b/SPECS/mattermost.spec @@ -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/ 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 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