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