]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
218faa4d | 2 | # - gamepad |
be642b95 | 3 | # - battery-status (BR: upower-devel) |
f8e56294 AF |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without introspection # disable introspection | |
b19bf66f | 7 | %bcond_without wayland # Wayland target |
f8e56294 | 8 | # |
448b0f19 JB |
9 | # it's not possible to build this with debuginfo on 32bit archs due to |
10 | # memory constraints during linking | |
11 | %ifarch %{ix86} x32 | |
12 | %define _enable_debug_packages 0 | |
13 | %endif | |
97c9d259 JB |
14 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
15 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
f8e56294 | 16 | Name: gtk-webkit3 |
73fc2649 | 17 | # note: for 2.6.x series see gtk-webkit4 |
76661d5d | 18 | Version: 2.4.11 |
1a96c4d9 | 19 | Release: 10 |
f8e56294 AF |
20 | License: BSD-like |
21 | Group: X11/Libraries | |
9130be70 | 22 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
76661d5d | 23 | # Source0-md5: 24a25ccc30a7914ae50922aedf24b7bc |
b0d6d1ed | 24 | Patch0: atomic-ops.patch |
58f8e334 | 25 | Patch1: x32.patch |
f0653593 | 26 | Patch2: abs.patch |
fd74ebf6 | 27 | Patch3: %{name}-icu59.patch |
ac748386 | 28 | Patch4: icu65.patch |
2c3540d1 JP |
29 | Patch5: glib2.68.patch |
30 | Patch6: icu68.patch | |
31 | Patch7: grammar.patch | |
32 | Patch8: volatile.patch | |
f8e56294 | 33 | URL: http://webkitgtk.org/ |
8f69f015 | 34 | BuildRequires: /usr/bin/ld.gold |
e3d059d0 JB |
35 | BuildRequires: EGL-devel |
36 | BuildRequires: OpenGL-GLX-devel | |
bbd2fab2 | 37 | BuildRequires: at-spi2-core-devel >= 2.6.0 |
9130be70 | 38 | BuildRequires: autoconf >= 2.60 |
f8e56294 | 39 | BuildRequires: automake |
e3bd5be3 | 40 | BuildRequires: bison >= 1.875 |
cf9395dc | 41 | BuildRequires: cairo-devel >= 1.10 |
f8e56294 AF |
42 | BuildRequires: enchant-devel >= 0.22 |
43 | BuildRequires: flex >= 2.5.33 | |
bbd2fab2 | 44 | BuildRequires: fontconfig-devel >= 2.5.0 |
f8e56294 | 45 | BuildRequires: freetype-devel >= 1:2.1.8 |
e3d059d0 | 46 | BuildRequires: gcc-c++ >= 6:4.7 |
b19bf66f | 47 | BuildRequires: geoclue2-devel >= 2.1.5 |
51a18386 | 48 | BuildRequires: gettext-tools |
bbd2fab2 | 49 | BuildRequires: glib2-devel >= 1:2.36.0 |
f8e56294 | 50 | BuildRequires: glibc-misc |
bbd2fab2 | 51 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} |
f8e56294 | 52 | BuildRequires: gperf |
bbd2fab2 MB |
53 | BuildRequires: gstreamer-devel >= 1.0.3 |
54 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.3 | |
8f69f015 | 55 | BuildRequires: libstdc++-devel >= 6:4.7 |
e3d059d0 JB |
56 | # GTK+ 2.x for webkit2 plugin process; GTK+ 3 for base GUI |
57 | BuildRequires: gtk+2-devel >= 2:2.24.10 | |
8200eed4 | 58 | BuildRequires: gtk+3-devel >= 3.10.0 |
f8e56294 | 59 | BuildRequires: gtk-doc >= 1.10 |
bbd2fab2 | 60 | BuildRequires: harfbuzz-devel >= 0.9.7 |
333087b6 | 61 | BuildRequires: harfbuzz-icu-devel >= 0.9.7 |
ac186a9f | 62 | %ifarch i386 i486 |
b0d6d1ed JR |
63 | BuildRequires: libatomic-devel |
64 | %endif | |
fd74ebf6 | 65 | BuildRequires: libicu-devel >= 59 |
f8e56294 AF |
66 | BuildRequires: libjpeg-devel |
67 | BuildRequires: libpng-devel | |
bbd2fab2 MB |
68 | BuildRequires: libsecret-devel |
69 | BuildRequires: libsoup-devel >= 2.42.0 | |
f8e56294 | 70 | BuildRequires: libstdc++-devel |
cb59ea5a JB |
71 | # libtool with -fuse-ld= gcc option support |
72 | BuildRequires: libtool >= 2:2.4.2-13 | |
bbd2fab2 | 73 | BuildRequires: libwebp-devel |
f8e56294 AF |
74 | BuildRequires: libxml2-devel >= 1:2.6.30 |
75 | BuildRequires: libxslt-devel >= 1.1.7 | |
bbd2fab2 | 76 | BuildRequires: pango-devel >= 1:1.32.0 |
e3d059d0 | 77 | BuildRequires: perl-base |
f8e56294 | 78 | BuildRequires: pkgconfig |
e3d059d0 | 79 | BuildRequires: python |
2f8c1d97 | 80 | BuildRequires: rpm-build >= 4.6 |
c66a3aee | 81 | BuildRequires: rpmbuild(macros) >= 1.592 |
bbd2fab2 | 82 | BuildRequires: ruby |
333087b6 | 83 | BuildRequires: sqlite3-devel >= 3 |
09aa776b | 84 | BuildRequires: tar >= 1:1.22 |
bbd2fab2 | 85 | BuildRequires: udev-glib-devel |
e9e9ae8f | 86 | BuildRequires: xorg-lib-libXcomposite-devel |
e3d059d0 | 87 | BuildRequires: xorg-lib-libXdamage-devel |
cf9395dc | 88 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 89 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 90 | BuildRequires: xz |
09ca9f01 | 91 | BuildRequires: zlib-devel |
cf9395dc | 92 | Requires: cairo >= 1.10 |
f8e56294 | 93 | Requires: enchant >= 0.22 |
e3d059d0 JB |
94 | Requires: fontconfig-libs >= 2.5.0 |
95 | Requires: freetype >= 1:2.1.8 | |
bbd2fab2 MB |
96 | Requires: glib2 >= 1:2.36.0 |
97 | Requires: gstreamer >= 1.0.3 | |
98 | Requires: gstreamer-plugins-base >= 1.0.3 | |
e3d059d0 | 99 | Requires: gtk+2 >= 2:2.24.10 |
8200eed4 | 100 | Requires: gtk+3 >= 3.10.0 |
e3d059d0 | 101 | Requires: harfbuzz >= 0.9.7 |
bbd2fab2 | 102 | Requires: libsoup >= 2.42.0 |
f8e56294 AF |
103 | Requires: libxml2 >= 1:2.6.30 |
104 | Requires: libxslt >= 1.1.7 | |
bbd2fab2 | 105 | Requires: pango >= 1:1.32.0 |
f8e56294 AF |
106 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
107 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
108 | ||
b19bf66f JB |
109 | # __once_call, __once_called non-function symbols from libstdc++ |
110 | %define skip_post_check_so lib.*gtk-3.0.* | |
111 | ||
f8e56294 | 112 | %description |
b19bf66f JB |
113 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ |
114 | 3. | |
f8e56294 AF |
115 | |
116 | %description -l pl.UTF-8 | |
97c9d259 | 117 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
118 | |
119 | %package devel | |
97c9d259 JB |
120 | Summary: Development files for WebKit for GTK+ 3 |
121 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
122 | Group: X11/Development/Libraries |
123 | Requires: %{name} = %{version}-%{release} | |
bbd2fab2 | 124 | Requires: glib2-devel >= 1:2.36.0 |
8200eed4 | 125 | Requires: gtk+3-devel >= 3.10.0 |
bbd2fab2 | 126 | Requires: libsoup-devel >= 2.42.0 |
0135bc91 | 127 | Requires: libstdc++-devel |
f8e56294 AF |
128 | |
129 | %description devel | |
97c9d259 | 130 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
131 | |
132 | %description devel -l pl.UTF-8 | |
97c9d259 | 133 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 134 | |
09ca9f01 MB |
135 | %package apidocs |
136 | Summary: WebKit API documentation | |
137 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
138 | Group: Documentation | |
139 | Requires: gtk-doc-common | |
8f69f015 | 140 | BuildArch: noarch |
09ca9f01 MB |
141 | |
142 | %description apidocs | |
143 | WebKit API documentation. | |
144 | ||
145 | %description apidocs -l pl.UTF-8 | |
146 | Dokumentacja API WebKita. | |
147 | ||
f8e56294 | 148 | %prep |
9130be70 | 149 | %setup -q -n webkitgtk-%{version} |
ac186a9f | 150 | %ifarch i386 i486 |
b0d6d1ed JR |
151 | %patch0 -p1 |
152 | %endif | |
73fc2649 | 153 | %patch1 -p1 |
f0653593 | 154 | %patch2 -p1 |
fd74ebf6 | 155 | %patch3 -p1 |
ac748386 | 156 | %patch4 -p1 |
2c3540d1 JP |
157 | %patch5 -p1 |
158 | %patch6 -p1 | |
159 | %patch7 -p1 | |
160 | %patch8 -p1 | |
97c9d259 | 161 | |
f8e56294 | 162 | %build |
f8e56294 | 163 | %{__libtoolize} |
7f68fdfd | 164 | %{__aclocal} -I Source/autotools |
333087b6 | 165 | %{__autoconf} |
f8e56294 AF |
166 | %{__autoheader} |
167 | %{__automake} | |
5d56e6e0 JB |
168 | %if "%{cxx_version}" >= "4.9" |
169 | CXXFLAGS="%{rpmcxxflags} -fno-delete-null-pointer-checks" | |
170 | %endif | |
f8e56294 | 171 | %configure \ |
4b3613ea | 172 | %ifarch %{x8664} |
c8eaba2e | 173 | LDFLAGS="%{rpmldflags} -fuse-ld=gold" \ |
4b3613ea JR |
174 | %else |
175 | LDFLAGS="%{rpmldflags} -fuse-ld=bfd -Wl,--no-keep-memory" \ | |
176 | %endif | |
0135bc91 | 177 | --disable-gtk-doc \ |
f8e56294 | 178 | --disable-silent-rules \ |
0135bc91 | 179 | --enable-geolocation \ |
e3d059d0 | 180 | --enable-glx \ |
c66a3aee | 181 | %{__enable_disable introspection} \ |
b19bf66f | 182 | %{!?with_wayland:--disable-wayland-target} \ |
e3d059d0 | 183 | --enable-webgl \ |
c66a3aee | 184 | --with-gtk=3.0 \ |
c8eaba2e | 185 | --with-html-dir=%{_gtkdocdir} |
f8e56294 | 186 | |
09958ad8 | 187 | %{__make} -j1 |
f8e56294 AF |
188 | |
189 | %install | |
190 | rm -rf $RPM_BUILD_ROOT | |
191 | ||
192 | %{__make} install \ | |
193 | DESTDIR=$RPM_BUILD_ROOT | |
194 | ||
cf9395dc | 195 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
bbd2fab2 | 196 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/webkit2gtk-3.0/injected-bundle/*.la |
959213a2 | 197 | |
bbd2fab2 | 198 | %find_lang WebKitGTK-3.0 |
f8e56294 AF |
199 | |
200 | %clean | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
09aa776b JB |
203 | %post -p /sbin/ldconfig |
204 | %postun -p /sbin/ldconfig | |
f8e56294 | 205 | |
bbd2fab2 | 206 | %files -f WebKitGTK-3.0.lang |
f8e56294 | 207 | %defattr(644,root,root,755) |
97c9d259 | 208 | %doc ChangeLog NEWS |
f8e56294 | 209 | %attr(755,root,root) %{_bindir}/jsc-3 |
b19bf66f | 210 | %attr(755,root,root) %{_libexecdir}/WebKitNetworkProcess |
9130be70 MB |
211 | %attr(755,root,root) %{_libexecdir}/WebKitPluginProcess |
212 | %attr(755,root,root) %{_libexecdir}/WebKitWebProcess | |
f8e56294 AF |
213 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* |
214 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
9130be70 | 215 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so.*.*.* |
bbd2fab2 | 216 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-3.0.so.25 |
cf9395dc AF |
217 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
218 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 | 219 | %if %{with introspection} |
8200eed4 | 220 | %{_libdir}/girepository-1.0/JavaScriptCore-3.0.typelib |
f8e56294 | 221 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib |
bbd2fab2 | 222 | %{_libdir}/girepository-1.0/WebKit2-3.0.typelib |
b19bf66f | 223 | %{_libdir}/girepository-1.0/WebKit2WebExtension-3.0.typelib |
f8e56294 | 224 | %endif |
bbd2fab2 MB |
225 | %dir %{_libdir}/webkit2gtk-3.0 |
226 | %dir %{_libdir}/webkit2gtk-3.0/injected-bundle | |
227 | %attr(755,root,root) %{_libdir}/webkit2gtk-3.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
c53434ba | 228 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 229 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 230 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 AF |
231 | |
232 | %files devel | |
233 | %defattr(644,root,root,755) | |
234 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
9130be70 | 235 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so |
cf9395dc | 236 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 | 237 | %if %{with introspection} |
8200eed4 | 238 | %{_datadir}/gir-1.0/JavaScriptCore-3.0.gir |
f8e56294 | 239 | %{_datadir}/gir-1.0/WebKit-3.0.gir |
bbd2fab2 | 240 | %{_datadir}/gir-1.0/WebKit2-3.0.gir |
b19bf66f | 241 | %{_datadir}/gir-1.0/WebKit2WebExtension-3.0.gir |
f8e56294 | 242 | %endif |
09ca9f01 | 243 | %{_includedir}/webkitgtk-3.0 |
b19bf66f | 244 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |
f8e56294 | 245 | %{_pkgconfigdir}/webkitgtk-3.0.pc |
9130be70 | 246 | %{_pkgconfigdir}/webkit2gtk-3.0.pc |
b19bf66f | 247 | %{_pkgconfigdir}/webkit2gtk-web-extension-3.0.pc |
09ca9f01 MB |
248 | |
249 | %files apidocs | |
250 | %defattr(644,root,root,755) | |
251 | %{_gtkdocdir}/webkitgtk | |
9130be70 | 252 | %{_gtkdocdir}/webkit2gtk |
b19bf66f | 253 | %{_gtkdocdir}/webkitdomgtk |