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