]> git.pld-linux.org Git - packages/skype.git/blame - skype.spec
up to 8.89.0.403
[packages/skype.git] / skype.spec
CommitLineData
d7da0c32 1Summary: p2p VoIP application
7a0ce30a 2Summary(pl.UTF-8): Aplikacja VoIP p2p
5c6229b7 3Name: skype
0571e828 4Version: 8.89.0.403
80afed61 5Release: 1
86e3cfbd 6Epoch: 1
721f4006 7# http://www.skype.com/company/legal/promote/distributionterms.html
8# distributing on CD-ROM and similar media requires approval
d7da0c32 9License: Commercial, redistributable (see LICENSE)
5c6229b7 10Group: Applications/Communications
85e66154 11Source0: https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_%{version}_amd64.deb
0571e828 12# Source0-md5: de6f872de7cdd20e23bb0ddab7763278
c17ccae2 13Patch0: %{name}-desktop.patch
86e3cfbd
ER
14URL: https://www.skype.com/
15BuildRequires: tar >= 1:1.22
564d9bd7 16Requires(post,postun): desktop-file-utils
7d1f7e27 17Requires(post,postun): gtk-update-icon-cache
ae5c0749 18Requires: hicolor-icon-theme
64870bf6 19Provides: skype-program = %{version}
3d84a821 20Conflicts: skype-static
86e3cfbd 21ExclusiveArch: %{x8664}
5c6229b7
AM
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
244abb31
ER
24%define _enable_debug_packages 0
25%define no_install_post_strip 1
26
86e3cfbd 27# internal caps not to require (packaged here)
a418b440 28%define int_caps libEGL.so libGLESv2.so libffmpeg.so
86e3cfbd
ER
29
30%define _noautoprovfiles %{_appdir}
31
32# list of script capabilities (regexps) not to be used in Provides
52284d68 33%define _noautoreq %{int_caps}
86e3cfbd
ER
34
35%define _appdir %{_libdir}/skypeforlinux
79972973 36
5c6229b7 37%description
d7da0c32 38p2p VoIP application.
5c6229b7 39
35ae13f6 40License requirement: The Software originates from Skype and use the
41links and graphics as published and indicated on
5515ce79 42<http://www.skype.com/go/redistribution/>.
d7da0c32 43
c2ed0d55 44%description -l pl.UTF-8
d7da0c32
JB
45Aplikacja VoIP p2p.
46
47Wymaganie licencyjne: to oprogramowanie pochodzi od Skype i
c2ed0d55 48wykorzystuje odnośniki i grafikę w postaci opublikowanej i oznaczonej
5515ce79 49na <http://www.skype.com/go/redistribution/>.
5c6229b7
AM
50
51%prep
441c2d78 52%setup -qcT
cec67041 53ar x %{SOURCE0}
eab15307 54tar xf data.tar.gz
86e3cfbd
ER
55mv .%{_docdir}/skypeforlinux doc
56mv .%{_bindir} .
57
58mv .%{_datadir}/skypeforlinux .
59mv skypeforlinux/LICENSE* .
60
c17ccae2 61%patch0 -p1
577d3934 62
86e3cfbd 63%build
80afed61 64v=$(strings skypeforlinux/resources/app.asar | grep -C 3 '"productName": "Skype",' | grep -m 1 '"version":' | sed 's/.*: "\([0-9.]\+\)".*/\1/')
7781b545
JP
65c=$(strings skypeforlinux/resources/app.asar | grep '"buildChannel":' | sed 's/.*: "\([^"]\+\)".*/\1/')
66test "$v" = "%{version}" -a "$c" = "production"
86e3cfbd 67
5c6229b7
AM
68%install
69rm -rf $RPM_BUILD_ROOT
86e3cfbd 70install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{_appdir}}
5c6229b7 71
86e3cfbd
ER
72cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
73ln -s skypeforlinux $RPM_BUILD_ROOT%{_bindir}/%{name}
74cp -a skypeforlinux/* $RPM_BUILD_ROOT%{_appdir}
75cp -a usr/share/* $RPM_BUILD_ROOT%{_datadir}
5c6229b7 76
52284d68
JR
77sed -i -e 's|/share/|/%{_lib}/|g' $RPM_BUILD_ROOT%{_bindir}/skypeforlinux
78
c968fc12
JP
79%{__rm} -r $RPM_BUILD_ROOT%{_appdir}/resources/app.asar.unpacked/images/tray/{mac,win}
80
5c6229b7
AM
81%clean
82rm -rf $RPM_BUILD_ROOT
83
7d1f7e27
JP
84%post
85%update_icon_cache hicolor
564d9bd7 86%update_desktop_database_post
7d1f7e27
JP
87
88%postun
89%update_icon_cache hicolor
564d9bd7 90%update_desktop_database_postun
7d1f7e27 91
5c6229b7
AM
92%files
93%defattr(644,root,root,755)
86e3cfbd 94%doc doc/* LICENSE*
3af7bfd1 95%attr(755,root,root) %{_bindir}/skype
86e3cfbd
ER
96%attr(755,root,root) %{_bindir}/skypeforlinux
97%{_desktopdir}/skypeforlinux.desktop
8fdb8e07 98%{_desktopdir}/skypeforlinux-share.desktop
86e3cfbd
ER
99%{_pixmapsdir}/skypeforlinux.png
100%{_iconsdir}/hicolor/*/apps/skypeforlinux.png
6295e77f 101%{_datadir}/kservices5/ServiceMenus/skypeforlinux.desktop
86e3cfbd
ER
102
103%dir %{_appdir}
a418b440 104%attr(755,root,root) %{_appdir}/chrome-sandbox
ccc43fcc 105%attr(755,root,root) %{_appdir}/chrome_crashpad_handler
a418b440
JP
106%attr(755,root,root) %{_appdir}/libEGL.so
107%attr(755,root,root) %{_appdir}/libGLESv2.so
86e3cfbd 108%attr(755,root,root) %{_appdir}/libffmpeg.so
7b99c5ea 109%attr(755,root,root) %{_appdir}/libvulkan.so.1
86e3cfbd 110%attr(755,root,root) %{_appdir}/skypeforlinux
8f6a8ab2
JP
111%attr(755,root,root) %{_appdir}/libvk_swiftshader.so
112%{_appdir}/vk_swiftshader_icd.json
86e3cfbd
ER
113%{_appdir}/*.pak
114%{_appdir}/icudtl.dat
a418b440 115%{_appdir}/snapshot_blob.bin
e0d6a4ae 116%{_appdir}/v8_context_snapshot.bin
86e3cfbd
ER
117%{_appdir}/version
118
119%dir %{_appdir}/resources
120%{_appdir}/resources/app.asar
121%{_appdir}/resources/default_app.asar
d74b20d0 122
86e3cfbd 123%dir %{_appdir}/resources/app.asar.unpacked
c968fc12
JP
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
8f6a8ab2 128%dir %{_appdir}/resources/app.asar.unpacked/modules
8f6a8ab2
JP
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
86e3cfbd 135%{_appdir}/locales
This page took 0.290084 seconds and 4 git commands to generate.