Browse Source

mattermost update tot 5.15.1 change config setup

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 5 years ago
parent
commit
f3e157d250
  1. 11
      SPECS/mattermost.spec

11
SPECS/mattermost.spec

@ -5,7 +5,7 @@
%define debug_package %{nil} %define debug_package %{nil}


Name : mattermost Name : mattermost
Version : 5.15.0 Version : 5.15.1
Release : 1%{dist} Release : 1%{dist}
License : MIT License : MIT
URL : https://mattermost.io URL : https://mattermost.io
@ -15,6 +15,8 @@ Source1 : mattermost.logrotate
BuildRequires: golang BuildRequires: golang
BuildRequires: git BuildRequires: git
BuildRequires: optipng BuildRequires: optipng
BuildRequires: gifsicle
BuildRequires: libwebp-tools




%description %description
@ -47,6 +49,9 @@ npm install
%ifarch ppc64 ppc64le %ifarch ppc64 ppc64le
# because optipng doesn't build on ppc64 or ppc64le # because optipng doesn't build on ppc64 or ppc64le
cp %{_bindir}/optipng node_modules/optipng-bin/vendor/optipng cp %{_bindir}/optipng node_modules/optipng-bin/vendor/optipng
cp %{_bindir}/gifsicle node_modules/gifsicle/vendor/gifsicle
cp %{_bindir}/cwebp node_modules/cwebp-bin/vendor/cwebp
cp %{_bindir}/dwebp node_modules/cwebp-bin/vendor/dwebp
%endif %endif
npm run build npm run build


@ -58,7 +63,7 @@ install -p -D -m 0555 bin/platform %{buildroot}%{mattermost_home}/bin/mattermost
install -p -D -m 0555 bin/interface_generator %{buildroot}%{mattermost_home}/bin/mattermost-interface_generator install -p -D -m 0555 bin/interface_generator %{buildroot}%{mattermost_home}/bin/mattermost-interface_generator
mkdir -p %{buildroot}%{mattermost_home}/config/ mkdir -p %{buildroot}%{mattermost_home}/config/
cp -r src/github.com/mattermost/mattermost-server/config/* %{buildroot}%{mattermost_home}/config/ cp -r src/github.com/mattermost/mattermost-server/config/* %{buildroot}%{mattermost_home}/config/
cp -r %{buildroot}%{mattermost_home}/config/default.json %{buildroot}%{mattermost_home}/config/config.json #cp -r %{buildroot}%{mattermost_home}/config/default.json %{buildroot}%{mattermost_home}/config/config.json
cp -r src/github.com/mattermost/mattermost-server/templates/ %{buildroot}%{mattermost_home}/ cp -r src/github.com/mattermost/mattermost-server/templates/ %{buildroot}%{mattermost_home}/
cp -r src/github.com/mattermost/mattermost-server/fonts/ %{buildroot}%{mattermost_home}/ cp -r src/github.com/mattermost/mattermost-server/fonts/ %{buildroot}%{mattermost_home}/
cp -r src/github.com/mattermost/mattermost-server/i18n/ %{buildroot}%{mattermost_home}/ cp -r src/github.com/mattermost/mattermost-server/i18n/ %{buildroot}%{mattermost_home}/
@ -96,7 +101,7 @@ exit 0
%attr(555,%{mattermost_user},%{mattermost_group}) %{mattermost_home}/bin/mattermost %attr(555,%{mattermost_user},%{mattermost_group}) %{mattermost_home}/bin/mattermost
%attr(555,%{mattermost_user},%{mattermost_group}) %{mattermost_home}/bin/mattermost-platform %attr(555,%{mattermost_user},%{mattermost_group}) %{mattermost_home}/bin/mattermost-platform
%attr(555,%{mattermost_user},%{mattermost_group}) %{mattermost_home}/bin/mattermost-interface_generator %attr(555,%{mattermost_user},%{mattermost_group}) %{mattermost_home}/bin/mattermost-interface_generator
%config(noreplace) %{mattermost_home}/config/config.json #%config(noreplace) %{mattermost_home}/config/config.json
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{mattermost_home}/config/ %{mattermost_home}/config/
%{mattermost_home}/templates/ %{mattermost_home}/templates/

Loading…
Cancel
Save