]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
218faa4d | 2 | # - gamepad |
be642b95 | 3 | # - battery-status (BR: upower-devel) |
f8e56294 AF |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without introspection # disable introspection | |
8f69f015 | 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 |
218faa4d | 11 | Version: 2.2.4 |
8f69f015 | 12 | Release: 2 |
f8e56294 AF |
13 | License: BSD-like |
14 | Group: X11/Libraries | |
9130be70 | 15 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
218faa4d | 16 | # Source0-md5: d2af0d2d75f18cac33bd82ee63e22571 |
cf17c47d | 17 | Patch0: sync-builtins.patch |
f8e56294 | 18 | URL: http://webkitgtk.org/ |
8f69f015 | 19 | BuildRequires: /usr/bin/ld.gold |
e3d059d0 JB |
20 | BuildRequires: EGL-devel |
21 | BuildRequires: OpenGL-GLX-devel | |
bbd2fab2 | 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 | |
8f69f015 | 39 | BuildRequires: libstdc++-devel >= 6:4.7 |
e3d059d0 JB |
40 | # GTK+ 2.x for webkit2 plugin process; GTK+ 3 for base GUI |
41 | BuildRequires: gtk+2-devel >= 2:2.24.10 | |
8200eed4 | 42 | BuildRequires: gtk+3-devel >= 3.10.0 |
f8e56294 | 43 | BuildRequires: gtk-doc >= 1.10 |
bbd2fab2 | 44 | BuildRequires: harfbuzz-devel >= 0.9.7 |
333087b6 | 45 | BuildRequires: harfbuzz-icu-devel >= 0.9.7 |
f8e56294 AF |
46 | BuildRequires: libicu-devel >= 4.2.1 |
47 | BuildRequires: libjpeg-devel | |
48 | BuildRequires: libpng-devel | |
bbd2fab2 MB |
49 | BuildRequires: libsecret-devel |
50 | BuildRequires: libsoup-devel >= 2.42.0 | |
f8e56294 | 51 | BuildRequires: libstdc++-devel |
cb59ea5a JB |
52 | # libtool with -fuse-ld= gcc option support |
53 | BuildRequires: libtool >= 2:2.4.2-13 | |
bbd2fab2 | 54 | BuildRequires: libwebp-devel |
f8e56294 AF |
55 | BuildRequires: libxml2-devel >= 1:2.6.30 |
56 | BuildRequires: libxslt-devel >= 1.1.7 | |
bbd2fab2 | 57 | BuildRequires: pango-devel >= 1:1.32.0 |
e3d059d0 | 58 | BuildRequires: perl-base |
f8e56294 | 59 | BuildRequires: pkgconfig |
e3d059d0 | 60 | BuildRequires: python |
c66a3aee | 61 | BuildRequires: rpmbuild(macros) >= 1.592 |
bbd2fab2 | 62 | BuildRequires: ruby |
333087b6 | 63 | BuildRequires: sqlite3-devel >= 3 |
09aa776b | 64 | BuildRequires: tar >= 1:1.22 |
bbd2fab2 | 65 | BuildRequires: udev-glib-devel |
e9e9ae8f | 66 | BuildRequires: xorg-lib-libXcomposite-devel |
e3d059d0 | 67 | BuildRequires: xorg-lib-libXdamage-devel |
cf9395dc | 68 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 69 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 70 | BuildRequires: xz |
09ca9f01 | 71 | BuildRequires: zlib-devel |
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 | |
8f69f015 ER |
90 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ |
91 | 3. | |
f8e56294 AF |
92 | |
93 | %description -l pl.UTF-8 | |
97c9d259 | 94 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
95 | |
96 | %package devel | |
97c9d259 JB |
97 | Summary: Development files for WebKit for GTK+ 3 |
98 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
99 | Group: X11/Development/Libraries |
100 | Requires: %{name} = %{version}-%{release} | |
bbd2fab2 | 101 | Requires: glib2-devel >= 1:2.36.0 |
8200eed4 | 102 | Requires: gtk+3-devel >= 3.10.0 |
bbd2fab2 | 103 | Requires: libsoup-devel >= 2.42.0 |
0135bc91 | 104 | Requires: libstdc++-devel |
f8e56294 AF |
105 | |
106 | %description devel | |
97c9d259 | 107 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
108 | |
109 | %description devel -l pl.UTF-8 | |
97c9d259 | 110 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 111 | |
09ca9f01 MB |
112 | %package apidocs |
113 | Summary: WebKit API documentation | |
114 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
115 | Group: Documentation | |
116 | Requires: gtk-doc-common | |
8f69f015 ER |
117 | %if "%{_rpmversion}" >= "5" |
118 | BuildArch: noarch | |
119 | %endif | |
09ca9f01 MB |
120 | |
121 | %description apidocs | |
122 | WebKit API documentation. | |
123 | ||
124 | %description apidocs -l pl.UTF-8 | |
125 | Dokumentacja API WebKita. | |
126 | ||
f8e56294 | 127 | %prep |
9130be70 | 128 | %setup -q -n webkitgtk-%{version} |
cf17c47d | 129 | %patch0 -p1 |
97c9d259 | 130 | |
f8e56294 | 131 | %build |
f8e56294 | 132 | %{__libtoolize} |
7f68fdfd | 133 | %{__aclocal} -I Source/autotools |
333087b6 | 134 | %{__autoconf} |
f8e56294 AF |
135 | %{__autoheader} |
136 | %{__automake} | |
f8e56294 | 137 | %configure \ |
c8eaba2e | 138 | LDFLAGS="%{rpmldflags} -fuse-ld=gold" \ |
0135bc91 | 139 | --disable-gtk-doc \ |
f8e56294 | 140 | --disable-silent-rules \ |
0135bc91 | 141 | --enable-geolocation \ |
e3d059d0 | 142 | --enable-glx \ |
c66a3aee | 143 | %{__enable_disable introspection} \ |
e3d059d0 | 144 | --enable-webgl \ |
c66a3aee | 145 | --with-gtk=3.0 \ |
c8eaba2e | 146 | --with-html-dir=%{_gtkdocdir} |
f8e56294 | 147 | |
09958ad8 | 148 | %{__make} -j1 |
f8e56294 AF |
149 | |
150 | %install | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
153 | %{__make} install \ | |
154 | DESTDIR=$RPM_BUILD_ROOT | |
155 | ||
cf9395dc | 156 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
bbd2fab2 | 157 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/webkit2gtk-3.0/injected-bundle/*.la |
959213a2 | 158 | |
bbd2fab2 | 159 | %find_lang WebKitGTK-3.0 |
f8e56294 AF |
160 | |
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
09aa776b JB |
164 | %post -p /sbin/ldconfig |
165 | %postun -p /sbin/ldconfig | |
f8e56294 | 166 | |
bbd2fab2 | 167 | %files -f WebKitGTK-3.0.lang |
f8e56294 | 168 | %defattr(644,root,root,755) |
97c9d259 | 169 | %doc ChangeLog NEWS |
f8e56294 | 170 | %attr(755,root,root) %{_bindir}/jsc-3 |
9130be70 MB |
171 | %attr(755,root,root) %{_libexecdir}/WebKitPluginProcess |
172 | %attr(755,root,root) %{_libexecdir}/WebKitWebProcess | |
f8e56294 AF |
173 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* |
174 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
9130be70 | 175 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so.*.*.* |
bbd2fab2 | 176 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-3.0.so.25 |
cf9395dc AF |
177 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
178 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 | 179 | %if %{with introspection} |
8200eed4 | 180 | %{_libdir}/girepository-1.0/JavaScriptCore-3.0.typelib |
f8e56294 | 181 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib |
bbd2fab2 | 182 | %{_libdir}/girepository-1.0/WebKit2-3.0.typelib |
f8e56294 | 183 | %endif |
bbd2fab2 MB |
184 | %dir %{_libdir}/webkit2gtk-3.0 |
185 | %dir %{_libdir}/webkit2gtk-3.0/injected-bundle | |
186 | %attr(755,root,root) %{_libdir}/webkit2gtk-3.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
c53434ba | 187 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 188 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 189 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 AF |
190 | |
191 | %files devel | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
9130be70 | 194 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so |
cf9395dc | 195 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 | 196 | %if %{with introspection} |
8200eed4 | 197 | %{_datadir}/gir-1.0/JavaScriptCore-3.0.gir |
f8e56294 | 198 | %{_datadir}/gir-1.0/WebKit-3.0.gir |
bbd2fab2 | 199 | %{_datadir}/gir-1.0/WebKit2-3.0.gir |
f8e56294 | 200 | %endif |
09ca9f01 | 201 | %{_includedir}/webkitgtk-3.0 |
f8e56294 | 202 | %{_pkgconfigdir}/webkitgtk-3.0.pc |
9130be70 | 203 | %{_pkgconfigdir}/webkit2gtk-3.0.pc |
cf9395dc | 204 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |
09ca9f01 MB |
205 | |
206 | %files apidocs | |
207 | %defattr(644,root,root,755) | |
208 | %{_gtkdocdir}/webkitgtk | |
9130be70 | 209 | %{_gtkdocdir}/webkit2gtk |