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