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