Browse Source

mattermost make ppc64 work

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

10
SPECS/mattermost.spec

@ -14,7 +14,7 @@ Source0 : mattermost.service
Source1 : mattermost.logrotate Source1 : mattermost.logrotate
BuildRequires: golang BuildRequires: golang
BuildRequires: git BuildRequires: git
Requires : git BuildRequires: optipng




%description %description
@ -31,6 +31,7 @@ git clone https://github.com/mattermost/mattermost-server/
git clone https://github.com/mattermost/mattermost-webapp/ git clone https://github.com/mattermost/mattermost-webapp/





%build %build
export GOPATH=`pwd` export GOPATH=`pwd`
cd src/github.com/mattermost/mattermost-server/ cd src/github.com/mattermost/mattermost-server/
@ -42,7 +43,12 @@ sed 's/amd64/%{_arch}/g' -i build/release.mk
make build-linux make build-linux
cd ../mattermost-webapp cd ../mattermost-webapp
git checkout tags/v%{version} 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 %install

Loading…
Cancel
Save