]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
e3d059d0 | 2 | # - gamepad, web-audio |
be642b95 | 3 | # - battery-status (BR: upower-devel) |
f8e56294 AF |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without introspection # disable introspection | |
7 | # | |
97c9d259 JB |
8 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
9 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
f8e56294 | 10 | Name: gtk-webkit3 |
68659384 JB |
11 | Version: 2.2.2 |
12 | Release: 1 | |
f8e56294 AF |
13 | License: BSD-like |
14 | Group: X11/Libraries | |
9130be70 | 15 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
68659384 | 16 | # Source0-md5: 49cc8fd065de72603776a494e41c1977 |
cf17c47d | 17 | Patch0: sync-builtins.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 | |
8200eed4 | 41 | BuildRequires: gtk+3-devel >= 3.10.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 |
8200eed4 | 80 | Requires: gtk+3 >= 3.10.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 | 100 | Requires: glib2-devel >= 1:2.36.0 |
8200eed4 | 101 | Requires: gtk+3-devel >= 3.10.0 |
bbd2fab2 | 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 |
97c9d259 | 126 | |
f8e56294 | 127 | %build |
f8e56294 | 128 | %{__libtoolize} |
7f68fdfd | 129 | %{__aclocal} -I Source/autotools |
333087b6 | 130 | %{__autoconf} |
f8e56294 AF |
131 | %{__autoheader} |
132 | %{__automake} | |
f8e56294 | 133 | %configure \ |
c8eaba2e | 134 | LDFLAGS="%{rpmldflags} -fuse-ld=gold" \ |
0135bc91 | 135 | --disable-gtk-doc \ |
f8e56294 | 136 | --disable-silent-rules \ |
0135bc91 | 137 | --enable-geolocation \ |
e3d059d0 | 138 | --enable-glx \ |
c66a3aee | 139 | %{__enable_disable introspection} \ |
e3d059d0 | 140 | --enable-webgl \ |
c66a3aee | 141 | --with-gtk=3.0 \ |
c8eaba2e | 142 | --with-html-dir=%{_gtkdocdir} |
f8e56294 | 143 | |
09958ad8 | 144 | %{__make} -j1 |
f8e56294 AF |
145 | |
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %{__make} install \ | |
150 | DESTDIR=$RPM_BUILD_ROOT | |
151 | ||
cf9395dc | 152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
bbd2fab2 | 153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/webkit2gtk-3.0/injected-bundle/*.la |
959213a2 | 154 | |
bbd2fab2 | 155 | %find_lang WebKitGTK-3.0 |
f8e56294 AF |
156 | |
157 | %clean | |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
09aa776b JB |
160 | %post -p /sbin/ldconfig |
161 | %postun -p /sbin/ldconfig | |
f8e56294 | 162 | |
bbd2fab2 | 163 | %files -f WebKitGTK-3.0.lang |
f8e56294 | 164 | %defattr(644,root,root,755) |
97c9d259 | 165 | %doc ChangeLog NEWS |
f8e56294 | 166 | %attr(755,root,root) %{_bindir}/jsc-3 |
9130be70 MB |
167 | %attr(755,root,root) %{_libexecdir}/WebKitPluginProcess |
168 | %attr(755,root,root) %{_libexecdir}/WebKitWebProcess | |
f8e56294 AF |
169 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* |
170 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
9130be70 | 171 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so.*.*.* |
bbd2fab2 | 172 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-3.0.so.25 |
cf9395dc AF |
173 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
174 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 | 175 | %if %{with introspection} |
8200eed4 | 176 | %{_libdir}/girepository-1.0/JavaScriptCore-3.0.typelib |
f8e56294 | 177 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib |
bbd2fab2 | 178 | %{_libdir}/girepository-1.0/WebKit2-3.0.typelib |
f8e56294 | 179 | %endif |
bbd2fab2 MB |
180 | %dir %{_libdir}/webkit2gtk-3.0 |
181 | %dir %{_libdir}/webkit2gtk-3.0/injected-bundle | |
182 | %attr(755,root,root) %{_libdir}/webkit2gtk-3.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
c53434ba | 183 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 184 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 185 | %{_datadir}/webkitgtk-3.0/resources |
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 | 192 | %if %{with introspection} |
8200eed4 | 193 | %{_datadir}/gir-1.0/JavaScriptCore-3.0.gir |
f8e56294 | 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 |