]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
89035ba9 | 2 | # - accelerated-compositing, notifications, gamepad, dom-mutation-observers, input-color, media-source, media-stream, mhtml, web-audio, web-timing, touch-icon-loading, register-protocol-handler |
91c1decc | 3 | # - directory-upload |
89035ba9 JB |
4 | # - webkit2 |
5 | # - APIs: page-visibility-api, indexed-database, input-speech, image-resizer, quota, animation-api | |
6 | # - HTML5: microdata, datagrid, data-transfer-items, video-track, file-system, style-scoped | |
f8e56294 AF |
7 | # |
8 | # Conditional build: | |
9 | %bcond_without introspection # disable introspection | |
10 | # | |
97c9d259 JB |
11 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
12 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
f8e56294 | 13 | Name: gtk-webkit3 |
9514bd6e | 14 | Version: 1.8.2 |
20ea66e3 | 15 | Release: 1 |
f8e56294 AF |
16 | License: BSD-like |
17 | Group: X11/Libraries | |
024f1b5f | 18 | Source0: http://webkitgtk.org/releases/webkit-%{version}.tar.xz |
9514bd6e | 19 | # Source0-md5: f7bd0bd4f323039f15e19c82a9a8313c |
e3bd5be3 | 20 | Patch0: %{name}-bison2.6.patch |
f8e56294 | 21 | URL: http://webkitgtk.org/ |
09ca9f01 | 22 | BuildRequires: OpenGL-GLU-devel |
f8e56294 AF |
23 | BuildRequires: autoconf >= 2.59 |
24 | BuildRequires: automake | |
e3bd5be3 | 25 | BuildRequires: bison >= 1.875 |
cf9395dc | 26 | BuildRequires: cairo-devel >= 1.10 |
f8e56294 AF |
27 | BuildRequires: enchant-devel >= 0.22 |
28 | BuildRequires: flex >= 2.5.33 | |
29 | BuildRequires: fontconfig-devel >= 2.4.0 | |
30 | BuildRequires: freetype-devel >= 1:2.1.8 | |
31 | BuildRequires: geoclue-devel | |
32 | BuildRequires: gettext-devel | |
09ca9f01 | 33 | BuildRequires: glib2-devel >= 1:2.32.0 |
f8e56294 | 34 | BuildRequires: glibc-misc |
c66a3aee | 35 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.10.0} |
f8e56294 AF |
36 | BuildRequires: gperf |
37 | BuildRequires: gstreamer-devel >= 0.10 | |
cf9395dc | 38 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.30 |
9514bd6e | 39 | BuildRequires: gtk+3-devel >= 3.4.0 |
f8e56294 AF |
40 | BuildRequires: gtk-doc >= 1.10 |
41 | BuildRequires: libicu-devel >= 4.2.1 | |
42 | BuildRequires: libjpeg-devel | |
43 | BuildRequires: libpng-devel | |
09ca9f01 | 44 | BuildRequires: libsoup-devel >= 2.38.0 |
f8e56294 AF |
45 | BuildRequires: libstdc++-devel |
46 | BuildRequires: libtool >= 2:1.5 | |
47 | BuildRequires: libxml2-devel >= 1:2.6.30 | |
48 | BuildRequires: libxslt-devel >= 1.1.7 | |
09ca9f01 | 49 | BuildRequires: pango-devel >= 1:1.21.0 |
f8e56294 | 50 | BuildRequires: pkgconfig |
c66a3aee | 51 | BuildRequires: rpmbuild(macros) >= 1.592 |
97c9d259 | 52 | BuildRequires: sqlite3-devel >= 3.0 |
cf9395dc | 53 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 MB |
54 | BuildRequires: xorg-lib-libXt-devel |
55 | BuildRequires: zlib-devel | |
cf9395dc | 56 | Requires: cairo >= 1.10 |
f8e56294 | 57 | Requires: enchant >= 0.22 |
09ca9f01 | 58 | Requires: glib2 >= 1:2.32.0 |
cf9395dc | 59 | Requires: gstreamer-plugins-base >= 0.10.30 |
9514bd6e | 60 | Requires: gtk+3 >= 3.4.0 |
09ca9f01 | 61 | Requires: libsoup >= 2.38.0 |
f8e56294 AF |
62 | Requires: libxml2 >= 1:2.6.30 |
63 | Requires: libxslt >= 1.1.7 | |
09ca9f01 | 64 | Requires: pango >= 1:1.21.0 |
f8e56294 AF |
65 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
67 | ||
68 | %description | |
97c9d259 | 69 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3. |
f8e56294 AF |
70 | |
71 | %description -l pl.UTF-8 | |
97c9d259 | 72 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
73 | |
74 | %package devel | |
97c9d259 JB |
75 | Summary: Development files for WebKit for GTK+ 3 |
76 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
77 | Group: X11/Development/Libraries |
78 | Requires: %{name} = %{version}-%{release} | |
09ca9f01 | 79 | Requires: glib2-devel >= 1:2.32.0 |
9514bd6e | 80 | Requires: gtk+3-devel >= 3.4.0 |
09ca9f01 | 81 | Requires: libsoup-devel >= 2.38.0 |
f8e56294 AF |
82 | |
83 | %description devel | |
97c9d259 | 84 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
85 | |
86 | %description devel -l pl.UTF-8 | |
97c9d259 | 87 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 88 | |
09ca9f01 MB |
89 | %package apidocs |
90 | Summary: WebKit API documentation | |
91 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
92 | Group: Documentation | |
93 | Requires: gtk-doc-common | |
94 | ||
95 | %description apidocs | |
96 | WebKit API documentation. | |
97 | ||
98 | %description apidocs -l pl.UTF-8 | |
99 | Dokumentacja API WebKita. | |
100 | ||
f8e56294 AF |
101 | %prep |
102 | %setup -q -n webkit-%{version} | |
e3bd5be3 | 103 | %patch0 -p2 |
97c9d259 | 104 | |
f8e56294 AF |
105 | %build |
106 | %{__gtkdocize} | |
f8e56294 | 107 | %{__libtoolize} |
7f68fdfd | 108 | %{__aclocal} -I Source/autotools |
f8e56294 AF |
109 | %{__autoheader} |
110 | %{__automake} | |
111 | %{__autoconf} | |
112 | %configure \ | |
f8e56294 | 113 | --disable-silent-rules \ |
c66a3aee MB |
114 | %{__enable_disable introspection} \ |
115 | --with-gtk=3.0 \ | |
09ca9f01 MB |
116 | --enable-geolocation \ |
117 | --enable-gtk-doc \ | |
118 | --with-html-dir=%{_gtkdocdir} | |
f8e56294 | 119 | |
09958ad8 | 120 | %{__make} -j1 |
f8e56294 AF |
121 | |
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %{__make} install \ | |
126 | DESTDIR=$RPM_BUILD_ROOT | |
127 | ||
cf9395dc | 128 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
959213a2 | 129 | |
5a54ae22 | 130 | %find_lang webkit-3.0 |
f8e56294 AF |
131 | |
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
09ca9f01 MB |
135 | %post -p /sbin/ldconfig |
136 | %postun -p /sbin/ldconfig | |
f8e56294 AF |
137 | |
138 | %files -f webkit-3.0.lang | |
139 | %defattr(644,root,root,755) | |
97c9d259 | 140 | %doc ChangeLog NEWS |
f8e56294 AF |
141 | %attr(755,root,root) %{_bindir}/jsc-3 |
142 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* | |
143 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
cf9395dc AF |
144 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
145 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 AF |
146 | %if %{with introspection} |
147 | %{_libdir}/girepository-1.0/JSCore-3.0.typelib | |
148 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
149 | %endif | |
c53434ba | 150 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 151 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 152 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 | 153 | %{_datadir}/webkitgtk-3.0/webinspector |
f8e56294 AF |
154 | |
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
157 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
cf9395dc | 158 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 AF |
159 | %if %{with introspection} |
160 | %{_datadir}/gir-1.0/JSCore-3.0.gir | |
161 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
162 | %endif | |
09ca9f01 | 163 | %{_includedir}/webkitgtk-3.0 |
f8e56294 | 164 | %{_pkgconfigdir}/webkitgtk-3.0.pc |
cf9395dc | 165 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |
09ca9f01 MB |
166 | |
167 | %files apidocs | |
168 | %defattr(644,root,root,755) | |
169 | %{_gtkdocdir}/webkitgtk |