]> git.pld-linux.org Git - packages/skype.git/blob - skype.spec
316e85e21a1018ebc04ccca8f476f3e205af2c32
[packages/skype.git] / skype.spec
1 Summary:        p2p VoIP application
2 Summary(pl.UTF-8):      Aplikacja VoIP p2p
3 Name:           skype
4 Version:        8.86.0.407
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:  96b3494a7af5fd1ea13bd97f1ef9245c
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 %dir %{_appdir}/swiftshader
114 %attr(755,root,root) %{_appdir}/swiftshader/libEGL.so
115 %attr(755,root,root) %{_appdir}/swiftshader/libGLESv2.so
116 %{_appdir}/*.pak
117 %{_appdir}/icudtl.dat
118 %{_appdir}/snapshot_blob.bin
119 %{_appdir}/v8_context_snapshot.bin
120 %{_appdir}/version
121
122 %dir %{_appdir}/resources
123 %{_appdir}/resources/app.asar
124 %{_appdir}/resources/default_app.asar
125
126 %dir %{_appdir}/resources/app.asar.unpacked
127 %dir %{_appdir}/resources/app.asar.unpacked/images
128 %dir %{_appdir}/resources/app.asar.unpacked/images/tray
129 %{_appdir}/resources/app.asar.unpacked/images/tray/linux
130 %{_appdir}/resources/app.asar.unpacked/images/tray/presence
131 %dir %{_appdir}/resources/app.asar.unpacked/modules
132 %{_appdir}/resources/app.asar.unpacked/modules/electron_utility.node
133 %{_appdir}/resources/app.asar.unpacked/modules/keytar.node
134 %{_appdir}/resources/app.asar.unpacked/modules/platform.node
135 %{_appdir}/resources/app.asar.unpacked/modules/sharing-indicator.node
136 %{_appdir}/resources/app.asar.unpacked/modules/slimcore.node
137 %{_appdir}/resources/app.asar.unpacked/modules/trouter-client.node
138 %{_appdir}/locales
This page took 0.057092 seconds and 2 git commands to generate.