]>
Commit | Line | Data |
---|---|---|
2bb12873 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without introspection # disable introspection | |
8901e632 | 4 | # |
093f5867 PZ |
5 | Summary: Port of WebKit embeddable web component to GTK+ |
6 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ | |
7 | Name: gtk-webkit | |
7ff410bb | 8 | Version: 2.0.4 |
9762886d | 9 | Release: 2 |
093f5867 PZ |
10 | License: BSD-like |
11 | Group: X11/Libraries | |
a394da80 | 12 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
7ff410bb | 13 | # Source0-md5: 413be319ba171feed9348d1bede6b0a7 |
d13b7e6b | 14 | Patch0: %{name}-sync-builtins.patch |
7ff410bb | 15 | Patch1: %{name}-pl.po.patch |
2404f7c3 | 16 | Patch2: bison3.patch |
618d2705 | 17 | URL: http://webkitgtk.org/ |
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 |
5aeb4243 | 30 | BuildRequires: geoclue-devel |
94f95ec8 | 31 | BuildRequires: gettext-devel |
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 | |
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 | |
7ff410bb | 68 | BuildRequires: /usr/bin/ld.gold |
8901e632 | 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 | ||
85 | %description | |
86 | webkit is a port of the WebKit embeddable web component to GTK+. | |
87 | ||
88 | %description -l pl.UTF-8 | |
89 | webkit to port osadzalnego komponentu WWW WebKit do GTK+. | |
90 | ||
91 | %package devel | |
e581c689 JB |
92 | Summary: Development files for WebKit for GTK+ 2 |
93 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 2 | |
093f5867 | 94 | Group: X11/Development/Libraries |
721db7ac | 95 | Requires: %{name} = %{version}-%{release} |
d13b7e6b JB |
96 | Requires: glib2-devel >= 1:2.36.0 |
97 | Requires: gtk+2-devel >= 2:2.24.10 | |
98 | Requires: libsoup-devel >= 2.42.0 | |
8a5c1de2 | 99 | Requires: libstdc++-devel |
093f5867 PZ |
100 | |
101 | %description devel | |
e581c689 | 102 | Development files for WebKit for GTK+ 2. |
093f5867 PZ |
103 | |
104 | %description devel -l pl.UTF-8 | |
e581c689 | 105 | Pliki programistyczne komponentu WebKit dla GTK+ 2. |
093f5867 PZ |
106 | |
107 | %prep | |
a394da80 | 108 | %setup -q -n webkitgtk-%{version} |
d13b7e6b JB |
109 | %patch0 -p1 |
110 | %patch1 -p1 | |
2404f7c3 | 111 | %patch2 -p1 |
f8294a65 | 112 | |
093f5867 | 113 | %build |
7166e40b | 114 | %{__libtoolize} |
8901e632 | 115 | %{__aclocal} -I Source/autotools |
b1701b51 | 116 | %{__autoconf} |
7166e40b PZ |
117 | %{__autoheader} |
118 | %{__automake} | |
bb1a4556 | 119 | %configure \ |
7ff410bb | 120 | LDFLAGS="%{rpmldflags} -fuse-ld=gold" \ |
d13b7e6b | 121 | --disable-gtk-doc \ |
8cf2b70b | 122 | --disable-silent-rules \ |
a394da80 | 123 | --disable-webkit2 \ |
5aeb4243 | 124 | --enable-geolocation \ |
d13b7e6b JB |
125 | --enable-glx \ |
126 | %{__enable_disable introspection} \ | |
127 | --enable-webgl \ | |
8901e632 | 128 | --with-gtk=2.0 \ |
7ff410bb | 129 | --with-html-dir=%{_gtkdocdir} |
ebd32623 | 130 | |
a1864eef | 131 | %{__make} -j1 |
093f5867 PZ |
132 | |
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
83c17f84 | 135 | |
7166e40b PZ |
136 | %{__make} install \ |
137 | DESTDIR=$RPM_BUILD_ROOT | |
093f5867 | 138 | |
8901e632 JB |
139 | # obsoleted by pkg-config |
140 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*-1.0.la | |
141 | # packaged in gtk-webkit3 | |
142 | %{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/webkitgtk | |
f4962f2a | 143 | |
d13b7e6b | 144 | %find_lang WebKitGTK-2.0 |
9d45f565 | 145 | |
093f5867 PZ |
146 | %clean |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %post -p /sbin/ldconfig | |
150 | %postun -p /sbin/ldconfig | |
151 | ||
d13b7e6b | 152 | %files -f WebKitGTK-2.0.lang |
093f5867 | 153 | %defattr(644,root,root,755) |
d13b7e6b | 154 | %doc ChangeLog NEWS |
8901e632 JB |
155 | %attr(755,root,root) %{_bindir}/jsc-1 |
156 | %attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so.*.*.* | |
157 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-1.0.so.0 | |
158 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so.*.*.* | |
159 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-1.0.so.0 | |
2bb12873 | 160 | %if %{with introspection} |
8cf2b70b MB |
161 | %{_libdir}/girepository-1.0/JSCore-1.0.typelib |
162 | %{_libdir}/girepository-1.0/WebKit-1.0.typelib | |
2bb12873 | 163 | %endif |
8901e632 JB |
164 | %dir %{_datadir}/webkitgtk-1.0 |
165 | %{_datadir}/webkitgtk-1.0/images | |
166 | %{_datadir}/webkitgtk-1.0/resources | |
167 | %{_datadir}/webkitgtk-1.0/webinspector | |
093f5867 PZ |
168 | |
169 | %files devel | |
170 | %defattr(644,root,root,755) | |
8901e632 JB |
171 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so |
172 | %attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so | |
2bb12873 | 173 | %if %{with introspection} |
8cf2b70b MB |
174 | %{_datadir}/gir-1.0/JSCore-1.0.gir |
175 | %{_datadir}/gir-1.0/WebKit-1.0.gir | |
2bb12873 | 176 | %endif |
8901e632 JB |
177 | %{_includedir}/webkitgtk-1.0 |
178 | %{_pkgconfigdir}/javascriptcoregtk-1.0.pc | |
7166e40b | 179 | %{_pkgconfigdir}/webkit-1.0.pc |