]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
5e4ace1a | 2 | # - FTL_JIT on !x86_64? |
7e29230d | 3 | # - WEB_RTC+MEDIA_STREAM (BR: openwebrtc) |
f8e56294 AF |
4 | # |
5 | # Conditional build: | |
816ef86e | 6 | %bcond_without gtk2 # WebKitPluginProcess2 to load GTK+ 2.x based plugins |
f8e56294 | 7 | %bcond_without introspection # disable introspection |
5e4ace1a | 8 | %bcond_with cairogl # accelerated 2D canvas using cairo-gl |
5e4ace1a | 9 | %bcond_without wayland # Wayland target (requires GTK+ wayland target) |
f8e56294 | 10 | # |
4bb10dff JR |
11 | # it's not possible to build this with debuginfo on 32bit archs due to |
12 | # memory constraints during linking | |
13 | %ifarch %{ix86} x32 | |
14 | %define _enable_debug_packages 0 | |
15 | %endif | |
97c9d259 JB |
16 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
17 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
e761a49a | 18 | Name: gtk-webkit4 |
7e29230d JB |
19 | Version: 2.24.1 |
20 | Release: 1 | |
f8e56294 AF |
21 | License: BSD-like |
22 | Group: X11/Libraries | |
0fe5cc0d | 23 | Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
7e29230d | 24 | # Source0-md5: ed70e2bf2476a58b17df3d051f42ce6a |
72628bc4 | 25 | Patch0: x32.patch |
9a072c00 | 26 | Patch1: %{name}-icu59.patch |
0fe5cc0d | 27 | URL: https://webkitgtk.org/ |
8f69f015 | 28 | BuildRequires: /usr/bin/ld.gold |
e3d059d0 JB |
29 | BuildRequires: EGL-devel |
30 | BuildRequires: OpenGL-GLX-devel | |
bbd2fab2 | 31 | BuildRequires: at-spi2-core-devel >= 2.6.0 |
e761a49a JB |
32 | BuildRequires: atk-devel |
33 | BuildRequires: bison >= 2.3 | |
7e29230d JB |
34 | BuildRequires: cairo-devel >= 1.16.0 |
35 | BuildRequires: cmake >= 3.3 | |
0df10670 | 36 | BuildRequires: docbook-dtd412-xml |
7e29230d | 37 | BuildRequires: enchant2-devel >= 2 |
e761a49a | 38 | BuildRequires: flex >= 2.5.34 |
7e29230d JB |
39 | BuildRequires: fontconfig-devel >= 2.13.0 |
40 | BuildRequires: freetype-devel >= 1:2.9.0 | |
41 | BuildRequires: gcc-c++ >= 6:6.0.0 | |
b19bf66f | 42 | BuildRequires: geoclue2-devel >= 2.1.5 |
e761a49a | 43 | BuildRequires: gettext-devel |
7e29230d | 44 | BuildRequires: glib2-devel >= 1:2.40 |
f8e56294 | 45 | BuildRequires: glibc-misc |
bbd2fab2 | 46 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} |
e761a49a | 47 | BuildRequires: gperf >= 3.0.1 |
7e29230d | 48 | BuildRequires: gstreamer-devel >= 1.14 |
ef26b207 | 49 | BuildRequires: gstreamer-gl-devel >= 1.8.3 |
7e29230d JB |
50 | # mpegts with -DUSE_GSTREAMER_MPEGTS=ON |
51 | #BuildRequires: gstreamer-plugins-bad-devel >= 1.8.3 | |
52 | # app,audio,fft,pbutils,tag,video | |
53 | BuildRequires: gstreamer-plugins-base-devel >= 1.8.3 | |
816ef86e | 54 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.24.10} |
e761a49a | 55 | BuildRequires: gtk+3-devel >= 3.12.0 |
f8e56294 | 56 | BuildRequires: gtk-doc >= 1.10 |
7e29230d JB |
57 | BuildRequires: harfbuzz-devel >= 1.4.2 |
58 | BuildRequires: harfbuzz-icu-devel >= 1.4.2 | |
9a76c25d | 59 | BuildRequires: hyphen-devel |
7e29230d | 60 | BuildRequires: libgcrypt-devel >= 1.7.0 |
9a072c00 | 61 | BuildRequires: libicu-devel >= 59 |
f8e56294 | 62 | BuildRequires: libjpeg-devel |
ad56e591 | 63 | BuildRequires: libnotify-devel |
f8e56294 | 64 | BuildRequires: libpng-devel |
bbd2fab2 | 65 | BuildRequires: libsecret-devel |
7e29230d JB |
66 | BuildRequires: libsoup-devel >= 2.48 |
67 | BuildRequires: libstdc++-devel >= 6:6.0.0 | |
68 | BuildRequires: libtasn1-devel | |
bbd2fab2 | 69 | BuildRequires: libwebp-devel |
e761a49a | 70 | BuildRequires: libxml2-devel >= 1:2.8.0 |
f8e56294 | 71 | BuildRequires: libxslt-devel >= 1.1.7 |
7e29230d | 72 | BuildRequires: openjpeg2-devel >= 2.2.0 |
bbd2fab2 | 73 | BuildRequires: pango-devel >= 1:1.32.0 |
e761a49a | 74 | BuildRequires: perl-base >= 1:5.10.0 |
f8e56294 | 75 | BuildRequires: pkgconfig |
5e4ace1a JB |
76 | %if %{with cairogl} |
77 | BuildRequires: pkgconfig(cairo-egl) | |
78 | BuildRequires: pkgconfig(cairo-gl) | |
79 | BuildRequires: pkgconfig(cairo-glx) | |
80 | %endif | |
ad56e591 | 81 | BuildRequires: python >= 1:2.7.0 |
01e3a259 | 82 | BuildRequires: rpmbuild(macros) >= 1.699 |
0df10670 ER |
83 | BuildRequires: ruby >= 1:1.9 |
84 | BuildRequires: ruby-modules >= 1:1.9 | |
333087b6 | 85 | BuildRequires: sqlite3-devel >= 3 |
09aa776b | 86 | BuildRequires: tar >= 1:1.22 |
7e29230d | 87 | BuildRequires: woff2-devel >= 1.0.2 |
e9e9ae8f | 88 | BuildRequires: xorg-lib-libXcomposite-devel |
e3d059d0 | 89 | BuildRequires: xorg-lib-libXdamage-devel |
cf9395dc | 90 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 91 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 92 | BuildRequires: xz |
09ca9f01 | 93 | BuildRequires: zlib-devel |
7e29230d JB |
94 | Requires: cairo >= 1.16.0 |
95 | Requires: fontconfig-libs >= 2.13.0 | |
96 | Requires: freetype >= 1:2.9.0 | |
97 | Requires: glib2 >= 1:2.40 | |
6a5b6199 JB |
98 | Requires: gstreamer >= 1.2.3 |
99 | Requires: gstreamer-plugins-base >= 1.2.3 | |
816ef86e | 100 | %{?with_gtk2:Requires: gtk+2 >= 2:2.24.10} |
e761a49a | 101 | Requires: gtk+3 >= 3.12.0 |
7e29230d JB |
102 | Requires: harfbuzz >= 1.4.2 |
103 | Requires: libsoup >= 2.48 | |
e761a49a | 104 | Requires: libxml2 >= 1:2.8.0 |
f8e56294 | 105 | Requires: libxslt >= 1.1.7 |
7e29230d | 106 | Requires: openjpeg2 >= 2.2.0 |
bbd2fab2 | 107 | Requires: pango >= 1:1.32.0 |
7e29230d | 108 | Requires: woff2 >= 1.0.2 |
f8e56294 | 109 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
5e4ace1a | 110 | # Source/JavaScriptCore/CMakeLists.txt /WTF_CPU_ |
82029cf4 | 111 | ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 hppa mips ppc ppc64 ppc64le s390 s390x sh4 |
f8e56294 AF |
112 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
113 | ||
b19bf66f | 114 | # __once_call, __once_called non-function symbols from libstdc++ |
3e7920f5 | 115 | %define skip_post_check_so lib.*gtk-4.0.* |
b19bf66f | 116 | |
f8e56294 | 117 | %description |
3e7920f5 | 118 | gtk-webkit4 is a port of the WebKit embeddable web component to GTK+ |
b19bf66f | 119 | 3. |
f8e56294 AF |
120 | |
121 | %description -l pl.UTF-8 | |
3e7920f5 | 122 | gtk-webkit4 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
123 | |
124 | %package devel | |
97c9d259 JB |
125 | Summary: Development files for WebKit for GTK+ 3 |
126 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
127 | Group: X11/Development/Libraries |
128 | Requires: %{name} = %{version}-%{release} | |
7e29230d | 129 | Requires: glib2-devel >= 1:2.40 |
e761a49a | 130 | Requires: gtk+3-devel >= 3.12.0 |
7e29230d | 131 | Requires: libsoup-devel >= 2.48 |
9a76c25d | 132 | Requires: libstdc++-devel >= 6:4.9 |
f8e56294 AF |
133 | |
134 | %description devel | |
97c9d259 | 135 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
136 | |
137 | %description devel -l pl.UTF-8 | |
97c9d259 | 138 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 139 | |
09ca9f01 MB |
140 | %package apidocs |
141 | Summary: WebKit API documentation | |
142 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
143 | Group: Documentation | |
144 | Requires: gtk-doc-common | |
8f69f015 ER |
145 | %if "%{_rpmversion}" >= "5" |
146 | BuildArch: noarch | |
147 | %endif | |
09ca9f01 MB |
148 | |
149 | %description apidocs | |
150 | WebKit API documentation. | |
151 | ||
152 | %description apidocs -l pl.UTF-8 | |
153 | Dokumentacja API WebKita. | |
154 | ||
f8e56294 | 155 | %prep |
9130be70 | 156 | %setup -q -n webkitgtk-%{version} |
72628bc4 | 157 | %patch0 -p1 |
9a072c00 | 158 | %patch1 -p1 |
97c9d259 | 159 | |
f8e56294 | 160 | %build |
e761a49a JB |
161 | install -d build |
162 | cd build | |
163 | %cmake .. \ | |
5e4ace1a | 164 | %{?with_cairogl:-DENABLE_ACCELERATED_2D_CANVAS=ON} \ |
e761a49a JB |
165 | -DENABLE_GEOLOCATION=ON \ |
166 | -DENABLE_GTKDOC=ON \ | |
816ef86e JB |
167 | %{!?with_introspection:-DENABLE_INTROSPECTION=OFF} \ |
168 | %{!?with_gtk2:-DENABLE_PLUGIN_PROCESS_GTK2=OFF} \ | |
5e4ace1a | 169 | %{!?with_wayland:-DENABLE_WAYLAND_TARGET=OFF} \ |
72628bc4 JR |
170 | %ifarch x32 |
171 | -DENABLE_JIT=OFF \ | |
172 | %endif | |
e761a49a JB |
173 | -DENABLE_VIDEO=ON \ |
174 | -DENABLE_WEB_AUDIO=ON \ | |
175 | -DENABLE_WEBGL=ON \ | |
7e29230d JB |
176 | %ifarch %{ix86} %{x8664} x32 |
177 | -DHAVE_SSE2_EXTENSIONS=ON \ | |
178 | %endif | |
e761a49a JB |
179 | -DPORT=GTK \ |
180 | -DSHOULD_INSTALL_JS_SHELL=ON | |
181 | ||
e761a49a | 182 | %{__make} |
f8e56294 AF |
183 | |
184 | %install | |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | ||
e761a49a | 187 | %{__make} -C build install \ |
f8e56294 AF |
188 | DESTDIR=$RPM_BUILD_ROOT |
189 | ||
3e7920f5 JB |
190 | %if "%{_gtkdocdir}" != "%{_datadir}/gtk-doc/html" |
191 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
192 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir} | |
193 | %endif | |
194 | ||
195 | %find_lang WebKit2GTK-4.0 | |
f8e56294 AF |
196 | |
197 | %clean | |
198 | rm -rf $RPM_BUILD_ROOT | |
199 | ||
09aa776b JB |
200 | %post -p /sbin/ldconfig |
201 | %postun -p /sbin/ldconfig | |
f8e56294 | 202 | |
3e7920f5 | 203 | %files -f WebKit2GTK-4.0.lang |
f8e56294 | 204 | %defattr(644,root,root,755) |
e761a49a | 205 | %doc NEWS |
7ef7d1a1 | 206 | %attr(755,root,root) %{_bindir}/WebKitWebDriver |
e761a49a JB |
207 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so.*.*.* |
208 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-4.0.so.37 | |
209 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so.*.*.* | |
210 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-4.0.so.18 | |
f8e56294 | 211 | %if %{with introspection} |
e761a49a JB |
212 | %{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib |
213 | %{_libdir}/girepository-1.0/WebKit2-4.0.typelib | |
214 | %{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib | |
f8e56294 | 215 | %endif |
7e29230d | 216 | %if "%{_libexecdir}" != "%{_libdir}" |
4ae8fac8 | 217 | %dir %{_libexecdir}/webkit2gtk-4.0 |
7e29230d | 218 | %endif |
4ae8fac8 MB |
219 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitNetworkProcess |
220 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitPluginProcess | |
221 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitPluginProcess2 | |
4ae8fac8 MB |
222 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/WebKitWebProcess |
223 | %attr(755,root,root) %{_libexecdir}/webkit2gtk-4.0/jsc | |
176cc4e5 | 224 | %dir %{_libdir}/webkit2gtk-4.0 |
e761a49a JB |
225 | %dir %{_libdir}/webkit2gtk-4.0/injected-bundle |
226 | %attr(755,root,root) %{_libdir}/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
f8e56294 AF |
227 | |
228 | %files devel | |
229 | %defattr(644,root,root,755) | |
e761a49a JB |
230 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-4.0.so |
231 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-4.0.so | |
f8e56294 | 232 | %if %{with introspection} |
e761a49a JB |
233 | %{_datadir}/gir-1.0/JavaScriptCore-4.0.gir |
234 | %{_datadir}/gir-1.0/WebKit2-4.0.gir | |
235 | %{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir | |
f8e56294 | 236 | %endif |
e761a49a JB |
237 | %{_includedir}/webkitgtk-4.0 |
238 | %{_pkgconfigdir}/javascriptcoregtk-4.0.pc | |
239 | %{_pkgconfigdir}/webkit2gtk-4.0.pc | |
240 | %{_pkgconfigdir}/webkit2gtk-web-extension-4.0.pc | |
09ca9f01 MB |
241 | |
242 | %files apidocs | |
243 | %defattr(644,root,root,755) | |
7e29230d | 244 | %{_gtkdocdir}/jsc-glib-4.0 |
e761a49a JB |
245 | %{_gtkdocdir}/webkit2gtk-4.0 |
246 | %{_gtkdocdir}/webkitdomgtk-4.0 |