]> git.pld-linux.org Git - packages/skype.git/blob - skype.spec
up to 8.93.0.406
[packages/skype.git] / skype.spec
1 Summary:        p2p VoIP application
2 Summary(pl.UTF-8):      Aplikacja VoIP p2p
3 Name:           skype
4 Version:        8.93.0.406
5 Release:        1
6 Epoch:          1
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:  51c9b5ea0e829e4de9df7445dd10a5b4
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)
23
24 %define         _enable_debug_packages  0
25 %define         no_install_post_strip   1
26
27 # internal caps not to require (packaged here)
28 %define         int_caps        libEGL.so libGLESv2.so libffmpeg.so
29
30 %define         _noautoprovfiles        %{_appdir}
31
32 # list of script capabilities (regexps) not to be used in Provides
33 %define         _noautoreq              %{int_caps}
34
35 %define         _appdir         %{_libdir}/skypeforlinux
36
37 %description
38 p2p VoIP application.
39
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/>.
43
44 %description -l pl.UTF-8
45 Aplikacja VoIP p2p.
46
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/>.
50
51 %prep
52 %setup -qcT
53 ar x %{SOURCE0}
54 tar xf data.tar.gz
55 mv .%{_docdir}/skypeforlinux doc
56 mv .%{_bindir} .
57
58 mv .%{_datadir}/skypeforlinux .
59 mv skypeforlinux/LICENSE* .
60
61 %patch0 -p1
62
63 %build
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"
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{_appdir}}
71
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}
76
77 sed -i -e 's|/share/|/%{_lib}/|g' $RPM_BUILD_ROOT%{_bindir}/skypeforlinux
78
79 %{__rm} -r $RPM_BUILD_ROOT%{_appdir}/resources/app.asar.unpacked/images/tray/{mac,win}
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post
85 %update_icon_cache hicolor
86 %update_desktop_database_post
87
88 %postun
89 %update_icon_cache hicolor
90 %update_desktop_database_postun
91
92 %files
93 %defattr(644,root,root,755)
94 %doc doc/* LICENSE*
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
102
103 %dir %{_appdir}
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
113 %{_appdir}/*.pak
114 %{_appdir}/icudtl.dat
115 %{_appdir}/snapshot_blob.bin
116 %{_appdir}/v8_context_snapshot.bin
117 %{_appdir}/version
118
119 %dir %{_appdir}/resources
120 %{_appdir}/resources/app.asar
121 %{_appdir}/resources/default_app.asar
122
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
135 %{_appdir}/locales
This page took 0.118013 seconds and 3 git commands to generate.