1 Summary: p2p VoIP application
2 Summary(pl.UTF-8): Aplikacja VoIP p2p
7 # http://www.skype.com/company/legal/promote/distributionterms.html
8 # distributing on CD-ROM and similar media requires approval
9 License: Commercial, redistributable (see LICENSE)
10 Group: Applications/Communications
11 Source0: https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_%{version}_amd64.deb
12 # Source0-md5: de6f872de7cdd20e23bb0ddab7763278
13 Patch0: %{name}-desktop.patch
14 URL: https://www.skype.com/
15 BuildRequires: tar >= 1:1.22
16 Requires(post,postun): desktop-file-utils
17 Requires(post,postun): gtk-update-icon-cache
18 Requires: hicolor-icon-theme
19 Provides: skype-program = %{version}
20 Conflicts: skype-static
21 ExclusiveArch: %{x8664}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _enable_debug_packages 0
25 %define no_install_post_strip 1
27 # internal caps not to require (packaged here)
28 %define int_caps libEGL.so libGLESv2.so libffmpeg.so
30 %define _noautoprovfiles %{_appdir}
32 # list of script capabilities (regexps) not to be used in Provides
33 %define _noautoreq %{int_caps}
35 %define _appdir %{_libdir}/skypeforlinux
40 License requirement: The Software originates from Skype and use the
41 links and graphics as published and indicated on
42 <http://www.skype.com/go/redistribution/>.
44 %description -l pl.UTF-8
47 Wymaganie licencyjne: to oprogramowanie pochodzi od Skype i
48 wykorzystuje odnośniki i grafikę w postaci opublikowanej i oznaczonej
49 na <http://www.skype.com/go/redistribution/>.
55 mv .%{_docdir}/skypeforlinux doc
58 mv .%{_datadir}/skypeforlinux .
59 mv skypeforlinux/LICENSE* .
64 v=$(strings skypeforlinux/resources/app.asar | grep -C 3 '"productName": "Skype",' | grep -m 1 '"version":' | sed 's/.*: "\([0-9.]\+\)".*/\1/')
65 c=$(strings skypeforlinux/resources/app.asar | grep '"buildChannel":' | sed 's/.*: "\([^"]\+\)".*/\1/')
66 test "$v" = "%{version}" -a "$c" = "production"
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{_appdir}}
72 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
73 ln -s skypeforlinux $RPM_BUILD_ROOT%{_bindir}/%{name}
74 cp -a skypeforlinux/* $RPM_BUILD_ROOT%{_appdir}
75 cp -a usr/share/* $RPM_BUILD_ROOT%{_datadir}
77 sed -i -e 's|/share/|/%{_lib}/|g' $RPM_BUILD_ROOT%{_bindir}/skypeforlinux
79 %{__rm} -r $RPM_BUILD_ROOT%{_appdir}/resources/app.asar.unpacked/images/tray/{mac,win}
82 rm -rf $RPM_BUILD_ROOT
85 %update_icon_cache hicolor
86 %update_desktop_database_post
89 %update_icon_cache hicolor
90 %update_desktop_database_postun
93 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/skype
96 %attr(755,root,root) %{_bindir}/skypeforlinux
97 %{_desktopdir}/skypeforlinux.desktop
98 %{_desktopdir}/skypeforlinux-share.desktop
99 %{_pixmapsdir}/skypeforlinux.png
100 %{_iconsdir}/hicolor/*/apps/skypeforlinux.png
101 %{_datadir}/kservices5/ServiceMenus/skypeforlinux.desktop
104 %attr(755,root,root) %{_appdir}/chrome-sandbox
105 %attr(755,root,root) %{_appdir}/chrome_crashpad_handler
106 %attr(755,root,root) %{_appdir}/libEGL.so
107 %attr(755,root,root) %{_appdir}/libGLESv2.so
108 %attr(755,root,root) %{_appdir}/libffmpeg.so
109 %attr(755,root,root) %{_appdir}/libvulkan.so.1
110 %attr(755,root,root) %{_appdir}/skypeforlinux
111 %attr(755,root,root) %{_appdir}/libvk_swiftshader.so
112 %{_appdir}/vk_swiftshader_icd.json
114 %{_appdir}/icudtl.dat
115 %{_appdir}/snapshot_blob.bin
116 %{_appdir}/v8_context_snapshot.bin
119 %dir %{_appdir}/resources
120 %{_appdir}/resources/app.asar
121 %{_appdir}/resources/default_app.asar
123 %dir %{_appdir}/resources/app.asar.unpacked
124 %dir %{_appdir}/resources/app.asar.unpacked/images
125 %dir %{_appdir}/resources/app.asar.unpacked/images/tray
126 %{_appdir}/resources/app.asar.unpacked/images/tray/linux
127 %{_appdir}/resources/app.asar.unpacked/images/tray/presence
128 %dir %{_appdir}/resources/app.asar.unpacked/modules
129 %{_appdir}/resources/app.asar.unpacked/modules/electron_utility.node
130 %{_appdir}/resources/app.asar.unpacked/modules/keytar.node
131 %{_appdir}/resources/app.asar.unpacked/modules/platform.node
132 %{_appdir}/resources/app.asar.unpacked/modules/sharing-indicator.node
133 %{_appdir}/resources/app.asar.unpacked/modules/slimcore.node
134 %{_appdir}/resources/app.asar.unpacked/modules/trouter-client.node