]>
Commit | Line | Data |
---|---|---|
91c1decc JB |
1 | # TODO: review configure options: |
2 | # - webgl, xhtmlmp, mathml, wml, wcss, web-audio, web-timing | |
3 | # - client-based-geolocation | |
4 | # - directory-upload | |
5 | # - APIs: indexed-database, input-speech, image-resizer | |
6 | # - HTML5: notifications, datagrid, data-transfer-items, file-system | |
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 |
20ea66e3 AF |
14 | Version: 1.6.3 |
15 | Release: 1 | |
f8e56294 AF |
16 | License: BSD-like |
17 | Group: X11/Libraries | |
20ea66e3 AF |
18 | Source0: http://webkitgtk.org/webkit-%{version}.tar.xz |
19 | # Source0-md5: c476d9335419df061510d31e21175df1 | |
f8e56294 AF |
20 | URL: http://webkitgtk.org/ |
21 | BuildRequires: autoconf >= 2.59 | |
22 | BuildRequires: automake | |
23 | BuildRequires: bison | |
cf9395dc | 24 | BuildRequires: cairo-devel >= 1.10 |
f8e56294 AF |
25 | BuildRequires: enchant-devel >= 0.22 |
26 | BuildRequires: flex >= 2.5.33 | |
27 | BuildRequires: fontconfig-devel >= 2.4.0 | |
28 | BuildRequires: freetype-devel >= 1:2.1.8 | |
29 | BuildRequires: geoclue-devel | |
30 | BuildRequires: gettext-devel | |
c66a3aee | 31 | BuildRequires: glib2-devel >= 1:2.28.0 |
f8e56294 | 32 | BuildRequires: glibc-misc |
c66a3aee | 33 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.10.0} |
f8e56294 AF |
34 | BuildRequires: gperf |
35 | BuildRequires: gstreamer-devel >= 0.10 | |
cf9395dc | 36 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.30 |
c66a3aee | 37 | BuildRequires: gtk+3-devel >= 3.0.0 |
f8e56294 AF |
38 | BuildRequires: gtk-doc >= 1.10 |
39 | BuildRequires: libicu-devel >= 4.2.1 | |
40 | BuildRequires: libjpeg-devel | |
41 | BuildRequires: libpng-devel | |
1e21f0c2 | 42 | BuildRequires: libsoup-devel >= 2.34.0 |
f8e56294 AF |
43 | BuildRequires: libstdc++-devel |
44 | BuildRequires: libtool >= 2:1.5 | |
45 | BuildRequires: libxml2-devel >= 1:2.6.30 | |
46 | BuildRequires: libxslt-devel >= 1.1.7 | |
47 | BuildRequires: pango-devel >= 1:1.12 | |
48 | BuildRequires: pkgconfig | |
c66a3aee | 49 | BuildRequires: rpmbuild(macros) >= 1.592 |
97c9d259 | 50 | BuildRequires: sqlite3-devel >= 3.0 |
f8e56294 | 51 | BuildRequires: xorg-lib-libXt-devel |
cf9395dc | 52 | BuildRequires: xorg-lib-libXrender-devel |
c66a3aee | 53 | Requires(post,postun): glib2 >= 1:2.26.0 |
cf9395dc | 54 | Requires: cairo >= 1.10 |
f8e56294 | 55 | Requires: enchant >= 0.22 |
cf9395dc | 56 | Requires: gstreamer-plugins-base >= 0.10.30 |
c66a3aee | 57 | Requires: gtk+3 >= 3.0.0 |
1e21f0c2 | 58 | Requires: libsoup >= 2.34.0 |
f8e56294 AF |
59 | Requires: libxml2 >= 1:2.6.30 |
60 | Requires: libxslt >= 1.1.7 | |
61 | Requires: pango >= 1:1.12 | |
62 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} | |
63 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
64 | ||
65 | %description | |
97c9d259 | 66 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3. |
f8e56294 AF |
67 | |
68 | %description -l pl.UTF-8 | |
97c9d259 | 69 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. |
f8e56294 AF |
70 | |
71 | %package devel | |
97c9d259 JB |
72 | Summary: Development files for WebKit for GTK+ 3 |
73 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
f8e56294 AF |
74 | Group: X11/Development/Libraries |
75 | Requires: %{name} = %{version}-%{release} | |
c66a3aee MB |
76 | Requires: glib2-devel >= 1:2.28.0 |
77 | Requires: gtk+3-devel >= 3.0.0 | |
1e21f0c2 | 78 | Requires: libsoup-devel >= 2.34.0 |
f8e56294 AF |
79 | |
80 | %description devel | |
97c9d259 | 81 | Development files for WebKit for GTK+ 3. |
f8e56294 AF |
82 | |
83 | %description devel -l pl.UTF-8 | |
97c9d259 | 84 | Pliki programistyczne komponentu WebKit dla GTK+ 3. |
f8e56294 AF |
85 | |
86 | %prep | |
87 | %setup -q -n webkit-%{version} | |
97c9d259 | 88 | |
f8e56294 AF |
89 | %build |
90 | %{__gtkdocize} | |
f8e56294 | 91 | %{__libtoolize} |
7f68fdfd | 92 | %{__aclocal} -I Source/autotools |
f8e56294 AF |
93 | %{__autoheader} |
94 | %{__automake} | |
95 | %{__autoconf} | |
96 | %configure \ | |
f8e56294 | 97 | --disable-silent-rules \ |
c66a3aee MB |
98 | %{__enable_disable introspection} \ |
99 | --with-gtk=3.0 \ | |
91c1decc | 100 | --enable-geolocation |
f8e56294 AF |
101 | |
102 | %{__make} | |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
cf9395dc | 110 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
959213a2 | 111 | |
5a54ae22 | 112 | %find_lang webkit-3.0 |
f8e56294 AF |
113 | |
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
c66a3aee MB |
117 | %post |
118 | /sbin/ldconfig | |
119 | %glib_compile_schemas | |
120 | ||
121 | %postun | |
122 | /sbin/ldconfig | |
123 | %glib_compile_schemas | |
f8e56294 AF |
124 | |
125 | %files -f webkit-3.0.lang | |
126 | %defattr(644,root,root,755) | |
97c9d259 | 127 | %doc ChangeLog NEWS |
f8e56294 AF |
128 | %attr(755,root,root) %{_bindir}/jsc-3 |
129 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* | |
130 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
cf9395dc AF |
131 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* |
132 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
f8e56294 AF |
133 | %if %{with introspection} |
134 | %{_libdir}/girepository-1.0/JSCore-3.0.typelib | |
135 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
136 | %endif | |
c53434ba | 137 | %dir %{_datadir}/webkitgtk-3.0 |
f8e56294 | 138 | %{_datadir}/webkitgtk-3.0/images |
cf9395dc | 139 | %{_datadir}/webkitgtk-3.0/resources |
f8e56294 | 140 | %{_datadir}/webkitgtk-3.0/webinspector |
c66a3aee | 141 | %{_datadir}/glib-2.0/schemas/org.webkitgtk-3.0.gschema.xml |
f8e56294 AF |
142 | |
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
145 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
cf9395dc | 146 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so |
f8e56294 AF |
147 | %if %{with introspection} |
148 | %{_datadir}/gir-1.0/JSCore-3.0.gir | |
149 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
150 | %endif | |
151 | %{_includedir}/webkit-3.0 | |
152 | %{_pkgconfigdir}/webkitgtk-3.0.pc | |
cf9395dc | 153 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc |