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