]>
Commit | Line | Data |
---|---|---|
d7da0c32 | 1 | Summary: p2p VoIP application |
7a0ce30a | 2 | Summary(pl.UTF-8): Aplikacja VoIP p2p |
5c6229b7 | 3 | Name: skype |
fb34de12 | 4 | Version: 8.54.0.91 |
80afed61 | 5 | Release: 1 |
86e3cfbd | 6 | Epoch: 1 |
721f4006 | 7 | # http://www.skype.com/company/legal/promote/distributionterms.html |
8 | # distributing on CD-ROM and similar media requires approval | |
d7da0c32 | 9 | License: Commercial, redistributable (see LICENSE) |
5c6229b7 | 10 | Group: Applications/Communications |
85e66154 | 11 | Source0: https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_%{version}_amd64.deb |
fb34de12 | 12 | # Source0-md5: e4298ffbb7532251bbdcbca0deac6513 |
c17ccae2 | 13 | Patch0: %{name}-desktop.patch |
86e3cfbd ER |
14 | URL: https://www.skype.com/ |
15 | BuildRequires: tar >= 1:1.22 | |
16 | BuildRequires: xz | |
564d9bd7 | 17 | Requires(post,postun): desktop-file-utils |
7d1f7e27 | 18 | Requires(post,postun): gtk-update-icon-cache |
ae5c0749 | 19 | Requires: hicolor-icon-theme |
64870bf6 | 20 | Provides: skype-program = %{version} |
3d84a821 | 21 | Conflicts: skype-static |
86e3cfbd | 22 | ExclusiveArch: %{x8664} |
5c6229b7 AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
244abb31 ER |
25 | %define _enable_debug_packages 0 |
26 | %define no_install_post_strip 1 | |
27 | ||
86e3cfbd | 28 | # internal caps not to require (packaged here) |
a418b440 | 29 | %define int_caps libEGL.so libGLESv2.so libffmpeg.so |
86e3cfbd ER |
30 | |
31 | %define _noautoprovfiles %{_appdir} | |
32 | ||
33 | # list of script capabilities (regexps) not to be used in Provides | |
52284d68 | 34 | %define _noautoreq %{int_caps} |
86e3cfbd ER |
35 | |
36 | %define _appdir %{_libdir}/skypeforlinux | |
79972973 | 37 | |
5c6229b7 | 38 | %description |
d7da0c32 | 39 | p2p VoIP application. |
5c6229b7 | 40 | |
35ae13f6 | 41 | License requirement: The Software originates from Skype and use the |
42 | links and graphics as published and indicated on | |
5515ce79 | 43 | <http://www.skype.com/go/redistribution/>. |
d7da0c32 | 44 | |
c2ed0d55 | 45 | %description -l pl.UTF-8 |
d7da0c32 JB |
46 | Aplikacja VoIP p2p. |
47 | ||
48 | Wymaganie licencyjne: to oprogramowanie pochodzi od Skype i | |
c2ed0d55 | 49 | wykorzystuje odnośniki i grafikę w postaci opublikowanej i oznaczonej |
5515ce79 | 50 | na <http://www.skype.com/go/redistribution/>. |
5c6229b7 AM |
51 | |
52 | %prep | |
441c2d78 | 53 | %setup -qcT |
cec67041 | 54 | ar x %{SOURCE0} |
86e3cfbd ER |
55 | tar xf data.tar.xz |
56 | mv .%{_docdir}/skypeforlinux doc | |
57 | mv .%{_bindir} . | |
58 | ||
59 | mv .%{_datadir}/skypeforlinux . | |
60 | mv skypeforlinux/LICENSE* . | |
61 | ||
c17ccae2 | 62 | %patch0 -p1 |
577d3934 | 63 | |
86e3cfbd | 64 | %build |
80afed61 | 65 | v=$(strings skypeforlinux/resources/app.asar | grep -C 3 '"productName": "Skype",' | grep -m 1 '"version":' | sed 's/.*: "\([0-9.]\+\)".*/\1/') |
7781b545 JP |
66 | c=$(strings skypeforlinux/resources/app.asar | grep '"buildChannel":' | sed 's/.*: "\([^"]\+\)".*/\1/') |
67 | test "$v" = "%{version}" -a "$c" = "production" | |
86e3cfbd | 68 | |
5c6229b7 AM |
69 | %install |
70 | rm -rf $RPM_BUILD_ROOT | |
86e3cfbd | 71 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{_appdir}} |
5c6229b7 | 72 | |
86e3cfbd ER |
73 | cp -a bin/* $RPM_BUILD_ROOT%{_bindir} |
74 | ln -s skypeforlinux $RPM_BUILD_ROOT%{_bindir}/%{name} | |
75 | cp -a skypeforlinux/* $RPM_BUILD_ROOT%{_appdir} | |
76 | cp -a usr/share/* $RPM_BUILD_ROOT%{_datadir} | |
5c6229b7 | 77 | |
52284d68 JR |
78 | sed -i -e 's|/share/|/%{_lib}/|g' $RPM_BUILD_ROOT%{_bindir}/skypeforlinux |
79 | ||
5c6229b7 AM |
80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
7d1f7e27 JP |
83 | %post |
84 | %update_icon_cache hicolor | |
564d9bd7 | 85 | %update_desktop_database_post |
7d1f7e27 JP |
86 | |
87 | %postun | |
88 | %update_icon_cache hicolor | |
564d9bd7 | 89 | %update_desktop_database_postun |
7d1f7e27 | 90 | |
5c6229b7 AM |
91 | %files |
92 | %defattr(644,root,root,755) | |
86e3cfbd | 93 | %doc doc/* LICENSE* |
3af7bfd1 | 94 | %attr(755,root,root) %{_bindir}/skype |
86e3cfbd ER |
95 | %attr(755,root,root) %{_bindir}/skypeforlinux |
96 | %{_desktopdir}/skypeforlinux.desktop | |
97 | %{_pixmapsdir}/skypeforlinux.png | |
98 | %{_iconsdir}/hicolor/*/apps/skypeforlinux.png | |
99 | ||
100 | %dir %{_appdir} | |
a418b440 JP |
101 | %attr(755,root,root) %{_appdir}/chrome-sandbox |
102 | %attr(755,root,root) %{_appdir}/libEGL.so | |
103 | %attr(755,root,root) %{_appdir}/libGLESv2.so | |
86e3cfbd | 104 | %attr(755,root,root) %{_appdir}/libffmpeg.so |
86e3cfbd | 105 | %attr(755,root,root) %{_appdir}/skypeforlinux |
a418b440 JP |
106 | %dir %{_appdir}/swiftshader |
107 | %attr(755,root,root) %{_appdir}/swiftshader/libEGL.so | |
108 | %attr(755,root,root) %{_appdir}/swiftshader/libGLESv2.so | |
86e3cfbd ER |
109 | %{_appdir}/*.pak |
110 | %{_appdir}/icudtl.dat | |
111 | %{_appdir}/natives_blob.bin | |
a418b440 | 112 | %{_appdir}/snapshot_blob.bin |
e0d6a4ae | 113 | %{_appdir}/v8_context_snapshot.bin |
86e3cfbd ER |
114 | %{_appdir}/version |
115 | ||
116 | %dir %{_appdir}/resources | |
117 | %{_appdir}/resources/app.asar | |
118 | %{_appdir}/resources/default_app.asar | |
119 | %{_appdir}/resources/electron.asar | |
d74b20d0 | 120 | |
86e3cfbd ER |
121 | %dir %{_appdir}/resources/app.asar.unpacked |
122 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules | |
a418b440 JP |
123 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/cld |
124 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/cld/build | |
125 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/cld/build/Release | |
126 | %{_appdir}/resources/app.asar.unpacked/node_modules/cld/build/Release/cld.node | |
db3d11bb JR |
127 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/desktop-idle |
128 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/desktop-idle/build | |
129 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/desktop-idle/build/Release | |
130 | %{_appdir}/resources/app.asar.unpacked/node_modules/desktop-idle/build/Release/desktopIdle.node | |
6f120e8d JR |
131 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/electron-ssid |
132 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/electron-ssid/build | |
133 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/electron-ssid/build/Release | |
134 | %{_appdir}/resources/app.asar.unpacked/node_modules/electron-ssid/build/Release/electron-ssid.node | |
a418b440 JP |
135 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/@felixrieseberg |
136 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/@felixrieseberg/spellchecker | |
137 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/@felixrieseberg/spellchecker/build | |
138 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/@felixrieseberg/spellchecker/build/Release | |
139 | %{_appdir}/resources/app.asar.unpacked/node_modules/@felixrieseberg/spellchecker/build/Release/spellchecker.node | |
d74b20d0 JR |
140 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/keyboard-layout |
141 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/keyboard-layout/build | |
142 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release | |
143 | %{_appdir}/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node | |
86e3cfbd ER |
144 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/keytar |
145 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/keytar/build | |
146 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/keytar/build/Release | |
d74b20d0 JR |
147 | %attr(755,root,root) %{_appdir}/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node |
148 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/slimcore | |
149 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/slimcore/bin | |
150 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/slimcore/bin/sharing-indicator.node | |
151 | %{_appdir}/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node | |
86e3cfbd ER |
152 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/sqlite3 |
153 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/sqlite3/lib | |
154 | %dir %{_appdir}/resources/app.asar.unpacked/node_modules/sqlite3/lib/binding | |
86e3cfbd | 155 | %attr(755,root,root) %{_appdir}/resources/app.asar.unpacked/node_modules/sqlite3/lib/binding/node_sqlite3.node |
86e3cfbd | 156 | %{_appdir}/locales |