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