]>
Commit | Line | Data |
---|---|---|
2bb12873 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without introspection # disable introspection | |
8901e632 | 4 | # |
d9cc0833 JB |
5 | # it's not possible to build this with debuginfo on 32bit archs due to |
6 | # memory constraints during linking | |
7 | %ifarch %{ix86} x32 | |
8 | %define _enable_debug_packages 0 | |
9 | %endif | |
a6fd3037 JB |
10 | Summary: Port of WebKit embeddable web component to GTK+ 2 |
11 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 2 | |
093f5867 | 12 | Name: gtk-webkit |
a6fd3037 | 13 | # note: 2.4.x is the last series with webkitgtk-1 API and GTK+ 2.x support |
2ab88573 | 14 | Version: 2.4.11 |
14c9515b | 15 | Release: 8 |
093f5867 PZ |
16 | License: BSD-like |
17 | Group: X11/Libraries | |
a394da80 | 18 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
2ab88573 | 19 | # Source0-md5: 24a25ccc30a7914ae50922aedf24b7bc |
143c89ec | 20 | Patch0: x32.patch |
bdcbb327 | 21 | Patch1: abs.patch |
d2b88255 | 22 | Patch2: %{name}-icu59.patch |
4a318b53 | 23 | Patch3: %{name}-icu65.patch |
c6c75c07 JP |
24 | Patch4: glib2.68.patch |
25 | Patch5: icu68.patch | |
26 | Patch6: grammar.patch | |
27 | Patch7: volatile.patch | |
618d2705 | 28 | URL: http://webkitgtk.org/ |
dc171162 | 29 | BuildRequires: /usr/bin/ld.gold |
d13b7e6b | 30 | BuildRequires: EGL-devel |
8901e632 | 31 | BuildRequires: OpenGL-GLX-devel |
d13b7e6b | 32 | BuildRequires: at-spi2-core-devel >= 2.6.0 |
a394da80 | 33 | BuildRequires: autoconf >= 2.60 |
093f5867 | 34 | BuildRequires: automake |
5c43f9b5 | 35 | BuildRequires: bison >= 1.875 |
8901e632 | 36 | BuildRequires: cairo-devel >= 1.10 |
957ed3e7 | 37 | BuildRequires: enchant-devel >= 0.22 |
8cf2b70b | 38 | BuildRequires: flex >= 2.5.33 |
d13b7e6b | 39 | BuildRequires: fontconfig-devel >= 2.5.0 |
231faf60 | 40 | BuildRequires: freetype-devel >= 1:2.1.8 |
d13b7e6b | 41 | BuildRequires: gcc-c++ >= 6:4.7 |
dc171162 | 42 | BuildRequires: geoclue2-devel >= 2.1.5 |
d9e6d388 | 43 | BuildRequires: gettext-tools |
d13b7e6b | 44 | BuildRequires: glib2-devel >= 1:2.36.0 |
46f0db60 | 45 | BuildRequires: glibc-misc |
d13b7e6b | 46 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} |
fb358f22 | 47 | BuildRequires: gperf |
d13b7e6b JB |
48 | BuildRequires: gstreamer-devel >= 1.0.3 |
49 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.3 | |
dc171162 | 50 | BuildRequires: libstdc++-devel >= 6:4.7 |
d13b7e6b | 51 | BuildRequires: gtk+2-devel >= 2:2.24.10 |
957ed3e7 | 52 | BuildRequires: gtk-doc >= 1.10 |
d13b7e6b | 53 | BuildRequires: harfbuzz-devel >= 0.9.7 |
b3f15db7 | 54 | BuildRequires: harfbuzz-icu-devel >= 0.9.7 |
d2b88255 | 55 | BuildRequires: libicu-devel >= 59 |
093f5867 PZ |
56 | BuildRequires: libjpeg-devel |
57 | BuildRequires: libpng-devel | |
d13b7e6b JB |
58 | BuildRequires: libsecret-devel |
59 | BuildRequires: libsoup-devel >= 2.42.0 | |
8a5c1de2 | 60 | BuildRequires: libstdc++-devel |
7ff410bb JB |
61 | # libtool with -fuse-ld= gcc option support |
62 | BuildRequires: libtool >= 2:2.4.2-13 | |
d13b7e6b | 63 | BuildRequires: libwebp-devel |
957ed3e7 | 64 | BuildRequires: libxml2-devel >= 1:2.6.30 |
231faf60 | 65 | BuildRequires: libxslt-devel >= 1.1.7 |
d13b7e6b JB |
66 | BuildRequires: pango-devel >= 1:1.32.0 |
67 | BuildRequires: perl-base | |
093f5867 | 68 | BuildRequires: pkgconfig |
d13b7e6b JB |
69 | BuildRequires: python |
70 | BuildRequires: rpmbuild(macros) >= 1.592 | |
71 | BuildRequires: ruby | |
8901e632 JB |
72 | BuildRequires: sqlite3-devel >= 3 |
73 | BuildRequires: tar >= 1:1.22 | |
d13b7e6b | 74 | BuildRequires: udev-glib-devel |
a394da80 | 75 | BuildRequires: xorg-lib-libXcomposite-devel |
d13b7e6b | 76 | BuildRequires: xorg-lib-libXdamage-devel |
8901e632 | 77 | BuildRequires: xorg-lib-libXrender-devel |
d3f90b4e | 78 | BuildRequires: xorg-lib-libXt-devel |
8901e632 JB |
79 | BuildRequires: xz |
80 | BuildRequires: zlib-devel | |
81 | Requires: cairo >= 1.10 | |
cf86a824 | 82 | Requires: enchant >= 0.22 |
d13b7e6b JB |
83 | Requires: fontconfig-libs >= 2.5.0 |
84 | Requires: freetype >= 1:2.1.8 | |
85 | Requires: glib2 >= 1:2.36.0 | |
86 | Requires: gstreamer >= 1.0.3 | |
87 | Requires: gstreamer-plugins-base >= 1.0.3 | |
88 | Requires: gtk+2 >= 2:2.24.10 | |
89 | Requires: harfbuzz >= 0.9.7 | |
90 | Requires: libsoup >= 2.42.0 | |
cf86a824 JB |
91 | Requires: libxml2 >= 1:2.6.30 |
92 | Requires: libxslt >= 1.1.7 | |
d13b7e6b | 93 | Requires: pango >= 1:1.32.0 |
2bb12873 | 94 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
093f5867 PZ |
95 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
96 | ||
dc171162 JB |
97 | # __once_call, __once_called non-function symbols from libstdc++ |
98 | %define skip_post_check_so lib.*gtk-1.0.* | |
99 | ||
093f5867 | 100 | %description |
a6fd3037 | 101 | gtk-webkit is a port of the WebKit embeddable web component to GTK+ 2. |
093f5867 PZ |
102 | |
103 | %description -l pl.UTF-8 | |
a6fd3037 | 104 | gtk-webkit to port osadzalnego komponentu WWW WebKit do GTK+ 2. |
093f5867 PZ |
105 | |
106 | %package devel | |
e581c689 JB |
107 | Summary: Development files for WebKit for GTK+ 2 |
108 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 2 | |
093f5867 | 109 | Group: X11/Development/Libraries |
721db7ac | 110 | Requires: %{name} = %{version}-%{release} |
d13b7e6b JB |
111 | Requires: glib2-devel >= 1:2.36.0 |
112 | Requires: gtk+2-devel >= 2:2.24.10 | |
113 | Requires: libsoup-devel >= 2.42.0 | |
8a5c1de2 | 114 | Requires: libstdc++-devel |
093f5867 PZ |
115 | |
116 | %description devel | |
e581c689 | 117 | Development files for WebKit for GTK+ 2. |
093f5867 PZ |
118 | |
119 | %description devel -l pl.UTF-8 | |
e581c689 | 120 | Pliki programistyczne komponentu WebKit dla GTK+ 2. |
093f5867 PZ |
121 | |
122 | %prep | |
a394da80 | 123 | %setup -q -n webkitgtk-%{version} |
143c89ec | 124 | %patch0 -p1 |
bdcbb327 | 125 | %patch1 -p1 |
d2b88255 | 126 | %patch2 -p1 |
4a318b53 | 127 | %patch3 -p1 |
c6c75c07 JP |
128 | %patch4 -p1 |
129 | %patch5 -p1 | |
130 | %patch6 -p1 | |
131 | %patch7 -p1 | |
f8294a65 | 132 | |
093f5867 | 133 | %build |
7166e40b | 134 | %{__libtoolize} |
8901e632 | 135 | %{__aclocal} -I Source/autotools |
b1701b51 | 136 | %{__autoconf} |
7166e40b PZ |
137 | %{__autoheader} |
138 | %{__automake} | |
d9cc0833 JB |
139 | %if "%{cxx_version}" >= "4.9" |
140 | CXXFLAGS="%{rpmcxxflags} -fno-delete-null-pointer-checks" | |
141 | %endif | |
bb1a4556 | 142 | %configure \ |
f7dbae7a | 143 | %ifarch %{x8664} |
7ff410bb | 144 | LDFLAGS="%{rpmldflags} -fuse-ld=gold" \ |
f7dbae7a JR |
145 | %else |
146 | LDFLAGS="%{rpmldflags} -fuse-ld=bfd -Wl,--no-keep-memory" \ | |
147 | %endif | |
d13b7e6b | 148 | --disable-gtk-doc \ |
8cf2b70b | 149 | --disable-silent-rules \ |
a394da80 | 150 | --disable-webkit2 \ |
5aeb4243 | 151 | --enable-geolocation \ |
d13b7e6b JB |
152 | --enable-glx \ |
153 | %{__enable_disable introspection} \ | |
154 | --enable-webgl \ | |
8901e632 | 155 | --with-gtk=2.0 \ |
7ff410bb | 156 | --with-html-dir=%{_gtkdocdir} |
ebd32623 | 157 | |
a1864eef | 158 | %{__make} -j1 |
093f5867 PZ |
159 | |
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
83c17f84 | 162 | |
7166e40b PZ |
163 | %{__make} install \ |
164 | DESTDIR=$RPM_BUILD_ROOT | |
093f5867 | 165 | |
8901e632 JB |
166 | # obsoleted by pkg-config |
167 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*-1.0.la | |
168 | # packaged in gtk-webkit3 | |
dc171162 | 169 | %{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/{webkitgtk,webkitdomgtk} |
f4962f2a | 170 | |
d13b7e6b | 171 | %find_lang WebKitGTK-2.0 |
9d45f565 | 172 | |
093f5867 PZ |
173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
176 | %post -p /sbin/ldconfig | |
177 | %postun -p /sbin/ldconfig | |
178 | ||
d13b7e6b | 179 | %files -f WebKitGTK-2.0.lang |
093f5867 | 180 | %defattr(644,root,root,755) |
d13b7e6b | 181 | %doc ChangeLog NEWS |
8901e632 JB |
182 | %attr(755,root,root) %{_bindir}/jsc-1 |
183 | %attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so.*.*.* | |
184 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-1.0.so.0 | |
185 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-1.0.so.0 | |
2bb12873 | 187 | %if %{with introspection} |
737f2f59 | 188 | %{_libdir}/girepository-1.0/JavaScriptCore-1.0.typelib |
8cf2b70b | 189 | %{_libdir}/girepository-1.0/WebKit-1.0.typelib |
2bb12873 | 190 | %endif |
8901e632 JB |
191 | %dir %{_datadir}/webkitgtk-1.0 |
192 | %{_datadir}/webkitgtk-1.0/images | |
193 | %{_datadir}/webkitgtk-1.0/resources | |
093f5867 PZ |
194 | |
195 | %files devel | |
196 | %defattr(644,root,root,755) | |
8901e632 JB |
197 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so |
198 | %attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so | |
2bb12873 | 199 | %if %{with introspection} |
737f2f59 | 200 | %{_datadir}/gir-1.0/JavaScriptCore-1.0.gir |
8cf2b70b | 201 | %{_datadir}/gir-1.0/WebKit-1.0.gir |
2bb12873 | 202 | %endif |
8901e632 JB |
203 | %{_includedir}/webkitgtk-1.0 |
204 | %{_pkgconfigdir}/javascriptcoregtk-1.0.pc | |
7166e40b | 205 | %{_pkgconfigdir}/webkit-1.0.pc |