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