]>
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 |
09ca9f01 | 14 | Version: 1.8.0 |
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 |
09ca9f01 | 19 | # Source0-md5: 52b2feb0fae01e68432b547bd85e8d74 |
f8e56294 | 20 | URL: http://webkitgtk.org/ |
09ca9f01 | 21 | BuildRequires: OpenGL-GLU-devel |
f8e56294 AF |
22 | BuildRequires: autoconf >= 2.59 |
23 | BuildRequires: automake | |
24 | BuildRequires: bison | |
cf9395dc | 25 | BuildRequires: cairo-devel >= 1.10 |
f8e56294 AF |
26 | BuildRequires: enchant-devel >= 0.22 |
27 | BuildRequires: flex >= 2.5.33 | |
28 | BuildRequires: fontconfig-devel >= 2.4.0 | |
29 | BuildRequires: freetype-devel >= 1:2.1.8 | |
30 | BuildRequires: geoclue-devel | |
31 | BuildRequires: gettext-devel | |
09ca9f01 | 32 | BuildRequires: glib2-devel >= 1:2.32.0 |
f8e56294 | 33 | BuildRequires: glibc-misc |
c66a3aee | 34 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.10.0} |
f8e56294 AF |
35 | BuildRequires: gperf |
36 | BuildRequires: gstreamer-devel >= 0.10 | |
cf9395dc | 37 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.30 |
c66a3aee | 38 | BuildRequires: gtk+3-devel >= 3.0.0 |
f8e56294 AF |
39 | BuildRequires: gtk-doc >= 1.10 |
40 | BuildRequires: libicu-devel >= 4.2.1 | |
41 | BuildRequires: libjpeg-devel | |
42 | BuildRequires: libpng-devel | |
09ca9f01 | 43 | BuildRequires: libsoup-devel >= 2.38.0 |
f8e56294 AF |
44 | BuildRequires: libstdc++-devel |
45 | BuildRequires: libtool >= 2:1.5 | |
46 | BuildRequires: libxml2-devel >= 1:2.6.30 | |
47 | BuildRequires: libxslt-devel >= 1.1.7 | |
09ca9f01 | 48 | BuildRequires: pango-devel >= 1:1.21.0 |
f8e56294 | 49 | BuildRequires: pkgconfig |
c66a3aee | 50 | BuildRequires: rpmbuild(macros) >= 1.592 |
97c9d259 | 51 | BuildRequires: sqlite3-devel >= 3.0 |
cf9395dc | 52 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 MB |
53 | BuildRequires: xorg-lib-libXt-devel |
54 | BuildRequires: zlib-devel | |
cf9395dc | 55 | Requires: cairo >= 1.10 |
f8e56294 | 56 | Requires: enchant >= 0.22 |
09ca9f01 | 57 | Requires: glib2 >= 1:2.32.0 |
cf9395dc | 58 | Requires: gstreamer-plugins-base >= 0.10.30 |
c66a3aee | 59 | Requires: gtk+3 >= 3.0.0 |
09ca9f01 | 60 | Requires: libsoup >= 2.38.0 |
f8e56294 AF |
61 | Requires: libxml2 >= 1:2.6.30 |
62 | Requires: libxslt >= 1.1.7 | |
09ca9f01 | 63 | Requires: pango >= 1:1.21.0 |
f8e56294 AF |
64 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
65 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
66 | ||
67 | %description | |
97c9d259 | 68 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3. |
f8e56294 AF |
69 | |
70 | %description -l pl.UTF-8 | |
97c9d259 | 71 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
72 | |
73 | %package devel | |
97c9d259 JB |
74 | Summary: Development files for WebKit for GTK+ 3 |
75 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
76 | Group: X11/Development/Libraries |
77 | Requires: %{name} = %{version}-%{release} | |
09ca9f01 | 78 | Requires: glib2-devel >= 1:2.32.0 |
c66a3aee | 79 | Requires: gtk+3-devel >= 3.0.0 |
09ca9f01 | 80 | Requires: libsoup-devel >= 2.38.0 |
f8e56294 AF |
81 | |
82 | %description devel | |
97c9d259 | 83 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
84 | |
85 | %description devel -l pl.UTF-8 | |
97c9d259 | 86 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 87 | |
09ca9f01 MB |
88 | %package apidocs |
89 | Summary: WebKit API documentation | |
90 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
91 | Group: Documentation | |
92 | Requires: gtk-doc-common | |
93 | ||
94 | %description apidocs | |
95 | WebKit API documentation. | |
96 | ||
97 | %description apidocs -l pl.UTF-8 | |
98 | Dokumentacja API WebKita. | |
99 | ||
f8e56294 AF |
100 | %prep |
101 | %setup -q -n webkit-%{version} | |
97c9d259 | 102 | |
f8e56294 AF |
103 | %build |
104 | %{__gtkdocize} | |
f8e56294 | 105 | %{__libtoolize} |
7f68fdfd | 106 | %{__aclocal} -I Source/autotools |
f8e56294 AF |
107 | %{__autoheader} |
108 | %{__automake} | |
109 | %{__autoconf} | |
110 | %configure \ | |
f8e56294 | 111 | --disable-silent-rules \ |
c66a3aee MB |
112 | %{__enable_disable introspection} \ |
113 | --with-gtk=3.0 \ | |
09ca9f01 MB |
114 | --enable-geolocation \ |
115 | --enable-gtk-doc \ | |
116 | --with-html-dir=%{_gtkdocdir} | |
f8e56294 AF |
117 | |
118 | %{__make} | |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %{__make} install \ | |
124 | DESTDIR=$RPM_BUILD_ROOT | |
125 | ||
cf9395dc | 126 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
959213a2 | 127 | |
5a54ae22 | 128 | %find_lang webkit-3.0 |
f8e56294 AF |
129 | |
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
09ca9f01 MB |
133 | %post -p /sbin/ldconfig |
134 | %postun -p /sbin/ldconfig | |
f8e56294 AF |
135 | |
136 | %files -f webkit-3.0.lang | |
137 | %defattr(644,root,root,755) | |
97c9d259 | 138 | %doc ChangeLog NEWS |
f8e56294 AF |
139 | %attr(755,root,root) %{_bindir}/jsc-3 |
140 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* | |
141 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
cf9395dc AF |
142 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
143 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 AF |
144 | %if %{with introspection} |
145 | %{_libdir}/girepository-1.0/JSCore-3.0.typelib | |
146 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
147 | %endif | |
c53434ba | 148 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 149 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 150 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 | 151 | %{_datadir}/webkitgtk-3.0/webinspector |
f8e56294 AF |
152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
155 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
cf9395dc | 156 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 AF |
157 | %if %{with introspection} |
158 | %{_datadir}/gir-1.0/JSCore-3.0.gir | |
159 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
160 | %endif | |
09ca9f01 | 161 | %{_includedir}/webkitgtk-3.0 |
f8e56294 | 162 | %{_pkgconfigdir}/webkitgtk-3.0.pc |
cf9395dc | 163 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |
09ca9f01 MB |
164 | |
165 | %files apidocs | |
166 | %defattr(644,root,root,755) | |
167 | %{_gtkdocdir}/webkitgtk |