File skype.spec of Package skype

# spec file for package skype
# Copyright (c) 2021 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

%define _major  8
%define _name   skypeforlinux
Name:           skype
Release:        0
Summary:        VoIP and instant messaging client
License:        NonFree
Source1:        %{name}
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
Requires:       dbus(org.gnome.keyring)
ExclusiveArch:  x86_64

Skype is a telecommunications application software that provides
video chat and voice calls between computers, tablets, mobile
devices, the Xbox One console, and smartwatches via the Internet and
to regular telephones. Skype additionally provides instant messaging
services. Users may transmit both text and video messages, and may
exchange digital documents such as images, text, and video. Skype
allows video conference calls.

rpm2cpio %{SOURCE0} | cpio -i -d
sed \
  -e "s|__LIBEXECDIR__|%{_libexecdir}|" \
  %{SOURCE1} > %{name}.sh

mv -f .%{_datadir}/%{_name}/LICENSES.chromium.html COPYING.chromium
mv -f .%{_datadir}/doc/%{_name}/third-party_attributions.html \

# Nothing to build.

mkdir -p %{buildroot}%{_libexecdir}/
cp -a .%{_datadir}/%{_name} %{buildroot}%{_libexecdir}/%{name}

install -Dpm 0755 %{name}.sh %{buildroot}%{_bindir}/%{_name}
install -Dpm 0644 .%{_datadir}/applications/%{_name}.desktop \
cp -a .%{_datadir}/icons/ %{buildroot}%{_datadir}/
cp -a .%{_datadir}/pixmaps/ %{buildroot}%{_datadir}/

%suse_update_desktop_file -r -G "Skype Internet Telephony" %{name} Network Telephony
%fdupes %{buildroot}%{_datadir}/

%license COPYING.chromium third-party_attributions.html
%dir %{_datadir}/icons/hicolor/512x512/
%dir %{_datadir}/icons/hicolor/512x512/apps/
%dir %{_datadir}/icons/hicolor/1024x1024/
%dir %{_datadir}/icons/hicolor/1024x1024/apps/

openSUSE Build Service is sponsored by