File mattermost-desktop.spec of Package mattermost-desktop
#
# spec file for package mattermost-desktop
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: mattermost-desktop
Version: 5.7.0
Release: 1
Summary: Mattermost Desktop application
License: Apache-2.0
Group: Productivity/Networking/Instant Messenger
URL: https://github.com/mattermost/desktop
Source0: %{name}-%{version}-linux-x64.tar.gz
Source1: %{name}.desktop
ExclusiveArch: x86_64
Requires: xdg-utils
%global debug_package %{nil}
%description
Native desktop application for Mattermost.
%prep
%setup -q -n %{name}-%{version}-linux-x64
# rpmlint
find . -type f "(" -name "*.txt" -o -name "*.html" -o -name "*.md" -o -name "*.svg" -o -name "*.bin" ")" -exec chmod -x "{}" "+"
%build
# Nothing to build
%install
# install
install -d -m 755 %{buildroot}/usr/lib/mattermost/
cp -r * %{buildroot}/usr/lib/mattermost/
# install desktop
install -D -m 0644 app_icon.png %{buildroot}%{_datadir}/pixmaps/mattermost-desktop.png
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%license LICENSE.txt
%doc README.md
/usr/lib/mattermost
%{_datadir}/pixmaps/mattermost-desktop.png
%{_datadir}/applications/%{name}.desktop
%changelog