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 https://bugs.opensuse.org/
#


%define _major  8
%define _name   skypeforlinux
Name:           skype
Version:        8.69.0.77
Release:        0
Summary:        VoIP and instant messaging client
License:        NonFree
URL:            https://skype.com/
Source:         https://repo.skype.com/rpm/stable/%{_name}_%{version}-1.x86_64.rpm
Source1:        %{name}.sh.in
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
Requires:       dbus(org.gnome.keyring)
ExclusiveArch:  x86_64

%description
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.

%prep
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 \
  third-party_attributions.html

%build
# Nothing to build.

%install
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 \
  %{buildroot}%{_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}/

%files
%license COPYING.chromium third-party_attributions.html
%{_bindir}/%{_name}
%{_libexecdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/hicolor/512x512/
%dir %{_datadir}/icons/hicolor/512x512/apps/
%dir %{_datadir}/icons/hicolor/1024x1024/
%dir %{_datadir}/icons/hicolor/1024x1024/apps/
%{_datadir}/icons/hicolor/*/apps/%{_name}.*
%{_datadir}/pixmaps/%{_name}.png

%changelog
openSUSE Build Service is sponsored by