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