File wire-desktop.spec of Package wire-desktop
#
# spec file for package wire-desktop
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: wire-desktop
Version: 3.40.3882
Release: 0
Summary: Secure collaboration platform
License: GPL-3.0-only
Group: Productivity/Networking/Instant Messenger
URL: https://wire.com/
Source0: Wire-%{version}_amd64.deb
Source1: %{name}-rpmlintrc
ExclusiveArch: x86_64
BuildRequires: update-desktop-files
%define display_name Wire Desktop
%define install_dir /opt/wire
%description
Wire is an open source, cross-platform, encrypted instant messaging client. It uses the Internet to make voice and video calls; send text messages, files, images, videos, audio files and user drawings depending on the clients used. It can be used on any of the available clients, requiring a phone number or email for registration.
%prep
%{__ar} -x %{S:0}
%build
%install
%{__tar} -x -C %{buildroot} -f %{_builddir}/data.tar.xz
%{__mv} %{buildroot}/opt/Wire %{buildroot}%{install_dir}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__ln_s} %{install_dir}/%{name} %{buildroot}%{_bindir}
%{__strip} %{buildroot}%{install_dir}/chrome-sandbox
%{__strip} %{buildroot}%{install_dir}/chrome_crashpad_handler
%{__strip} %{buildroot}%{install_dir}/*.so
%{__strip} %{buildroot}%{install_dir}/*.so.?
%{__strip} %{buildroot}%{install_dir}/%{name}
%{__rm} -fr %{buildroot}%{_datadir}/doc
%{__sed} -i "s#/opt/Wire#%{install_dir}#g" %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file -r -N "%{display_name}" -G "%{display_name}" %{name} Network InstantMessaging
%if 0%{?suse_version} && 0%{?suse_version} < 1500
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{install_dir}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/256x256
%dir %{_datadir}/icons/hicolor/32x32
%{_datadir}/icons/hicolor/256x256/apps
%{_datadir}/icons/hicolor/32x32/apps
%changelog