]>
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 | |
e0759a39 | 9 | Version: 1.2.7 |
8c431190 | 10 | Release: 10 |
093f5867 PZ |
11 | License: BSD-like |
12 | Group: X11/Libraries | |
618d2705 | 13 | Source0: http://webkitgtk.org/webkit-%{version}.tar.gz |
e0759a39 | 14 | # Source0-md5: 25c7e548b65aeb6d83c0182c32ef0927 |
704191dd | 15 | Patch0: gobject-introspection.patch |
8c431190 | 16 | Patch1: webkit-gtk-1.2.7-libpng15.patch |
618d2705 | 17 | URL: http://webkitgtk.org/ |
957ed3e7 | 18 | BuildRequires: autoconf >= 2.59 |
093f5867 PZ |
19 | BuildRequires: automake |
20 | BuildRequires: bison | |
231faf60 | 21 | BuildRequires: cairo-devel >= 1.6 |
925fc406 | 22 | BuildRequires: cairo-gobject-devel >= 1.6 |
957ed3e7 | 23 | BuildRequires: enchant-devel >= 0.22 |
8cf2b70b MB |
24 | BuildRequires: flex >= 2.5.33 |
25 | BuildRequires: fontconfig-devel >= 2.4.0 | |
231faf60 | 26 | BuildRequires: freetype-devel >= 1:2.1.8 |
5aeb4243 | 27 | BuildRequires: geoclue-devel |
94f95ec8 | 28 | BuildRequires: gettext-devel |
957ed3e7 | 29 | BuildRequires: glib2-devel >= 1:2.22.0 |
46f0db60 | 30 | BuildRequires: glibc-misc |
704191dd | 31 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.9.5} |
fb358f22 | 32 | BuildRequires: gperf |
69b139d9 | 33 | BuildRequires: gstreamer-devel >= 0.10 |
8cf2b70b | 34 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.25 |
bfbcbc59 | 35 | BuildRequires: gtk+2-devel >= 2:2.20.0 |
957ed3e7 | 36 | BuildRequires: gtk-doc >= 1.10 |
5aeb4243 | 37 | BuildRequires: libicu-devel >= 4.2.1 |
093f5867 PZ |
38 | BuildRequires: libjpeg-devel |
39 | BuildRequires: libpng-devel | |
704191dd | 40 | BuildRequires: libsoup-devel >= 2.30.2-4 |
8a5c1de2 | 41 | BuildRequires: libstdc++-devel |
093f5867 | 42 | BuildRequires: libtool >= 2:1.5 |
957ed3e7 | 43 | BuildRequires: libxml2-devel >= 1:2.6.30 |
231faf60 JP |
44 | BuildRequires: libxslt-devel >= 1.1.7 |
45 | BuildRequires: pango-devel >= 1:1.12 | |
093f5867 | 46 | BuildRequires: pkgconfig |
093f5867 | 47 | BuildRequires: sqlite3-devel |
d3f90b4e | 48 | BuildRequires: xorg-lib-libXt-devel |
cf86a824 JB |
49 | Requires: cairo >= 1.6 |
50 | Requires: enchant >= 0.22 | |
51 | Requires: gstreamer-plugins-base >= 0.10.25 | |
fd966165 | 52 | Requires: gtk+2 >= 2:2.20.0 |
8cf2b70b | 53 | Requires: libsoup >= 2.30.0 |
cf86a824 JB |
54 | Requires: libxml2 >= 1:2.6.30 |
55 | Requires: libxslt >= 1.1.7 | |
56 | Requires: pango >= 1:1.12 | |
2bb12873 | 57 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} |
093f5867 PZ |
58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59 | ||
60 | %description | |
61 | webkit is a port of the WebKit embeddable web component to GTK+. | |
62 | ||
63 | %description -l pl.UTF-8 | |
64 | webkit to port osadzalnego komponentu WWW WebKit do GTK+. | |
65 | ||
66 | %package devel | |
8cf2b70b MB |
67 | Summary: Development files for WebKit |
68 | Summary(pl.UTF-8): Pliki programistyczne WebKit | |
093f5867 | 69 | Group: X11/Development/Libraries |
721db7ac | 70 | Requires: %{name} = %{version}-%{release} |
231faf60 JP |
71 | Requires: cairo-devel >= 1.6 |
72 | Requires: enchant-devel >= 0.22 | |
73 | Requires: fontconfig-devel >= 2.4.0 | |
74 | Requires: freetype-devel >= 1:2.1.8 | |
72e32127 | 75 | Requires: geoclue-devel |
957ed3e7 | 76 | Requires: glib2-devel >= 1:2.22.0 |
231faf60 JP |
77 | Requires: gstreamer-devel >= 0.10 |
78 | Requires: gstreamer-plugins-base-devel >= 0.10.25 | |
fd966165 | 79 | Requires: gtk+2-devel >= 2:2.20.0 |
231faf60 JP |
80 | Requires: libicu-devel >= 4.2.1 |
81 | Requires: libjpeg-devel | |
72e32127 | 82 | Requires: libpng-devel |
8cf2b70b | 83 | Requires: libsoup-devel >= 2.30.0 |
8a5c1de2 | 84 | Requires: libstdc++-devel |
231faf60 JP |
85 | Requires: libxml2-devel >= 1:2.6.30 |
86 | Requires: libxslt-devel >= 1.1.7 | |
87 | Requires: pango-devel >= 1:1.12 | |
72e32127 | 88 | Requires: sqlite3-devel |
72e32127 | 89 | Requires: xorg-lib-libXt-devel |
093f5867 PZ |
90 | |
91 | %description devel | |
8cf2b70b | 92 | Development files for WebKit. |
093f5867 PZ |
93 | |
94 | %description devel -l pl.UTF-8 | |
8cf2b70b | 95 | Pliki programistyczne WebKit. |
093f5867 PZ |
96 | |
97 | %prep | |
209fb730 | 98 | %setup -q -n webkit-%{version} |
704191dd | 99 | %patch0 -p1 |
8c431190 | 100 | %patch1 -p0 |
f8294a65 | 101 | |
093f5867 | 102 | %build |
ad571464 | 103 | %{__gtkdocize} |
7166e40b | 104 | %{__libtoolize} |
b1701b51 JB |
105 | %{__aclocal} -I autotools |
106 | %{__autoconf} | |
7166e40b PZ |
107 | %{__autoheader} |
108 | %{__automake} | |
bb1a4556 | 109 | %configure \ |
8cf2b70b | 110 | --disable-silent-rules \ |
5aeb4243 | 111 | --enable-3D-transforms \ |
d4c376cd | 112 | --enable-dom-storage \ |
5aeb4243 | 113 | --enable-geolocation \ |
d4c376cd | 114 | --enable-icon-database \ |
2bb12873 | 115 | --%{!?with_introspection:dis}%{?with_introspection:en}able-introspection \ |
231faf60 JP |
116 | --enable-video \ |
117 | --with-font-backend=freetype | |
ebd32623 | 118 | |
a1864eef | 119 | %{__make} -j1 |
093f5867 PZ |
120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
83c17f84 | 123 | |
7166e40b PZ |
124 | %{__make} install \ |
125 | DESTDIR=$RPM_BUILD_ROOT | |
093f5867 | 126 | |
f4962f2a AF |
127 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwebkit-1.0.la |
128 | ||
9d45f565 PZ |
129 | %find_lang webkit |
130 | ||
093f5867 PZ |
131 | %clean |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %post -p /sbin/ldconfig | |
135 | %postun -p /sbin/ldconfig | |
136 | ||
9d45f565 | 137 | %files -f webkit.lang |
093f5867 | 138 | %defattr(644,root,root,755) |
cf86a824 | 139 | %doc ChangeLog |
0a5e205f | 140 | %attr(755,root,root) %{_bindir}/jsc |
737227e7 | 141 | %attr(755,root,root) %{_libdir}/libwebkit-1.0.so.*.*.* |
1806eaed | 142 | %attr(755,root,root) %ghost %{_libdir}/libwebkit-1.0.so.2 |
2bb12873 | 143 | %if %{with introspection} |
8cf2b70b MB |
144 | %{_libdir}/girepository-1.0/JSCore-1.0.typelib |
145 | %{_libdir}/girepository-1.0/WebKit-1.0.typelib | |
2bb12873 | 146 | %endif |
f6f1db2b | 147 | %dir %{_datadir}/webkit-1.0 |
01619705 | 148 | %{_datadir}/webkit-1.0/images |
9d45f565 | 149 | %{_datadir}/webkit-1.0/resources |
f6f1db2b | 150 | %{_datadir}/webkit-1.0/webinspector |
093f5867 PZ |
151 | |
152 | %files devel | |
153 | %defattr(644,root,root,755) | |
737227e7 | 154 | %attr(755,root,root) %{_libdir}/libwebkit-1.0.so |
2bb12873 | 155 | %if %{with introspection} |
8cf2b70b MB |
156 | %{_datadir}/gir-1.0/JSCore-1.0.gir |
157 | %{_datadir}/gir-1.0/WebKit-1.0.gir | |
2bb12873 | 158 | %endif |
737227e7 | 159 | %{_includedir}/webkit-1.0 |
7166e40b | 160 | %{_pkgconfigdir}/webkit-1.0.pc |