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