From 308ec1e1235c951f82af3b9512222e39541a2700 Mon Sep 17 00:00:00 2001 From: webbuilder_pel7x64builder0 Date: Thu, 4 Apr 2019 17:53:06 +0200 Subject: [PATCH] mattermost-plugin-walltime package creation Signed-off-by: webbuilder_pel7x64builder0 --- SPECS/mattermost-plugin-walltime.spec | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 SPECS/mattermost-plugin-walltime.spec diff --git a/SPECS/mattermost-plugin-walltime.spec b/SPECS/mattermost-plugin-walltime.spec new file mode 100644 index 0000000..882820e --- /dev/null +++ b/SPECS/mattermost-plugin-walltime.spec @@ -0,0 +1,44 @@ +%define mattermost_user mattermost +%define mattermost_group mattermost +%define mattermost_home /var/lib/mattermost +%define debug_package %{nil} + +Name: mattermost-plugin-walltime +Version: 0.1.1 +Release: 1%{?dist} +Summary: Plugin for Mattermost to convert time +License: Apache +BuildRequires: golang +Requires: mattermost + + +%description + + +%prep +%setup -q -T -c %{name}-%{version} +export GOPATH=`pwd` +mkdir -p src/github.com/mattermost/ +cd src/github.com/mattermost/ +git clone https://github.com/mattermost/mattermost-server +git clone https://github.com/mattermost/mattermost-webapp +git clone https://github.com/mattermost/mattermost-plugin-walltime + + +%build +export GOPATH=`pwd` +export PATH="bin:"$PATH +cd src/github.com/mattermost/mattermost-plugin-walltime +make + + +%install +mkdir -p %{buildroot}%{mattermost_home}/plugins +cp -rv src/github.com/mattermost/mattermost-plugin-walltime/dist/com.mattermost.walltime-plugin/ %{buildroot}%{mattermost_home}/plugins/ + + +%files +%{mattermost_home}/plugins/com.mattermost.walltime-plugin/plugin.json +%{mattermost_home}/plugins/com.mattermost.walltime-plugin/webapp/dist/main.js + +%changelog