]>
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 |
722df97f | 14 | Version: 1.4.2 |
250fd109 | 15 | Release: 1 |
f8e56294 AF |
16 | License: BSD-like |
17 | Group: X11/Libraries | |
18 | Source0: http://webkitgtk.org/webkit-%{version}.tar.gz | |
722df97f | 19 | # Source0-md5: 361f8420e93d12101d650758fec09fa0 |
f8e56294 AF |
20 | URL: http://webkitgtk.org/ |
21 | BuildRequires: autoconf >= 2.59 | |
22 | BuildRequires: automake | |
23 | BuildRequires: bison | |
24 | BuildRequires: cairo-devel >= 1.6 | |
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 | |
36 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.25 | |
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 AF |
51 | BuildRequires: xorg-lib-libXft-devel >= 2.0.0 |
52 | BuildRequires: xorg-lib-libXt-devel | |
c66a3aee | 53 | Requires(post,postun): glib2 >= 1:2.26.0 |
f8e56294 AF |
54 | Requires: cairo >= 1.6 |
55 | Requires: enchant >= 0.22 | |
56 | Requires: gstreamer-plugins-base >= 0.10.25 | |
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 | |
d3159f4a | 89 | mv Source/WebKit/gtk/po/{gr,el}.po |
f8e56294 AF |
90 | |
91 | %build | |
92 | %{__gtkdocize} | |
f8e56294 | 93 | %{__libtoolize} |
7f68fdfd | 94 | %{__aclocal} -I Source/autotools |
f8e56294 AF |
95 | %{__autoheader} |
96 | %{__automake} | |
97 | %{__autoconf} | |
98 | %configure \ | |
f8e56294 | 99 | --disable-silent-rules \ |
c66a3aee MB |
100 | %{__enable_disable introspection} \ |
101 | --with-gtk=3.0 \ | |
bb409ad4 | 102 | --enable-3d-transforms \ |
91c1decc | 103 | --enable-geolocation |
f8e56294 AF |
104 | |
105 | %{__make} | |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %{__make} install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
959213a2 AF |
113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwebkitgtk-3.0.la |
114 | ||
5a54ae22 | 115 | %find_lang webkit-3.0 |
f8e56294 AF |
116 | |
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
c66a3aee MB |
120 | %post |
121 | /sbin/ldconfig | |
122 | %glib_compile_schemas | |
123 | ||
124 | %postun | |
125 | /sbin/ldconfig | |
126 | %glib_compile_schemas | |
f8e56294 AF |
127 | |
128 | %files -f webkit-3.0.lang | |
129 | %defattr(644,root,root,755) | |
97c9d259 | 130 | %doc ChangeLog NEWS |
f8e56294 AF |
131 | %attr(755,root,root) %{_bindir}/jsc-3 |
132 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* | |
133 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
134 | %if %{with introspection} | |
135 | %{_libdir}/girepository-1.0/JSCore-3.0.typelib | |
136 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
137 | %endif | |
138 | %dir %{_datadir}/webkit-3.0 | |
c53434ba PZ |
139 | %{_datadir}/webkit-3.0/resources |
140 | %dir %{_datadir}/webkitgtk-3.0 | |
f8e56294 AF |
141 | %{_datadir}/webkitgtk-3.0/images |
142 | %{_datadir}/webkitgtk-3.0/webinspector | |
c66a3aee | 143 | %{_datadir}/glib-2.0/schemas/org.webkitgtk-3.0.gschema.xml |
f8e56294 AF |
144 | |
145 | %files devel | |
146 | %defattr(644,root,root,755) | |
147 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
f8e56294 AF |
148 | %if %{with introspection} |
149 | %{_datadir}/gir-1.0/JSCore-3.0.gir | |
150 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
151 | %endif | |
152 | %{_includedir}/webkit-3.0 | |
153 | %{_pkgconfigdir}/webkitgtk-3.0.pc |