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