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