File rambox.spec of Package Rambox
#
# spec file for package rambox
#
# Copyright (c) 2022 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
Version: 2.4.1
Release: 0
Summary: Combines common messaging and emailing apps
License: MIT
Group: Productivity/Networking/Instant Messenger
Url: http://rambox.pro
ExclusiveArch: x86_64
Source0: https://github.com/ramboxapp/download/releases/download/v%{version}/Rambox-%{version}-linux-x64.tar.gz
Source1: %{name}.desktop
Source2: %{name}.png
Source3: %{name}.1
Source4: %{name}.sh
Requires(post): update-desktop-files
%description
Free and Open Source messaging and emailing app that combines common web
applications into one.
%prep
%setup -q -n Rambox-%{version}-linux-x64
%build
%install
mkdir -p %{buildroot}/{opt/rambox,usr/{bin,share/{pixmaps,applications,man/man1}}}
cp -R * %{buildroot}/opt/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE3} %{buildroot}%{_datadir}/man/man1
install -Dm755 %{SOURCE4} %{buildroot}%{_bindir}/%{name}
cp %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file -i %{name}
chmod +x %{buildroot}/opt/%{name}/%{name}
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
/opt/rambox
%{_bindir}/%{name}
%{_mandir}/man?/%{name}*.?.*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog