File rambox.spec of Package rambox

#
# 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/
#

%define debug_package %{nil}

Name:           rambox
Version:        0.8.0
Release:        lp151.2.1
Summary:        Combines common messaging and emailing apps
License:        MIT
Group:          Productivity/Networking/Instant Messenger
Url:            http://rambox.pro
ExclusiveArch:  x86_64
Packager:       Federico Dughiero (deltafox) <norfeo68@hotmail.com> 
Source0:        https://github.com/ramboxapp/community-edition/releases/download/%{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
* Mon Apr 18 2022 norfeo68@hotmail.com
- 0.8.0,Fix: Added Apple Silicon Support.Fixed the screen share capability.Removed all Google Analytics measurements.Fixed Google logins.Removed authentication with Auth0.Added an easy migration option in the home screen to migrate to the new Rambox.
* Mon Oct 12 2020 norfeo68@hotmail.com
- 0.7.7,Fix: Google Login security rule applied by Google, Added new permissions to snap package.
* Mon Jun 24 2019 dap.darkness@gmail.com
- 0.6.9, check for change log:
  * https://github.com/ramboxapp/community-edition/releases/tag/0.6.9
openSUSE Build Service is sponsored by