1 | %define add_to_doc_files() \ |
---|
2 | mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}; \ |
---|
3 | cp -p %1 %{buildroot}%{_docdir}/%{name}-%{version}/$(echo '%1' | sed -e 's!/!.!g') \ |
---|
4 | echo %%{_docdir}/%{name}-%{version}/$(echo '%1' | sed -e 's!/!.!g') >> docfiles.list |
---|
5 | |
---|
6 | #define svn_revision 43436 |
---|
7 | |
---|
8 | # --with coverage: Enables compile-time checking of code coverage. (default: no) |
---|
9 | %bcond_with coverage |
---|
10 | # --with jit: Enable JIT ("just-in-time") JavaScript compiling support. |
---|
11 | #%bcond_with jit |
---|
12 | # --with pango : use pango for font rendering instead of freetype2 (default: use freetype2) |
---|
13 | %bcond_with pango |
---|
14 | # --with wml: Build support for WML |
---|
15 | %bcond_with wml |
---|
16 | |
---|
17 | Name: WebKit |
---|
18 | Version: 2.2.1 |
---|
19 | Release: 1%{?_dist_release} |
---|
20 | Summary: Web content engine library |
---|
21 | Summary(ja): ウェブコンテンツエンジンライブラリ |
---|
22 | |
---|
23 | Group: Development/Libraries |
---|
24 | License: LGPLv2+ and BSD |
---|
25 | URL: http://webkitgtk.org/ |
---|
26 | |
---|
27 | Vendor: Project Vine |
---|
28 | Distribution: Vine Linux |
---|
29 | Packager: yasumichi |
---|
30 | |
---|
31 | Source0: http://www.webkitgtk.org/webkitgtk-%{version}.tar.xz |
---|
32 | |
---|
33 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
34 | |
---|
35 | BuildRequires: bison |
---|
36 | BuildRequires: flex |
---|
37 | BuildRequires: gperf |
---|
38 | BuildRequires: ruby |
---|
39 | BuildRequires: gtk2-devel |
---|
40 | BuildRequires: harfbuzz-icu-devel |
---|
41 | BuildRequires: libjpeg-turbo-devel |
---|
42 | BuildRequires: libtool |
---|
43 | BuildRequires: libxslt-devel |
---|
44 | BuildRequires: libXt-devel |
---|
45 | BuildRequires: pcre-devel |
---|
46 | BuildRequires: sqlite3-devel |
---|
47 | BuildRequires: geoclue-devel |
---|
48 | BuildRequires: gcr-devel |
---|
49 | BuildRequires: gstreamer1-devel |
---|
50 | BuildRequires: gstreamer1-plugins-base-devel |
---|
51 | BuildRequires: enchant-devel |
---|
52 | BuildRequires: libwebp-devel |
---|
53 | BuildRequires: libsecret-devel |
---|
54 | BuildRequires: gobject-introspection-devel |
---|
55 | BuildRequires: gsettings-desktop-schemas |
---|
56 | BuildRequires: gtk-doc |
---|
57 | |
---|
58 | %if %{with pango} |
---|
59 | BuildRequires: pango-devel |
---|
60 | %else |
---|
61 | BuildRequires: cairo-devel |
---|
62 | BuildRequires: fontconfig-devel |
---|
63 | BuildRequires: freetype2-devel |
---|
64 | %endif |
---|
65 | |
---|
66 | BuildRequires: libsoup-devel >= 2.28.2 |
---|
67 | |
---|
68 | |
---|
69 | %description |
---|
70 | WebKit is an open source web browser engine. |
---|
71 | |
---|
72 | %package gtk |
---|
73 | Summary: GTK+ port of WebKit |
---|
74 | Summary(ja): WebKit の GTK+ ポート |
---|
75 | Group: Development/Libraries |
---|
76 | |
---|
77 | %description gtk |
---|
78 | %{name} is an open-source Web content engine library. This package contains |
---|
79 | the shared libraries for the WebKit GTK+ port as well as the sample |
---|
80 | GtkLauncher tool. |
---|
81 | |
---|
82 | |
---|
83 | %package gtk-devel |
---|
84 | Summary: Development package for %{name} |
---|
85 | Summary(ja): %{name} の開発パッケージ |
---|
86 | Group: Development/Libraries |
---|
87 | Requires: %{name}-gtk = %{version}-%{release} |
---|
88 | Requires: pkgconfig |
---|
89 | Requires: gtk2-devel |
---|
90 | Requires: libsoup-devel >= 2.28.2 |
---|
91 | |
---|
92 | %description gtk-devel |
---|
93 | The %{name}-gtk-devel package contains libraries, build data, and header |
---|
94 | files for developing applications that use %{name}-gtk. |
---|
95 | Please note that the WebKit/GTK+ API is not yet stable. This should |
---|
96 | only be used as a "preview" rather than a stable platform library. |
---|
97 | |
---|
98 | |
---|
99 | %package docs |
---|
100 | Summary: Documentation for %{name} |
---|
101 | Summary(ja): %{name} のドキュメント |
---|
102 | Group: Documentation |
---|
103 | Provides: %{name}-doc = %{version}-%{release} |
---|
104 | |
---|
105 | %description docs |
---|
106 | %{name} is an open-source Web content engine library. This package contains |
---|
107 | the documentation for %{name}, including various LICENSE, README, and |
---|
108 | AUTHORS files. |
---|
109 | |
---|
110 | |
---|
111 | %prep |
---|
112 | %setup -q -n webkitgtk-%{version} |
---|
113 | |
---|
114 | %build |
---|
115 | %configure \ |
---|
116 | --with-gtk=2.0 \ |
---|
117 | --disable-webkit2 \ |
---|
118 | --enable-icon-database \ |
---|
119 | --enable-jit \ |
---|
120 | --enable-geolocation \ |
---|
121 | --enable-introspection=yes \ |
---|
122 | --enable-webgl \ |
---|
123 | --enable-dependency-tracking \ |
---|
124 | %{?with_coverage: --enable-coverage } \ |
---|
125 | %{?with_pango: --with-font-backend=pango } \ |
---|
126 | %{?with_wml: --enable-wml } |
---|
127 | |
---|
128 | make %{?_smp_mflags} |
---|
129 | |
---|
130 | # workaround for bug 488112 |
---|
131 | # Compile libJavaScriptCore.a with -fno-strict-aliasing |
---|
132 | ##touch JavaScriptCore/AllInOneFile.cpp |
---|
133 | ##make %{?_smp_mflags} CXXFLAGS="%{optflags} -fno-strict-aliasing" |
---|
134 | |
---|
135 | |
---|
136 | %install |
---|
137 | rm -rf %{buildroot} |
---|
138 | |
---|
139 | make install DESTDIR=%{buildroot} |
---|
140 | install -d -m 755 %{buildroot}%{_libexecdir}/%{name} |
---|
141 | install -m 755 Programs/GtkLauncher %{buildroot}%{_libexecdir}/%{name} |
---|
142 | |
---|
143 | # Finally, copy over and rename the various files for %%doc inclusion. |
---|
144 | %add_to_doc_files Source/WebKit/LICENSE |
---|
145 | %add_to_doc_files Source/WebKit/gtk/NEWS |
---|
146 | %add_to_doc_files Source/WebCore/icu/LICENSE |
---|
147 | %add_to_doc_files Source/WebCore/LICENSE-APPLE |
---|
148 | %add_to_doc_files Source/WebCore/LICENSE-LGPL-2 |
---|
149 | %add_to_doc_files Source/WebCore/LICENSE-LGPL-2.1 |
---|
150 | %add_to_doc_files Source/JavaScriptCore/COPYING.LIB |
---|
151 | %add_to_doc_files Source/JavaScriptCore/THANKS |
---|
152 | %add_to_doc_files Source/JavaScriptCore/AUTHORS |
---|
153 | %add_to_doc_files Source/JavaScriptCore/icu/README |
---|
154 | |
---|
155 | %find_lang WebKitGTK-2.0 |
---|
156 | |
---|
157 | %clean |
---|
158 | rm -rf %{buildroot} |
---|
159 | |
---|
160 | |
---|
161 | %post gtk -p /sbin/ldconfig |
---|
162 | |
---|
163 | %posttrans gtk |
---|
164 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
165 | |
---|
166 | %postun gtk |
---|
167 | /sbin/ldconfig |
---|
168 | if [ $1 -eq 0 ] ; then |
---|
169 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
170 | fi |
---|
171 | |
---|
172 | |
---|
173 | # %files -f webkit.lang gtk |
---|
174 | %files gtk -f WebKitGTK-2.0.lang |
---|
175 | %defattr(-,root,root,-) |
---|
176 | %doc |
---|
177 | %{_libdir}/*.so.* |
---|
178 | %{_libexecdir}/WebKit/ |
---|
179 | %{_bindir}/jsc-1 |
---|
180 | %{_libdir}/girepository-1.0/*.typelib |
---|
181 | #%{_datadir}/glib-2.0/schemas/org.webkitgtk-1.0.gschema.xml |
---|
182 | %{_datadir}/webkitgtk-1.0/* |
---|
183 | |
---|
184 | %files gtk-devel |
---|
185 | %defattr(-,root,root,-) |
---|
186 | %exclude %{_libdir}/*.la |
---|
187 | %{_includedir}/webkitgtk-1.0 |
---|
188 | %{_libdir}/*.so |
---|
189 | %{_libdir}/pkgconfig/*.pc |
---|
190 | %{_datadir}/gir-1.0/*.gir |
---|
191 | |
---|
192 | %files docs -f docfiles.list |
---|
193 | %defattr(-,root,root,-) |
---|
194 | %{_datadir}/gtk-doc/html/webkitgtk |
---|
195 | |
---|
196 | |
---|
197 | %changelog |
---|
198 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2.1-1 |
---|
199 | - new upstream release |
---|
200 | - add BuildRequires: libwebp-devel, libsecret-devel |
---|
201 | - change BuildRequires: harfbuzz-icu-devel instead of libicu-devel |
---|
202 | - change BuildRequires: gstreamer1-devel instead of gstreamer-devel |
---|
203 | - change BuildRequires: gstreamer1-plugins-base-devel instead of gstreamer-plugins-base-devel |
---|
204 | |
---|
205 | * Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.10.2-1 |
---|
206 | - new upstream release |
---|
207 | |
---|
208 | * Wed Oct 17 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.10.1-1 |
---|
209 | - new upstream release |
---|
210 | |
---|
211 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.10.0-1 |
---|
212 | - new upstream release |
---|
213 | - add BuildRequires: ruby |
---|
214 | |
---|
215 | * Tue Aug 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.3-1 |
---|
216 | - new upstream release |
---|
217 | |
---|
218 | * Thu Aug 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.2-1 |
---|
219 | - new upstream release |
---|
220 | |
---|
221 | * Sun Apr 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.1-1 |
---|
222 | - new upstream release |
---|
223 | - change BuildRequires: gcr-devel instead of gnome-keyring-devel |
---|
224 | - add BuildRequires: gsettings-desktop-schemas, gtk-doc |
---|
225 | |
---|
226 | * Wed Sep 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.6.1-1 |
---|
227 | - new upstream release |
---|
228 | |
---|
229 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.90-1 |
---|
230 | - new upstream release |
---|
231 | |
---|
232 | * Sat Aug 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.2-1 |
---|
233 | - new upstream release |
---|
234 | |
---|
235 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.1-1 |
---|
236 | - new upstream release |
---|
237 | |
---|
238 | * Sun Jul 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.4.2-1 |
---|
239 | - new upstream release |
---|
240 | - delete Patch0 |
---|
241 | - add BuildRequires: gtk-doc |
---|
242 | |
---|
243 | * Fri Apr 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.7-1 |
---|
244 | - new upstream release |
---|
245 | |
---|
246 | * Sat Jan 29 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.6-1 |
---|
247 | - new upstream release |
---|
248 | |
---|
249 | * Sat Oct 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.5-1 |
---|
250 | - new upstream release |
---|
251 | - add BuildRequires: gobject-introspection-devel |
---|
252 | - add configure option (--enable-introspection=yes) |
---|
253 | - add Patch0 (WebKit-1.2.5-gir.patch) |
---|
254 | |
---|
255 | * Thu Sep 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.4-1 |
---|
256 | - new upstream release (built with rpm-4.8.1-1 for pkg-config file) |
---|
257 | - changed BuildRequires: libjpeg-devel to libjpeg-turbo-devel |
---|
258 | |
---|
259 | * Sun Aug 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.3-1 |
---|
260 | - new upstream release |
---|
261 | - add Requires: libsoup-devel (devel package) |
---|
262 | - fix configure (remove unrecognized option) |
---|
263 | - drop Patch100 |
---|
264 | |
---|
265 | * Wed Apr 14 2010 MATSUBAYASHI Kohji <shaoliN@vinelinux.org> - 1.2.0-2 |
---|
266 | - rebuilt again on ppc |
---|
267 | |
---|
268 | * Sun Apr 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-1 |
---|
269 | - new upstream release |
---|
270 | - rebuilt with libicu-4.4 |
---|
271 | - added Patch100 for compiling with libicu-4.4 |
---|
272 | - s/sqlite-devel/sqlite3-devel/ |
---|
273 | - s/freetype-devel/freetype2-devel/ |
---|
274 | |
---|
275 | * Mon Jan 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.18-1 |
---|
276 | - updated to 1.1.18 |
---|
277 | |
---|
278 | * Fri Nov 06 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.1.15.3-2 |
---|
279 | - change BR from libsoup to libsoup-devel |
---|
280 | |
---|
281 | * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.1.15.3-1 |
---|
282 | - new upstream release. |
---|
283 | - add Vendor, Distribution and Packager. |
---|
284 | |
---|
285 | * Mon Jul 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.1.10-1 |
---|
286 | - update to webkit-1.1.10 release version |
---|
287 | - added BuildRequires: enchant-devel |
---|
288 | |
---|
289 | * Sun May 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.6-1 |
---|
290 | - update to webkit-1.1.6 release version |
---|
291 | |
---|
292 | * Thu Mar 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-8.svn41944 |
---|
293 | - update to new upstream snapshot (svn r41944) |
---|
294 | |
---|
295 | * Mon Feb 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-7.svn40471 |
---|
296 | - update to new upstream snapshot (svn r40471) |
---|
297 | |
---|
298 | * Tue Sep 30 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-6.svn37056 |
---|
299 | - update to new upstream snapshot (svn r37056) |
---|
300 | - disable html5video by default |
---|
301 | |
---|
302 | * Sat Sep 27 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-5.svn36882 |
---|
303 | - update to new upstream snapshot (svn r36882) |
---|
304 | - build with gnome-2.24 |
---|
305 | |
---|
306 | * Thu Sep 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-4.svn36053 |
---|
307 | - build without pango by default. |
---|
308 | |
---|
309 | * Wed Sep 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-3.svn36053 |
---|
310 | - update to new upstream snapshot (svn r36053) |
---|
311 | |
---|
312 | * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-2.svn34655 |
---|
313 | - update to new upstream snapshot (svn r34655) |
---|
314 | |
---|
315 | * Mon Jun 16 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1.svn34279 |
---|
316 | - initial build for Vine Linux |
---|
317 | |
---|
318 | * Tue Jun 3 2008 Caol叩n McNamara <caolanm@redhat.com> - 1.0.0-0.12.svn34279 |
---|
319 | - rebuild for new icu |
---|
320 | |
---|
321 | * Tue Jun 3 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.0.0-0.11.svn34279 |
---|
322 | - Update to new upstream snapshot (SVN 34279) anyway |
---|
323 | - Add BR: libXt-devel |
---|
324 | |
---|
325 | * Tue Apr 29 2008 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.10.svn32531 |
---|
326 | - Remove the -Qt subpackage stuff. QtWebKit is now included in Qt proper, as |
---|
327 | of qt-4.4.0-0.6.rc1. (We no longer need separate build-qt and build-gtk |
---|
328 | subdirectories either.) |
---|
329 | - Reference: bug 442200 (RFE: WebKit Migration) |
---|
330 | - Add libjpeg dependency (was previously pulled in by the qt4-devel dependency |
---|
331 | tree). |
---|
332 | |
---|
333 | * Mon Apr 28 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1.0.0-0.9.svn32531 |
---|
334 | - Update to new upstream snapshot (SVN 32531). |
---|
335 | - Fix bug 443048 and hopefully fix bug 444445 |
---|
336 | - Modify the process of building GTK+ port a bit |
---|
337 | - on qt port WebKit/qt/Plugins is not built for qt >= 4.4.0 |
---|
338 | |
---|
339 | * Sat Apr 12 2008 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.8.svn31787 |
---|
340 | - Update to new upstream snapshot (SVN 31787). |
---|
341 | - Resolves: CVE-2008-1010 (bug 438532: Arbitrary code execution) and |
---|
342 | CVE-2008-1011 (bug 438531: Cross-Site Scripting). |
---|
343 | - Switch to using autotools for building the GTK+ port. |
---|
344 | |
---|
345 | * Wed Mar 05 2008 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.7.svn30667 |
---|
346 | - Fix the WebKitGtk pkgconfig data (should depend on gtk+-2.0). Resolves |
---|
347 | bug 436073 (Requires: gtk+-2.0 missing from WebKitGtk.pc). |
---|
348 | - Thanks to Mamoru Tasaka for helping find and squash these many bugs. |
---|
349 | |
---|
350 | * Sat Mar 01 2008 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.6.svn30667 |
---|
351 | - Fix include directory naming. Resolves: bug 435561 (Header file <> header |
---|
352 | file location mismatch) |
---|
353 | - Remove qt4-devel runtime dependency and .prl file from WebKit-gtk-devel. |
---|
354 | Resolves: bug 433138 (WebKit-gtk-devel has a requirement on qt4-devel) |
---|
355 | |
---|
356 | * Fri Feb 29 2008 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.5.svn30667 |
---|
357 | - Update to new upstream snapshot (SVN 30667) |
---|
358 | - Add some build fixes for GCC 4.3: |
---|
359 | + gcc43.patch |
---|
360 | |
---|
361 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.0-0.5.svn29336 |
---|
362 | - Autorebuild for GCC 4.3 |
---|
363 | |
---|
364 | * Wed Jan 09 2008 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.4.svn29336 |
---|
365 | - Update to new upstream snapshot (SVN 29336). |
---|
366 | - Drop TCSpinLock pthread workaround (fixed upstream): |
---|
367 | - TCSpinLock-use-pthread-stubs.patch |
---|
368 | |
---|
369 | * Thu Dec 06 2007 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.3.svn28482 |
---|
370 | - Add proper %%defattr line to qt, qt-devel, and doc subpackages. |
---|
371 | - Add patch to forcibly build the TCSpinLock code using the pthread |
---|
372 | implementation: |
---|
373 | + TCSpinLock-use-pthread-stubs.patch |
---|
374 | |
---|
375 | * Thu Dec 06 2007 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.2.svn28482 |
---|
376 | - Package renamed from WebKitGtk. |
---|
377 | - Update to SVN 28482. |
---|
378 | - Build both the GTK and Qt ports, putting each into their own respective |
---|
379 | subpackages. |
---|
380 | - Invoke qmake-qt4 and make directly (with SMP build flags) instead of using |
---|
381 | the build-webkit script from upstream. |
---|
382 | - Add various AUTHORS, README, and LICENSE files (via the doc subpackage). |
---|
383 | |
---|
384 | * Tue Dec 04 2007 Peter Gordon <peter@thecodergeek.com> 1.0.0-0.1.svn28383 |
---|
385 | - Initial packaging for Fedora. |
---|