File rambox.spec of Package Rambox-OS

#
# spec file for package rambox
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

Name:           rambox-os
Version:        0.5.18
Release:        0
Summary:        Combines common messaging and emailing apps
License:        MIT
Group:          Productivity/Networking/Instant Messenger
Url:            https://github.com/TheGoddessInari/rambox/
ExclusiveArch:  x86_64
Source0:        Rambox-%{version}.tar.gz
Source1:        rambox.desktop
Source2:        rambox.png
Source3:        rambox.1
Source4:		rambox.sh
Requires(post): update-desktop-files

Provides: rambox
Conflicts: rambox

%description
Free and Open Source messaging and emailing app that combines common web
applications into one.

%prep

%setup -q -n Rambox-%{version}

%build

%install
mkdir -p %{buildroot}/{opt/rambox,usr/{bin,share/{pixmaps,applications,man/man1}}}
cp -R * %{buildroot}/opt/rambox
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE3} %{buildroot}%{_datadir}/man/man1
install -Dm755 %{SOURCE4} %{buildroot}%{_bindir}/rambox
cp %{SOURCE1} %{buildroot}%{_datadir}/applications/rambox.desktop
%suse_update_desktop_file -i rambox
chmod +x %{buildroot}/opt/rambox/rambox

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
/opt/rambox
%{_bindir}/rambox
%{_mandir}/man?/rambox*.?.*
%{_datadir}/applications/rambox.desktop
%{_datadir}/pixmaps/rambox.png

%changelog
openSUSE Build Service is sponsored by