]>
Commit | Line | Data |
---|---|---|
83c17f84 | 1 | # TODO: optflags |
2bb12873 ER |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without introspection # disable introspection | |
5 | ||
093f5867 PZ |
6 | Summary: Port of WebKit embeddable web component to GTK+ |
7 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ | |
8 | Name: gtk-webkit | |
09247b08 | 9 | Version: 1.2.4 |
33073d86 | 10 | Release: 1 |
093f5867 PZ |
11 | License: BSD-like |
12 | Group: X11/Libraries | |
618d2705 | 13 | Source0: http://webkitgtk.org/webkit-%{version}.tar.gz |
09247b08 | 14 | # Source0-md5: dc3a92dd0e8c2e70263fbfdf809b51a5 |
618d2705 | 15 | URL: http://webkitgtk.org/ |
957ed3e7 | 16 | BuildRequires: autoconf >= 2.59 |
093f5867 PZ |
17 | BuildRequires: automake |
18 | BuildRequires: bison | |
957ed3e7 | 19 | BuildRequires: enchant-devel >= 0.22 |
8cf2b70b MB |
20 | BuildRequires: flex >= 2.5.33 |
21 | BuildRequires: fontconfig-devel >= 2.4.0 | |
5aeb4243 | 22 | BuildRequires: geoclue-devel |
94f95ec8 | 23 | BuildRequires: gettext-devel |
2bb12873 | 24 | %{?with_introspection:BuildRequires: gir-repository-devel} |
957ed3e7 | 25 | BuildRequires: glib2-devel >= 1:2.22.0 |
46f0db60 | 26 | BuildRequires: glibc-misc |
2bb12873 | 27 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.6.2} |
fb358f22 | 28 | BuildRequires: gperf |
69b139d9 | 29 | BuildRequires: gstreamer-devel >= 0.10 |
8cf2b70b | 30 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.25 |
bfbcbc59 | 31 | BuildRequires: gtk+2-devel >= 2:2.20.0 |
957ed3e7 | 32 | BuildRequires: gtk-doc >= 1.10 |
5aeb4243 | 33 | BuildRequires: libicu-devel >= 4.2.1 |
093f5867 PZ |
34 | BuildRequires: libjpeg-devel |
35 | BuildRequires: libpng-devel | |
8cf2b70b | 36 | BuildRequires: libsoup-devel >= 2.30.0 |
8a5c1de2 | 37 | BuildRequires: libstdc++-devel |
093f5867 | 38 | BuildRequires: libtool >= 2:1.5 |
957ed3e7 | 39 | BuildRequires: libxml2-devel >= 1:2.6.30 |
093f5867 PZ |
40 | BuildRequires: libxslt-devel |
41 | BuildRequires: pkgconfig | |
093f5867 PZ |
42 | BuildRequires: sqlite3-devel |
43 | BuildRequires: xorg-lib-libXft-devel >= 2.0.0 | |
d3f90b4e | 44 | BuildRequires: xorg-lib-libXt-devel |
fd966165 | 45 | Requires: gtk+2 >= 2:2.20.0 |
8cf2b70b | 46 | Requires: libsoup >= 2.30.0 |
2bb12873 | 47 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
093f5867 PZ |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
51 | webkit is a port of the WebKit embeddable web component to GTK+. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | webkit to port osadzalnego komponentu WWW WebKit do GTK+. | |
55 | ||
56 | %package devel | |
8cf2b70b MB |
57 | Summary: Development files for WebKit |
58 | Summary(pl.UTF-8): Pliki programistyczne WebKit | |
093f5867 | 59 | Group: X11/Development/Libraries |
721db7ac | 60 | Requires: %{name} = %{version}-%{release} |
093f5867 | 61 | Requires: fontconfig-devel >= 1.0.0 |
957ed3e7 | 62 | Requires: glib2-devel >= 1:2.22.0 |
fd966165 | 63 | Requires: gtk+2-devel >= 2:2.20.0 |
3a48f35a | 64 | Requires: libicu-devel |
8cf2b70b | 65 | Requires: libsoup-devel >= 2.30.0 |
8a5c1de2 | 66 | Requires: libstdc++-devel |
093f5867 PZ |
67 | Requires: xorg-lib-libXft-devel >= 2.0.0 |
68 | ||
69 | %description devel | |
8cf2b70b | 70 | Development files for WebKit. |
093f5867 PZ |
71 | |
72 | %description devel -l pl.UTF-8 | |
8cf2b70b | 73 | Pliki programistyczne WebKit. |
093f5867 PZ |
74 | |
75 | %prep | |
209fb730 | 76 | %setup -q -n webkit-%{version} |
093f5867 | 77 | |
f8294a65 ER |
78 | # http://trac.webkit.org/browser/trunk/WebKit/gtk/JSCore.gir.in |
79 | %{__sed} -i -e 's,repository version="1.0",repository version="1.1",' WebKit/gtk/JSCore-1.0.gir | |
80 | ||
093f5867 | 81 | %build |
ad571464 | 82 | %{__gtkdocize} |
209fb730 | 83 | %{__aclocal} -I autotools |
7166e40b PZ |
84 | %{__libtoolize} |
85 | %{__autoheader} | |
86 | %{__automake} | |
87 | %{__autoconf} | |
bb1a4556 | 88 | %configure \ |
8cf2b70b | 89 | --disable-silent-rules \ |
5aeb4243 | 90 | --enable-3D-transforms \ |
d4c376cd | 91 | --enable-dom-storage \ |
5aeb4243 | 92 | --enable-geolocation \ |
d4c376cd | 93 | --enable-icon-database \ |
2bb12873 | 94 | --%{!?with_introspection:dis}%{?with_introspection:en}able-introspection \ |
209fb730 | 95 | --enable-video |
ebd32623 | 96 | |
7166e40b | 97 | %{__make} |
093f5867 PZ |
98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
83c17f84 | 101 | |
7166e40b PZ |
102 | %{__make} install \ |
103 | DESTDIR=$RPM_BUILD_ROOT | |
093f5867 | 104 | |
9d45f565 PZ |
105 | %find_lang webkit |
106 | ||
093f5867 PZ |
107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
9d45f565 | 113 | %files -f webkit.lang |
093f5867 | 114 | %defattr(644,root,root,755) |
0a5e205f | 115 | %attr(755,root,root) %{_bindir}/jsc |
737227e7 | 116 | %attr(755,root,root) %{_libdir}/libwebkit-1.0.so.*.*.* |
1806eaed | 117 | %attr(755,root,root) %ghost %{_libdir}/libwebkit-1.0.so.2 |
2bb12873 | 118 | %if %{with introspection} |
8cf2b70b MB |
119 | %{_libdir}/girepository-1.0/JSCore-1.0.typelib |
120 | %{_libdir}/girepository-1.0/WebKit-1.0.typelib | |
2bb12873 | 121 | %endif |
f6f1db2b | 122 | %dir %{_datadir}/webkit-1.0 |
01619705 | 123 | %{_datadir}/webkit-1.0/images |
9d45f565 | 124 | %{_datadir}/webkit-1.0/resources |
f6f1db2b | 125 | %{_datadir}/webkit-1.0/webinspector |
093f5867 PZ |
126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
737227e7 PZ |
129 | %attr(755,root,root) %{_libdir}/libwebkit-1.0.so |
130 | %{_libdir}/libwebkit-1.0.la | |
2bb12873 | 131 | %if %{with introspection} |
8cf2b70b MB |
132 | %{_datadir}/gir-1.0/JSCore-1.0.gir |
133 | %{_datadir}/gir-1.0/WebKit-1.0.gir | |
2bb12873 | 134 | %endif |
737227e7 | 135 | %{_includedir}/webkit-1.0 |
7166e40b | 136 | %{_pkgconfigdir}/webkit-1.0.pc |