]>
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 | |
7dbd49e0 | 8 | Version: 2.0.1 |
d783335e | 9 | Release: 2 |
093f5867 PZ |
10 | License: BSD-like |
11 | Group: X11/Libraries | |
a394da80 | 12 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
7dbd49e0 | 13 | # Source0-md5: 69c2037b6d2644d789d34940eac9c993 |
d13b7e6b JB |
14 | Patch0: %{name}-sync-builtins.patch |
15 | Patch1: %{name}-sh.patch | |
d783335e | 16 | Patch2: %{name}-pl.po.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 |
5aeb4243 | 41 | BuildRequires: libicu-devel >= 4.2.1 |
093f5867 PZ |
42 | BuildRequires: libjpeg-devel |
43 | BuildRequires: libpng-devel | |
d13b7e6b JB |
44 | BuildRequires: libsecret-devel |
45 | BuildRequires: libsoup-devel >= 2.42.0 | |
8a5c1de2 | 46 | BuildRequires: libstdc++-devel |
093f5867 | 47 | BuildRequires: libtool >= 2:1.5 |
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 | |
66 | Requires: cairo >= 1.10 | |
cf86a824 | 67 | Requires: enchant >= 0.22 |
d13b7e6b JB |
68 | Requires: fontconfig-libs >= 2.5.0 |
69 | Requires: freetype >= 1:2.1.8 | |
70 | Requires: glib2 >= 1:2.36.0 | |
71 | Requires: gstreamer >= 1.0.3 | |
72 | Requires: gstreamer-plugins-base >= 1.0.3 | |
73 | Requires: gtk+2 >= 2:2.24.10 | |
74 | Requires: harfbuzz >= 0.9.7 | |
75 | Requires: libsoup >= 2.42.0 | |
cf86a824 JB |
76 | Requires: libxml2 >= 1:2.6.30 |
77 | Requires: libxslt >= 1.1.7 | |
d13b7e6b | 78 | Requires: pango >= 1:1.32.0 |
2bb12873 | 79 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
093f5867 PZ |
80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
81 | ||
82 | %description | |
83 | webkit is a port of the WebKit embeddable web component to GTK+. | |
84 | ||
85 | %description -l pl.UTF-8 | |
86 | webkit to port osadzalnego komponentu WWW WebKit do GTK+. | |
87 | ||
88 | %package devel | |
8cf2b70b MB |
89 | Summary: Development files for WebKit |
90 | Summary(pl.UTF-8): Pliki programistyczne WebKit | |
093f5867 | 91 | Group: X11/Development/Libraries |
721db7ac | 92 | Requires: %{name} = %{version}-%{release} |
d13b7e6b JB |
93 | Requires: glib2-devel >= 1:2.36.0 |
94 | Requires: gtk+2-devel >= 2:2.24.10 | |
95 | Requires: libsoup-devel >= 2.42.0 | |
8a5c1de2 | 96 | Requires: libstdc++-devel |
093f5867 PZ |
97 | |
98 | %description devel | |
8cf2b70b | 99 | Development files for WebKit. |
093f5867 PZ |
100 | |
101 | %description devel -l pl.UTF-8 | |
8cf2b70b | 102 | Pliki programistyczne WebKit. |
093f5867 PZ |
103 | |
104 | %prep | |
a394da80 | 105 | %setup -q -n webkitgtk-%{version} |
d13b7e6b JB |
106 | %patch0 -p1 |
107 | %patch1 -p1 | |
d783335e | 108 | %patch2 -p1 |
f8294a65 | 109 | |
093f5867 | 110 | %build |
7166e40b | 111 | %{__libtoolize} |
8901e632 | 112 | %{__aclocal} -I Source/autotools |
b1701b51 | 113 | %{__autoconf} |
7166e40b PZ |
114 | %{__autoheader} |
115 | %{__automake} | |
bb1a4556 | 116 | %configure \ |
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 JB |
124 | --with-gtk=2.0 \ |
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} |
8cf2b70b MB |
157 | %{_libdir}/girepository-1.0/JSCore-1.0.typelib |
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 | |
163 | %{_datadir}/webkitgtk-1.0/webinspector | |
093f5867 PZ |
164 | |
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
8901e632 JB |
167 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so |
168 | %attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so | |
2bb12873 | 169 | %if %{with introspection} |
8cf2b70b MB |
170 | %{_datadir}/gir-1.0/JSCore-1.0.gir |
171 | %{_datadir}/gir-1.0/WebKit-1.0.gir | |
2bb12873 | 172 | %endif |
8901e632 JB |
173 | %{_includedir}/webkitgtk-1.0 |
174 | %{_pkgconfigdir}/javascriptcoregtk-1.0.pc | |
7166e40b | 175 | %{_pkgconfigdir}/webkit-1.0.pc |