]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
e3d059d0 | 2 | # - gamepad, web-audio |
f8e56294 AF |
3 | # |
4 | # Conditional build: | |
5 | %bcond_without introspection # disable introspection | |
6 | # | |
97c9d259 JB |
7 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
8 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
f8e56294 | 9 | Name: gtk-webkit3 |
a96ea800 MB |
10 | Version: 2.0.4 |
11 | Release: 1 | |
f8e56294 AF |
12 | License: BSD-like |
13 | Group: X11/Libraries | |
9130be70 | 14 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
a96ea800 | 15 | # Source0-md5: 413be319ba171feed9348d1bede6b0a7 |
cf17c47d | 16 | Patch0: sync-builtins.patch |
2cae393e | 17 | Patch1: gtk-webkit-pl.po.patch |
2d78ab14 | 18 | Patch2: bison3.patch |
f8e56294 | 19 | URL: http://webkitgtk.org/ |
e3d059d0 JB |
20 | BuildRequires: EGL-devel |
21 | BuildRequires: OpenGL-GLX-devel | |
bbd2fab2 | 22 | BuildRequires: at-spi2-core-devel >= 2.6.0 |
9130be70 | 23 | BuildRequires: autoconf >= 2.60 |
f8e56294 | 24 | BuildRequires: automake |
e3bd5be3 | 25 | BuildRequires: bison >= 1.875 |
cf9395dc | 26 | BuildRequires: cairo-devel >= 1.10 |
f8e56294 AF |
27 | BuildRequires: enchant-devel >= 0.22 |
28 | BuildRequires: flex >= 2.5.33 | |
bbd2fab2 | 29 | BuildRequires: fontconfig-devel >= 2.5.0 |
f8e56294 | 30 | BuildRequires: freetype-devel >= 1:2.1.8 |
e3d059d0 | 31 | BuildRequires: gcc-c++ >= 6:4.7 |
f8e56294 AF |
32 | BuildRequires: geoclue-devel |
33 | BuildRequires: gettext-devel | |
bbd2fab2 | 34 | BuildRequires: glib2-devel >= 1:2.36.0 |
f8e56294 | 35 | BuildRequires: glibc-misc |
bbd2fab2 | 36 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} |
f8e56294 | 37 | BuildRequires: gperf |
bbd2fab2 MB |
38 | BuildRequires: gstreamer-devel >= 1.0.3 |
39 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.3 | |
e3d059d0 JB |
40 | # GTK+ 2.x for webkit2 plugin process; GTK+ 3 for base GUI |
41 | BuildRequires: gtk+2-devel >= 2:2.24.10 | |
bbd2fab2 | 42 | BuildRequires: gtk+3-devel >= 3.6.0 |
f8e56294 | 43 | BuildRequires: gtk-doc >= 1.10 |
bbd2fab2 | 44 | BuildRequires: harfbuzz-devel >= 0.9.7 |
333087b6 | 45 | BuildRequires: harfbuzz-icu-devel >= 0.9.7 |
f8e56294 AF |
46 | BuildRequires: libicu-devel >= 4.2.1 |
47 | BuildRequires: libjpeg-devel | |
48 | BuildRequires: libpng-devel | |
bbd2fab2 MB |
49 | BuildRequires: libsecret-devel |
50 | BuildRequires: libsoup-devel >= 2.42.0 | |
f8e56294 | 51 | BuildRequires: libstdc++-devel |
cb59ea5a JB |
52 | # libtool with -fuse-ld= gcc option support |
53 | BuildRequires: libtool >= 2:2.4.2-13 | |
bbd2fab2 | 54 | BuildRequires: libwebp-devel |
f8e56294 AF |
55 | BuildRequires: libxml2-devel >= 1:2.6.30 |
56 | BuildRequires: libxslt-devel >= 1.1.7 | |
bbd2fab2 | 57 | BuildRequires: pango-devel >= 1:1.32.0 |
e3d059d0 | 58 | BuildRequires: perl-base |
f8e56294 | 59 | BuildRequires: pkgconfig |
e3d059d0 | 60 | BuildRequires: python |
c66a3aee | 61 | BuildRequires: rpmbuild(macros) >= 1.592 |
bbd2fab2 | 62 | BuildRequires: ruby |
333087b6 | 63 | BuildRequires: sqlite3-devel >= 3 |
09aa776b | 64 | BuildRequires: tar >= 1:1.22 |
bbd2fab2 | 65 | BuildRequires: udev-glib-devel |
e9e9ae8f | 66 | BuildRequires: xorg-lib-libXcomposite-devel |
e3d059d0 | 67 | BuildRequires: xorg-lib-libXdamage-devel |
cf9395dc | 68 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 69 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 70 | BuildRequires: xz |
09ca9f01 | 71 | BuildRequires: zlib-devel |
cb59ea5a | 72 | BuildRequires: /usr/bin/ld.gold |
cf9395dc | 73 | Requires: cairo >= 1.10 |
f8e56294 | 74 | Requires: enchant >= 0.22 |
e3d059d0 JB |
75 | Requires: fontconfig-libs >= 2.5.0 |
76 | Requires: freetype >= 1:2.1.8 | |
bbd2fab2 MB |
77 | Requires: glib2 >= 1:2.36.0 |
78 | Requires: gstreamer >= 1.0.3 | |
79 | Requires: gstreamer-plugins-base >= 1.0.3 | |
e3d059d0 | 80 | Requires: gtk+2 >= 2:2.24.10 |
bbd2fab2 | 81 | Requires: gtk+3 >= 3.6.0 |
e3d059d0 | 82 | Requires: harfbuzz >= 0.9.7 |
bbd2fab2 | 83 | Requires: libsoup >= 2.42.0 |
f8e56294 AF |
84 | Requires: libxml2 >= 1:2.6.30 |
85 | Requires: libxslt >= 1.1.7 | |
bbd2fab2 | 86 | Requires: pango >= 1:1.32.0 |
f8e56294 AF |
87 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
88 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
89 | ||
90 | %description | |
97c9d259 | 91 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3. |
f8e56294 AF |
92 | |
93 | %description -l pl.UTF-8 | |
97c9d259 | 94 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
95 | |
96 | %package devel | |
97c9d259 JB |
97 | Summary: Development files for WebKit for GTK+ 3 |
98 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
99 | Group: X11/Development/Libraries |
100 | Requires: %{name} = %{version}-%{release} | |
bbd2fab2 MB |
101 | Requires: glib2-devel >= 1:2.36.0 |
102 | Requires: gtk+3-devel >= 3.6.0 | |
103 | Requires: libsoup-devel >= 2.42.0 | |
0135bc91 | 104 | Requires: libstdc++-devel |
f8e56294 AF |
105 | |
106 | %description devel | |
97c9d259 | 107 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
108 | |
109 | %description devel -l pl.UTF-8 | |
97c9d259 | 110 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 111 | |
09ca9f01 MB |
112 | %package apidocs |
113 | Summary: WebKit API documentation | |
114 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
115 | Group: Documentation | |
116 | Requires: gtk-doc-common | |
117 | ||
118 | %description apidocs | |
119 | WebKit API documentation. | |
120 | ||
121 | %description apidocs -l pl.UTF-8 | |
122 | Dokumentacja API WebKita. | |
123 | ||
f8e56294 | 124 | %prep |
9130be70 | 125 | %setup -q -n webkitgtk-%{version} |
cf17c47d | 126 | %patch0 -p1 |
f767d136 | 127 | %patch1 -p1 |
2d78ab14 | 128 | %patch2 -p1 |
97c9d259 | 129 | |
f8e56294 | 130 | %build |
f8e56294 | 131 | %{__libtoolize} |
7f68fdfd | 132 | %{__aclocal} -I Source/autotools |
333087b6 | 133 | %{__autoconf} |
f8e56294 AF |
134 | %{__autoheader} |
135 | %{__automake} | |
f8e56294 | 136 | %configure \ |
c8eaba2e | 137 | LDFLAGS="%{rpmldflags} -fuse-ld=gold" \ |
0135bc91 | 138 | --disable-gtk-doc \ |
f8e56294 | 139 | --disable-silent-rules \ |
0135bc91 | 140 | --enable-geolocation \ |
e3d059d0 | 141 | --enable-glx \ |
c66a3aee | 142 | %{__enable_disable introspection} \ |
e3d059d0 | 143 | --enable-webgl \ |
c66a3aee | 144 | --with-gtk=3.0 \ |
c8eaba2e | 145 | --with-html-dir=%{_gtkdocdir} |
f8e56294 | 146 | |
09958ad8 | 147 | %{__make} -j1 |
f8e56294 AF |
148 | |
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %{__make} install \ | |
153 | DESTDIR=$RPM_BUILD_ROOT | |
154 | ||
cf9395dc | 155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
bbd2fab2 | 156 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/webkit2gtk-3.0/injected-bundle/*.la |
959213a2 | 157 | |
bbd2fab2 | 158 | %find_lang WebKitGTK-3.0 |
f8e56294 AF |
159 | |
160 | %clean | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
09aa776b JB |
163 | %post -p /sbin/ldconfig |
164 | %postun -p /sbin/ldconfig | |
f8e56294 | 165 | |
bbd2fab2 | 166 | %files -f WebKitGTK-3.0.lang |
f8e56294 | 167 | %defattr(644,root,root,755) |
97c9d259 | 168 | %doc ChangeLog NEWS |
f8e56294 | 169 | %attr(755,root,root) %{_bindir}/jsc-3 |
9130be70 MB |
170 | %attr(755,root,root) %{_libexecdir}/WebKitPluginProcess |
171 | %attr(755,root,root) %{_libexecdir}/WebKitWebProcess | |
f8e56294 AF |
172 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* |
173 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
9130be70 | 174 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so.*.*.* |
bbd2fab2 | 175 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-3.0.so.25 |
cf9395dc AF |
176 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
177 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 AF |
178 | %if %{with introspection} |
179 | %{_libdir}/girepository-1.0/JSCore-3.0.typelib | |
180 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
bbd2fab2 | 181 | %{_libdir}/girepository-1.0/WebKit2-3.0.typelib |
f8e56294 | 182 | %endif |
bbd2fab2 MB |
183 | %dir %{_libdir}/webkit2gtk-3.0 |
184 | %dir %{_libdir}/webkit2gtk-3.0/injected-bundle | |
185 | %attr(755,root,root) %{_libdir}/webkit2gtk-3.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
c53434ba | 186 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 187 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 188 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 | 189 | %{_datadir}/webkitgtk-3.0/webinspector |
f8e56294 AF |
190 | |
191 | %files devel | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
9130be70 | 194 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so |
cf9395dc | 195 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 AF |
196 | %if %{with introspection} |
197 | %{_datadir}/gir-1.0/JSCore-3.0.gir | |
198 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
bbd2fab2 | 199 | %{_datadir}/gir-1.0/WebKit2-3.0.gir |
f8e56294 | 200 | %endif |
09ca9f01 | 201 | %{_includedir}/webkitgtk-3.0 |
f8e56294 | 202 | %{_pkgconfigdir}/webkitgtk-3.0.pc |
9130be70 | 203 | %{_pkgconfigdir}/webkit2gtk-3.0.pc |
cf9395dc | 204 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |
09ca9f01 MB |
205 | |
206 | %files apidocs | |
207 | %defattr(644,root,root,755) | |
208 | %{_gtkdocdir}/webkitgtk | |
9130be70 | 209 | %{_gtkdocdir}/webkit2gtk |