]>
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 |
baf1e6e6 | 19 | Release: 15 |
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 | ||
d80a6c56 JB |
112 | # JSStringRef uses "!this" comparisons (UB) |
113 | %define specflags -fno-delete-null-pointer-checks | |
114 | ||
f8e56294 | 115 | %description |
b19bf66f JB |
116 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ |
117 | 3. | |
f8e56294 AF |
118 | |
119 | %description -l pl.UTF-8 | |
97c9d259 | 120 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
121 | |
122 | %package devel | |
97c9d259 JB |
123 | Summary: Development files for WebKit for GTK+ 3 |
124 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
125 | Group: X11/Development/Libraries |
126 | Requires: %{name} = %{version}-%{release} | |
bbd2fab2 | 127 | Requires: glib2-devel >= 1:2.36.0 |
8200eed4 | 128 | Requires: gtk+3-devel >= 3.10.0 |
bbd2fab2 | 129 | Requires: libsoup-devel >= 2.42.0 |
0135bc91 | 130 | Requires: libstdc++-devel |
f8e56294 AF |
131 | |
132 | %description devel | |
97c9d259 | 133 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
134 | |
135 | %description devel -l pl.UTF-8 | |
97c9d259 | 136 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 137 | |
09ca9f01 MB |
138 | %package apidocs |
139 | Summary: WebKit API documentation | |
140 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
141 | Group: Documentation | |
142 | Requires: gtk-doc-common | |
8f69f015 | 143 | BuildArch: noarch |
09ca9f01 MB |
144 | |
145 | %description apidocs | |
146 | WebKit API documentation. | |
147 | ||
148 | %description apidocs -l pl.UTF-8 | |
149 | Dokumentacja API WebKita. | |
150 | ||
f8e56294 | 151 | %prep |
9130be70 | 152 | %setup -q -n webkitgtk-%{version} |
ac186a9f | 153 | %ifarch i386 i486 |
b0d6d1ed JR |
154 | %patch0 -p1 |
155 | %endif | |
73fc2649 | 156 | %patch1 -p1 |
f0653593 | 157 | %patch2 -p1 |
fd74ebf6 | 158 | %patch3 -p1 |
ac748386 | 159 | %patch4 -p1 |
2c3540d1 JP |
160 | %patch5 -p1 |
161 | %patch6 -p1 | |
162 | %patch7 -p1 | |
163 | %patch8 -p1 | |
97c9d259 | 164 | |
f8e56294 | 165 | %build |
f8e56294 | 166 | %{__libtoolize} |
7f68fdfd | 167 | %{__aclocal} -I Source/autotools |
333087b6 | 168 | %{__autoconf} |
f8e56294 AF |
169 | %{__autoheader} |
170 | %{__automake} | |
5d56e6e0 JB |
171 | %if "%{cxx_version}" >= "4.9" |
172 | CXXFLAGS="%{rpmcxxflags} -fno-delete-null-pointer-checks" | |
173 | %endif | |
f8e56294 | 174 | %configure \ |
4b3613ea | 175 | %ifarch %{x8664} |
c8eaba2e | 176 | LDFLAGS="%{rpmldflags} -fuse-ld=gold" \ |
4b3613ea JR |
177 | %else |
178 | LDFLAGS="%{rpmldflags} -fuse-ld=bfd -Wl,--no-keep-memory" \ | |
179 | %endif | |
0135bc91 | 180 | --disable-gtk-doc \ |
f8e56294 | 181 | --disable-silent-rules \ |
0135bc91 | 182 | --enable-geolocation \ |
e3d059d0 | 183 | --enable-glx \ |
c66a3aee | 184 | %{__enable_disable introspection} \ |
b19bf66f | 185 | %{!?with_wayland:--disable-wayland-target} \ |
e3d059d0 | 186 | --enable-webgl \ |
c66a3aee | 187 | --with-gtk=3.0 \ |
c8eaba2e | 188 | --with-html-dir=%{_gtkdocdir} |
f8e56294 | 189 | |
09958ad8 | 190 | %{__make} -j1 |
f8e56294 AF |
191 | |
192 | %install | |
193 | rm -rf $RPM_BUILD_ROOT | |
194 | ||
195 | %{__make} install \ | |
196 | DESTDIR=$RPM_BUILD_ROOT | |
197 | ||
cf9395dc | 198 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
bbd2fab2 | 199 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/webkit2gtk-3.0/injected-bundle/*.la |
959213a2 | 200 | |
bbd2fab2 | 201 | %find_lang WebKitGTK-3.0 |
f8e56294 AF |
202 | |
203 | %clean | |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
09aa776b JB |
206 | %post -p /sbin/ldconfig |
207 | %postun -p /sbin/ldconfig | |
f8e56294 | 208 | |
bbd2fab2 | 209 | %files -f WebKitGTK-3.0.lang |
f8e56294 | 210 | %defattr(644,root,root,755) |
97c9d259 | 211 | %doc ChangeLog NEWS |
f8e56294 | 212 | %attr(755,root,root) %{_bindir}/jsc-3 |
b19bf66f | 213 | %attr(755,root,root) %{_libexecdir}/WebKitNetworkProcess |
9130be70 MB |
214 | %attr(755,root,root) %{_libexecdir}/WebKitPluginProcess |
215 | %attr(755,root,root) %{_libexecdir}/WebKitWebProcess | |
f8e56294 AF |
216 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* |
217 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
9130be70 | 218 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so.*.*.* |
bbd2fab2 | 219 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-3.0.so.25 |
cf9395dc AF |
220 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
221 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 | 222 | %if %{with introspection} |
8200eed4 | 223 | %{_libdir}/girepository-1.0/JavaScriptCore-3.0.typelib |
f8e56294 | 224 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib |
bbd2fab2 | 225 | %{_libdir}/girepository-1.0/WebKit2-3.0.typelib |
b19bf66f | 226 | %{_libdir}/girepository-1.0/WebKit2WebExtension-3.0.typelib |
f8e56294 | 227 | %endif |
bbd2fab2 MB |
228 | %dir %{_libdir}/webkit2gtk-3.0 |
229 | %dir %{_libdir}/webkit2gtk-3.0/injected-bundle | |
230 | %attr(755,root,root) %{_libdir}/webkit2gtk-3.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
c53434ba | 231 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 232 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 233 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 AF |
234 | |
235 | %files devel | |
236 | %defattr(644,root,root,755) | |
237 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
9130be70 | 238 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so |
cf9395dc | 239 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 | 240 | %if %{with introspection} |
8200eed4 | 241 | %{_datadir}/gir-1.0/JavaScriptCore-3.0.gir |
f8e56294 | 242 | %{_datadir}/gir-1.0/WebKit-3.0.gir |
bbd2fab2 | 243 | %{_datadir}/gir-1.0/WebKit2-3.0.gir |
b19bf66f | 244 | %{_datadir}/gir-1.0/WebKit2WebExtension-3.0.gir |
f8e56294 | 245 | %endif |
09ca9f01 | 246 | %{_includedir}/webkitgtk-3.0 |
b19bf66f | 247 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |
f8e56294 | 248 | %{_pkgconfigdir}/webkitgtk-3.0.pc |
9130be70 | 249 | %{_pkgconfigdir}/webkit2gtk-3.0.pc |
b19bf66f | 250 | %{_pkgconfigdir}/webkit2gtk-web-extension-3.0.pc |
09ca9f01 MB |
251 | |
252 | %files apidocs | |
253 | %defattr(644,root,root,755) | |
254 | %{_gtkdocdir}/webkitgtk | |
9130be70 | 255 | %{_gtkdocdir}/webkit2gtk |
b19bf66f | 256 | %{_gtkdocdir}/webkitdomgtk |