From f3e157d2507a0ed99bd26df09e77336b9c8932d4 Mon Sep 17 00:00:00 2001 From: webbuilder_pel7ppc64lebuilder0 Date: Mon, 14 Oct 2019 05:31:26 +0200 Subject: [PATCH] mattermost update tot 5.15.1 change config setup Signed-off-by: webbuilder_pel7ppc64lebuilder0 --- SPECS/mattermost.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/SPECS/mattermost.spec b/SPECS/mattermost.spec index d75ca93..4bbaaad 100644 --- a/SPECS/mattermost.spec +++ b/SPECS/mattermost.spec @@ -5,7 +5,7 @@ %define debug_package %{nil} Name : mattermost -Version : 5.15.0 +Version : 5.15.1 Release : 1%{dist} License : MIT URL : https://mattermost.io @@ -15,6 +15,8 @@ Source1 : mattermost.logrotate BuildRequires: golang BuildRequires: git BuildRequires: optipng +BuildRequires: gifsicle +BuildRequires: libwebp-tools %description @@ -47,6 +49,9 @@ npm install %ifarch ppc64 ppc64le # because optipng doesn't build on ppc64 or ppc64le 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 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 mkdir -p %{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/fonts/ %{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-platform %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} %{mattermost_home}/config/ %{mattermost_home}/templates/