Browse Source

mattermost make ppc64 work

Signed-off-by: webbuilder_pel7ppc64bebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
4c789893e1
  1. 10
      SPECS/mattermost.spec

10
SPECS/mattermost.spec

@ -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

Loading…
Cancel
Save