]>
Commit | Line | Data |
---|---|---|
91c1decc | 1 | # TODO: review configure options: |
e9e9ae8f | 2 | # - notifications, gamepad, dom-mutation-observers, input-type-color, media-source, media-stream, mhtml, web-audio, web-timing, touch-icon-loading, register-protocol-handler, css-filters, css-compositing |
91c1decc | 3 | # - directory-upload |
e9e9ae8f | 4 | # - APIs: page-visibility-api, indexed-database, input-speech, scripted-speech, image-resizer, quota, animation-api |
89035ba9 | 5 | # - HTML5: microdata, datagrid, data-transfer-items, video-track, file-system, style-scoped |
f8e56294 AF |
6 | # |
7 | # Conditional build: | |
8 | %bcond_without introspection # disable introspection | |
9 | # | |
97c9d259 JB |
10 | Summary: Port of WebKit embeddable web component to GTK+ 3 |
11 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
f8e56294 | 12 | Name: gtk-webkit3 |
dd29e175 JB |
13 | Version: 1.10.1 |
14 | Release: 1 | |
f8e56294 AF |
15 | License: BSD-like |
16 | Group: X11/Libraries | |
9130be70 | 17 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
dd29e175 | 18 | # Source0-md5: 28c930cda012391453c476cdacfaca65 |
f8e56294 | 19 | URL: http://webkitgtk.org/ |
09ca9f01 | 20 | BuildRequires: OpenGL-GLU-devel |
9130be70 MB |
21 | BuildRequires: at-spi2-core-devel >= 2.2.1 |
22 | BuildRequires: autoconf >= 2.60 | |
f8e56294 | 23 | BuildRequires: automake |
e3bd5be3 | 24 | BuildRequires: bison >= 1.875 |
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 | 35 | BuildRequires: gperf |
9130be70 MB |
36 | BuildRequires: gstreamer-devel >= 1.0.0 |
37 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.0 | |
9514bd6e | 38 | BuildRequires: gtk+3-devel >= 3.4.0 |
f8e56294 AF |
39 | BuildRequires: gtk-doc >= 1.10 |
40 | BuildRequires: libicu-devel >= 4.2.1 | |
41 | BuildRequires: libjpeg-devel | |
42 | BuildRequires: libpng-devel | |
9130be70 | 43 | BuildRequires: libsoup-devel >= 2.40.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 |
09aa776b | 52 | BuildRequires: tar >= 1:1.22 |
e9e9ae8f | 53 | BuildRequires: xorg-lib-libXcomposite-devel |
cf9395dc | 54 | BuildRequires: xorg-lib-libXrender-devel |
09ca9f01 | 55 | BuildRequires: xorg-lib-libXt-devel |
09aa776b | 56 | BuildRequires: xz |
09ca9f01 | 57 | BuildRequires: zlib-devel |
cf9395dc | 58 | Requires: cairo >= 1.10 |
f8e56294 | 59 | Requires: enchant >= 0.22 |
09ca9f01 | 60 | Requires: glib2 >= 1:2.32.0 |
9130be70 MB |
61 | Requires: gstreamer >= 1.0.0 |
62 | Requires: gstreamer-plugins-base >= 1.0.0 | |
9514bd6e | 63 | Requires: gtk+3 >= 3.4.0 |
9130be70 | 64 | Requires: libsoup >= 2.40.0 |
f8e56294 AF |
65 | Requires: libxml2 >= 1:2.6.30 |
66 | Requires: libxslt >= 1.1.7 | |
09ca9f01 | 67 | Requires: pango >= 1:1.21.0 |
f8e56294 AF |
68 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
70 | ||
71 | %description | |
97c9d259 | 72 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3. |
f8e56294 AF |
73 | |
74 | %description -l pl.UTF-8 | |
97c9d259 | 75 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
76 | |
77 | %package devel | |
97c9d259 JB |
78 | Summary: Development files for WebKit for GTK+ 3 |
79 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
80 | Group: X11/Development/Libraries |
81 | Requires: %{name} = %{version}-%{release} | |
09ca9f01 | 82 | Requires: glib2-devel >= 1:2.32.0 |
9514bd6e | 83 | Requires: gtk+3-devel >= 3.4.0 |
9130be70 | 84 | Requires: libsoup-devel >= 2.40.0 |
f8e56294 AF |
85 | |
86 | %description devel | |
97c9d259 | 87 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
88 | |
89 | %description devel -l pl.UTF-8 | |
97c9d259 | 90 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 | 91 | |
09ca9f01 MB |
92 | %package apidocs |
93 | Summary: WebKit API documentation | |
94 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
95 | Group: Documentation | |
96 | Requires: gtk-doc-common | |
97 | ||
98 | %description apidocs | |
99 | WebKit API documentation. | |
100 | ||
101 | %description apidocs -l pl.UTF-8 | |
102 | Dokumentacja API WebKita. | |
103 | ||
f8e56294 | 104 | %prep |
9130be70 | 105 | %setup -q -n webkitgtk-%{version} |
97c9d259 | 106 | |
f8e56294 AF |
107 | %build |
108 | %{__gtkdocize} | |
f8e56294 | 109 | %{__libtoolize} |
7f68fdfd | 110 | %{__aclocal} -I Source/autotools |
f8e56294 AF |
111 | %{__autoheader} |
112 | %{__automake} | |
113 | %{__autoconf} | |
30934c41 MB |
114 | # replace -g2 with -g1 to not run into 4 GB ar format limit |
115 | # https://bugs.webkit.org/show_bug.cgi?id=91154 | |
116 | # http://sourceware.org/bugzilla/show_bug.cgi?id=14625 | |
03ddff35 MB |
117 | export CFLAGS="%(echo %{rpmcflags} | sed 's/ -g2/ -g1/g')" |
118 | export CXXFLAGS="%(echo %{rpmcxxflags} | sed 's/ -g2/ -g1/g')" | |
f8e56294 | 119 | %configure \ |
f8e56294 | 120 | --disable-silent-rules \ |
c66a3aee | 121 | %{__enable_disable introspection} \ |
9130be70 | 122 | --with-gstreamer=1.0 \ |
c66a3aee | 123 | --with-gtk=3.0 \ |
09ca9f01 MB |
124 | --enable-geolocation \ |
125 | --enable-gtk-doc \ | |
126 | --with-html-dir=%{_gtkdocdir} | |
f8e56294 | 127 | |
09958ad8 | 128 | %{__make} -j1 |
f8e56294 AF |
129 | |
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
cf9395dc | 136 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
959213a2 | 137 | |
9130be70 | 138 | %find_lang webkitgtk-3.0 |
f8e56294 AF |
139 | |
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
09aa776b JB |
143 | %post -p /sbin/ldconfig |
144 | %postun -p /sbin/ldconfig | |
f8e56294 | 145 | |
9130be70 | 146 | %files -f webkitgtk-3.0.lang |
f8e56294 | 147 | %defattr(644,root,root,755) |
97c9d259 | 148 | %doc ChangeLog NEWS |
f8e56294 | 149 | %attr(755,root,root) %{_bindir}/jsc-3 |
9130be70 MB |
150 | %attr(755,root,root) %{_libexecdir}/WebKitPluginProcess |
151 | %attr(755,root,root) %{_libexecdir}/WebKitWebProcess | |
f8e56294 AF |
152 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* |
153 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
9130be70 MB |
154 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so.*.*.* |
155 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-3.0.so.18 | |
cf9395dc AF |
156 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
157 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 AF |
158 | %if %{with introspection} |
159 | %{_libdir}/girepository-1.0/JSCore-3.0.typelib | |
160 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
161 | %endif | |
c53434ba | 162 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 163 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 164 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 | 165 | %{_datadir}/webkitgtk-3.0/webinspector |
f8e56294 AF |
166 | |
167 | %files devel | |
168 | %defattr(644,root,root,755) | |
169 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
9130be70 | 170 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so |
cf9395dc | 171 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 AF |
172 | %if %{with introspection} |
173 | %{_datadir}/gir-1.0/JSCore-3.0.gir | |
174 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
175 | %endif | |
09ca9f01 | 176 | %{_includedir}/webkitgtk-3.0 |
f8e56294 | 177 | %{_pkgconfigdir}/webkitgtk-3.0.pc |
9130be70 | 178 | %{_pkgconfigdir}/webkit2gtk-3.0.pc |
cf9395dc | 179 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |
09ca9f01 MB |
180 | |
181 | %files apidocs | |
182 | %defattr(644,root,root,755) | |
183 | %{_gtkdocdir}/webkitgtk | |
9130be70 | 184 | %{_gtkdocdir}/webkit2gtk |