Browse Source

mattermost-plugin-welcomebot package creation

Signed-off-by: webbuilder_pel7x64builder0 <webbuilder@powerel.org>
master
webbuilder_pel7x64builder0 6 years ago
parent
commit
c18b5cc510
  1. 50
      SPECS/mattermost-plugin-welcomebot.spec

50
SPECS/mattermost-plugin-welcomebot.spec

@ -0,0 +1,50 @@
%define mattermost_user mattermost
%define mattermost_group mattermost
%define mattermost_home /var/lib/mattermost
%define debug_package %{nil}

Name: mattermost-plugin-welcombot
Version: 0.1
Release: 1%{?dist}
Summary: Plugin for Mattermost as a Welcome Bot
License: Apache
Patch1: mattermost-plugin-welcomebot-arch-make.patch
BuildRequires: golang
Requires: mattermost


%description


%prep
%setup -q -T -c %{name}-%{version}
export GOPATH=`pwd`
go get -u -v github.com/golang/dep/cmd/dep
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-welcomebot
%patch1 -p0


%build
export GOPATH=`pwd`
export PATH="bin:"$PATH
cd src/github.com/mattermost/mattermost-plugin-welcomebot
make


%install
mkdir -p %{buildroot}%{mattermost_home}/plugins
cp -rv src/github.com/mattermost/mattermost-plugin-welcomebot/dist/com.mattermost.welcomebot/ %{buildroot}%{mattermost_home}/plugins/


%files
%{mattermost_home}/plugins/com.mattermost.welcomebot/plugin.json
%{mattermost_home}/plugins/com.mattermost.welcomebot/server/dist/plugin-linux-amd64
%{mattermost_home}/plugins/com.mattermost.welcomebot/server/dist/plugin-linux-ppc64
%{mattermost_home}/plugins/com.mattermost.welcomebot/server/dist/plugin-linux-ppc64le


%changelog
Loading…
Cancel
Save