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