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