]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
e9e9ae8f | 2 | # - notifications, gamepad, dom-mutation-observers, input-type-color, media-source, media-stream, mhtml, web-audio, web-timing, touch-icon-loading, register-protocol-handler, css-filters, css-compositing |
91c1decc | 3 | # - directory-upload |
e9e9ae8f | 4 | # - APIs: page-visibility-api, indexed-database, input-speech, scripted-speech, image-resizer, quota, animation-api |
89035ba9 | 5 | # - HTML5: microdata, datagrid, data-transfer-items, video-track, file-system, style-scoped |
f8e56294 AF |
6 | # |
7 | # Conditional build: | |
8 | %bcond_without introspection # disable introspection | |
9 | # | |
97c9d259 JB |
10 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
11 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
f8e56294 | 12 | Name: gtk-webkit3 |
bbd2fab2 | 13 | Version: 2.0.0 |
cf17c47d | 14 | Release: 2 |
f8e56294 AF |
15 | License: BSD-like |
16 | Group: X11/Libraries | |
9130be70 | 17 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
bbd2fab2 | 18 | # Source0-md5: fa231ba8c9cd33575b9692614324be21 |
cf17c47d | 19 | Patch0: sync-builtins.patch |
f8e56294 | 20 | URL: http://webkitgtk.org/ |
09ca9f01 | 21 | BuildRequires: OpenGL-GLU-devel |
bbd2fab2 MB |
22 | BuildRequires: OpenGLES-devel |
23 | BuildRequires: at-spi2-core-devel >= 2.6.0 | |
9130be70 | 24 | BuildRequires: autoconf >= 2.60 |
f8e56294 | 25 | BuildRequires: automake |
e3bd5be3 | 26 | BuildRequires: bison >= 1.875 |
cf9395dc | 27 | BuildRequires: cairo-devel >= 1.10 |
f8e56294 AF |
28 | BuildRequires: enchant-devel >= 0.22 |
29 | BuildRequires: flex >= 2.5.33 | |
bbd2fab2 | 30 | BuildRequires: fontconfig-devel >= 2.5.0 |
f8e56294 AF |
31 | BuildRequires: freetype-devel >= 1:2.1.8 |
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 | |
40 | BuildRequires: gtk+3-devel >= 3.6.0 | |
f8e56294 | 41 | BuildRequires: gtk-doc >= 1.10 |
bbd2fab2 | 42 | BuildRequires: harfbuzz-devel >= 0.9.7 |
f8e56294 AF |
43 | BuildRequires: libicu-devel >= 4.2.1 |
44 | BuildRequires: libjpeg-devel | |
45 | BuildRequires: libpng-devel | |
bbd2fab2 MB |
46 | BuildRequires: libsecret-devel |
47 | BuildRequires: libsoup-devel >= 2.42.0 | |
f8e56294 AF |
48 | BuildRequires: libstdc++-devel |
49 | BuildRequires: libtool >= 2:1.5 | |
bbd2fab2 | 50 | BuildRequires: libwebp-devel |
f8e56294 AF |
51 | BuildRequires: libxml2-devel >= 1:2.6.30 |
52 | BuildRequires: libxslt-devel >= 1.1.7 | |
bbd2fab2 | 53 | BuildRequires: pango-devel >= 1:1.32.0 |
f8e56294 | 54 | BuildRequires: pkgconfig |
c66a3aee | 55 | BuildRequires: rpmbuild(macros) >= 1.592 |
bbd2fab2 | 56 | BuildRequires: ruby |
97c9d259 | 57 | BuildRequires: sqlite3-devel >= 3.0 |
09aa776b | 58 | BuildRequires: tar >= 1:1.22 |
bbd2fab2 | 59 | BuildRequires: udev-glib-devel |
e9e9ae8f | 60 | BuildRequires: xorg-lib-libXcomposite-devel |
cf9395dc | 61 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 62 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 63 | BuildRequires: xz |
09ca9f01 | 64 | BuildRequires: zlib-devel |
cf9395dc | 65 | Requires: cairo >= 1.10 |
f8e56294 | 66 | Requires: enchant >= 0.22 |
bbd2fab2 MB |
67 | Requires: glib2 >= 1:2.36.0 |
68 | Requires: gstreamer >= 1.0.3 | |
69 | Requires: gstreamer-plugins-base >= 1.0.3 | |
70 | Requires: gtk+3 >= 3.6.0 | |
71 | Requires: libsoup >= 2.42.0 | |
f8e56294 AF |
72 | Requires: libxml2 >= 1:2.6.30 |
73 | Requires: libxslt >= 1.1.7 | |
bbd2fab2 | 74 | Requires: pango >= 1:1.32.0 |
f8e56294 AF |
75 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
76 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
77 | ||
78 | %description | |
97c9d259 | 79 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3. |
f8e56294 AF |
80 | |
81 | %description -l pl.UTF-8 | |
97c9d259 | 82 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
83 | |
84 | %package devel | |
97c9d259 JB |
85 | Summary: Development files for WebKit for GTK+ 3 |
86 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
87 | Group: X11/Development/Libraries |
88 | Requires: %{name} = %{version}-%{release} | |
bbd2fab2 MB |
89 | Requires: glib2-devel >= 1:2.36.0 |
90 | Requires: gtk+3-devel >= 3.6.0 | |
91 | Requires: libsoup-devel >= 2.42.0 | |
f8e56294 AF |
92 | |
93 | %description devel | |
97c9d259 | 94 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
95 | |
96 | %description devel -l pl.UTF-8 | |
97c9d259 | 97 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 98 | |
09ca9f01 MB |
99 | %package apidocs |
100 | Summary: WebKit API documentation | |
101 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
102 | Group: Documentation | |
103 | Requires: gtk-doc-common | |
104 | ||
105 | %description apidocs | |
106 | WebKit API documentation. | |
107 | ||
108 | %description apidocs -l pl.UTF-8 | |
109 | Dokumentacja API WebKita. | |
110 | ||
f8e56294 | 111 | %prep |
9130be70 | 112 | %setup -q -n webkitgtk-%{version} |
cf17c47d | 113 | %patch0 -p1 |
97c9d259 | 114 | |
f8e56294 | 115 | %build |
f8e56294 | 116 | %{__libtoolize} |
7f68fdfd | 117 | %{__aclocal} -I Source/autotools |
f8e56294 AF |
118 | %{__autoheader} |
119 | %{__automake} | |
120 | %{__autoconf} | |
121 | %configure \ | |
f8e56294 | 122 | --disable-silent-rules \ |
c66a3aee MB |
123 | %{__enable_disable introspection} \ |
124 | --with-gtk=3.0 \ | |
09ca9f01 | 125 | --enable-geolocation \ |
bbd2fab2 | 126 | --disable-gtk-doc \ |
09ca9f01 | 127 | --with-html-dir=%{_gtkdocdir} |
f8e56294 | 128 | |
09958ad8 | 129 | %{__make} -j1 |
f8e56294 AF |
130 | |
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} install \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
cf9395dc | 137 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
bbd2fab2 | 138 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/webkit2gtk-3.0/injected-bundle/*.la |
959213a2 | 139 | |
bbd2fab2 | 140 | %find_lang WebKitGTK-3.0 |
f8e56294 AF |
141 | |
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
09aa776b JB |
145 | %post -p /sbin/ldconfig |
146 | %postun -p /sbin/ldconfig | |
f8e56294 | 147 | |
bbd2fab2 | 148 | %files -f WebKitGTK-3.0.lang |
f8e56294 | 149 | %defattr(644,root,root,755) |
97c9d259 | 150 | %doc ChangeLog NEWS |
f8e56294 | 151 | %attr(755,root,root) %{_bindir}/jsc-3 |
9130be70 MB |
152 | %attr(755,root,root) %{_libexecdir}/WebKitPluginProcess |
153 | %attr(755,root,root) %{_libexecdir}/WebKitWebProcess | |
f8e56294 AF |
154 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* |
155 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
9130be70 | 156 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so.*.*.* |
bbd2fab2 | 157 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-3.0.so.25 |
cf9395dc AF |
158 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
159 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 AF |
160 | %if %{with introspection} |
161 | %{_libdir}/girepository-1.0/JSCore-3.0.typelib | |
162 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
bbd2fab2 | 163 | %{_libdir}/girepository-1.0/WebKit2-3.0.typelib |
f8e56294 | 164 | %endif |
bbd2fab2 MB |
165 | %dir %{_libdir}/webkit2gtk-3.0 |
166 | %dir %{_libdir}/webkit2gtk-3.0/injected-bundle | |
167 | %attr(755,root,root) %{_libdir}/webkit2gtk-3.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
c53434ba | 168 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 169 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 170 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 | 171 | %{_datadir}/webkitgtk-3.0/webinspector |
f8e56294 AF |
172 | |
173 | %files devel | |
174 | %defattr(644,root,root,755) | |
175 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
9130be70 | 176 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so |
cf9395dc | 177 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 AF |
178 | %if %{with introspection} |
179 | %{_datadir}/gir-1.0/JSCore-3.0.gir | |
180 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
bbd2fab2 | 181 | %{_datadir}/gir-1.0/WebKit2-3.0.gir |
f8e56294 | 182 | %endif |
09ca9f01 | 183 | %{_includedir}/webkitgtk-3.0 |
f8e56294 | 184 | %{_pkgconfigdir}/webkitgtk-3.0.pc |
9130be70 | 185 | %{_pkgconfigdir}/webkit2gtk-3.0.pc |
cf9395dc | 186 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |
09ca9f01 MB |
187 | |
188 | %files apidocs | |
189 | %defattr(644,root,root,755) | |
190 | %{_gtkdocdir}/webkitgtk | |
9130be70 | 191 | %{_gtkdocdir}/webkit2gtk |