[mingw-webkitgtk] Update to 1.10.1

Kalev Lember kalev at fedoraproject.org
Sat Oct 20 13:02:37 UTC 2012


commit df1bfc5acebc480fea2c37676f1f11a5944085a5
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Sat Oct 20 13:04:46 2012 +0200

    Update to 1.10.1
    
    - Drop upstreamed patches
    - Enable parallel make
    - Adjust for webkit -> webkitgtk tarball rename

 .gitignore                                |    1 +
 0001-Build-fix-with-newer-bison-2.6.patch |  593 -----------------------------
 mingw-webkitgtk.spec                      |   38 +-
 sources                                   |    2 +-
 webkit-1.9.6-wk2-tests.patch              |   36 ++
 webkit-fix-spellcheck-build.patch         |   63 ---
 6 files changed, 58 insertions(+), 675 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6a9ba9a..a79af62 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@
 /webkit-1.8.2.tar.xz
 /webkit-1.8.2-win32-extra.tar.xz
 /webkit-1.8.3.tar.xz
+/webkitgtk-1.10.1.tar.xz
diff --git a/mingw-webkitgtk.spec b/mingw-webkitgtk.spec
index d034877..93c5b76 100644
--- a/mingw-webkitgtk.spec
+++ b/mingw-webkitgtk.spec
@@ -29,7 +29,7 @@
 %bcond_with	jit
 
 Name:		mingw-webkitgtk
-Version:	1.8.3
+Version:	1.10.1
 Release:	1%{?dist}
 Summary:	MinGW Windows web content engine library
 
@@ -37,25 +37,22 @@ Group:		Development/Libraries
 License:	LGPLv2+ and BSD
 URL:		http://webkit.org/
 
-Source0:	http://webkitgtk.org/releases/webkit-%{version}.tar.xz
+Source0:	http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
 
+# Disable WebKit2 tests when building WebKit1
+# https://lists.webkit.org/pipermail/webkit-gtk/2012-August/001204.html
+Patch1:         webkit-1.9.6-wk2-tests.patch
 # The DumpRenderTree tool fails to compile for version 1.3.13
 # as it depends on internal symbols which aren't exported in
 # the .dll so it's safe to skip building this tool
 Patch2:		webkit-dont-build-dump-render-tree.patch
 
-# Fix the build with spellchecking enabled
-# https://bugs.webkit.org/show_bug.cgi?id=93255
-Patch3:		webkit-fix-spellcheck-build.patch
-
-# Fix the build with bison 2.6
-Patch4:		0001-Build-fix-with-newer-bison-2.6.patch
-
 BuildArch:	noarch
 
 BuildRequires:	bison
 BuildRequires:	flex
 BuildRequires:	gperf
+BuildRequires:	ruby
 
 # For autoreconf
 BuildRequires:	autoconf automake libtool
@@ -152,12 +149,10 @@ Static version of the MinGW Windows WebKitGTK+ library.
 
 
 %prep
-%setup -qn "webkit-%{version}"
+%setup -qn "webkitgtk-%{version}"
 
+%patch1 -p1 -b .disable_wk2
 %patch2 -p0 -b .dumprendertree
-%patch3 -p1 -b .spellcheck
-%patch4 -p1 -b .bison26
-
 autoreconf --verbose --install -I Source/autotools
 
 
@@ -173,13 +168,14 @@ autoreconf --verbose --install -I Source/autotools
 			--with-unicode-backend=icu		\
 			--enable-static --enable-shared		\
 			--disable-geolocation			\
+			--disable-plugin-process		\
+			--disable-webkit2			\
 			--disable-gtk-doc-html			\
 %{?with_coverage:	--enable-coverage		}	\
 %{?with_debug:		--enable-debug			}	\
 %{?with_jit:		--enable-jit			}
 
-# %%{?_smp_mflags} disabled to avoid parallel make issues
-%mingw_make V=99
+%mingw_make %{?_smp_mflags} V=1
 
 
 %install
@@ -191,7 +187,7 @@ install -m 755 build_win64/Programs/.libs/GtkLauncher.exe %{buildroot}%{mingw64_
 # Drop all .la files
 find $RPM_BUILD_ROOT -name "*.la" -delete
 
-%mingw_find_lang webkit-2.0
+%mingw_find_lang webkitgtk-2.0
 
 ## Copy over and rename the various files for %%doc inclusion.
 %add_to_doc_files32 Source/WebKit/LICENSE
@@ -222,7 +218,7 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
 
 
 # Win32
-%files -n mingw32-webkitgtk -f mingw32-webkit-2.0.lang
+%files -n mingw32-webkitgtk -f mingw32-webkitgtk-2.0.lang
 %{_docdir}/mingw32-webkitgtk-%{version}/
 %{mingw32_bindir}/jsc-1.exe
 %{mingw32_bindir}/GtkLauncher.exe
@@ -240,7 +236,7 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
 %{mingw32_libdir}/libwebkitgtk-1.0.a
 
 # Win64
-%files -n mingw64-webkitgtk -f mingw64-webkit-2.0.lang
+%files -n mingw64-webkitgtk -f mingw64-webkitgtk-2.0.lang
 %{_docdir}/mingw64-webkitgtk-%{version}/
 %{mingw64_bindir}/jsc-1.exe
 %{mingw64_bindir}/GtkLauncher.exe
@@ -259,6 +255,12 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
 
 
 %changelog
+* Sat Oct 20 2012 Kalev Lember <kalevlember at gmail.com> - 1.10.1-1
+- Update to 1.10.1
+- Drop upstreamed patches
+- Enable parallel make
+- Adjust for webkit -> webkitgtk tarball rename
+
 * Thu Aug 30 2012 Kalev Lember <kalevlember at gmail.com> - 1.8.3-1
 - Update to 1.8.3
 
diff --git a/sources b/sources
index 5f5ca09..968b8be 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dcbf9d5e2e6391f857c29a57528b32a6  webkit-1.8.3.tar.xz
+28c930cda012391453c476cdacfaca65  webkitgtk-1.10.1.tar.xz
diff --git a/webkit-1.9.6-wk2-tests.patch b/webkit-1.9.6-wk2-tests.patch
new file mode 100644
index 0000000..6fdf33b
--- /dev/null
+++ b/webkit-1.9.6-wk2-tests.patch
@@ -0,0 +1,36 @@
+Do not build WebKit2 test for WebKit1.
+
+diff -uprN webkit-1.9.6/Source/ThirdParty/gtest/GNUmakefile.am webkit-1.9.6.az/Source/ThirdParty/gtest/GNUmakefile.am
+--- webkit-1.9.6/Source/ThirdParty/gtest/GNUmakefile.am	2012-07-19 12:02:14 +0200
++++ webkit-1.9.6.az/Source/ThirdParty/gtest/GNUmakefile.am	2012-08-10 11:55:45 +0200
+@@ -1,3 +1,4 @@
++if ENABLE_WEBKIT2
+ 
+ noinst_LTLIBRARIES += \
+ 	Libraries/libgtest.la
+@@ -40,6 +41,8 @@ Libraries_libgtest_la_CXXFLAGS = -DGTEST
+ Libraries_libgtest_la_LIBADD = \
+ 	-lpthread
+ 
++endif
++
+ # gtest source files that we don't compile directly.  They are
+ # #included by gtest-all.cc.
+ EXTRA_DIST += \
+diff -uprN webkit-1.9.6/Tools/TestWebKitAPI/GNUmakefile.am webkit-1.9.6.az/Tools/TestWebKitAPI/GNUmakefile.am
+--- webkit-1.9.6/Tools/TestWebKitAPI/GNUmakefile.am	2012-08-06 10:17:52 +0200
++++ webkit-1.9.6.az/Tools/TestWebKitAPI/GNUmakefile.am	2012-08-10 11:55:46 +0200
+@@ -1,3 +1,5 @@
++if ENABLE_WEBKIT2
++
+ BUILT_SOURCES += \
+ 	generate-testwebkitapi-forwarding-headers
+ wk2_tests_sources = $(shell ls $(srcdir)/Tools/TestWebKitAPI/Tests/WebKit2/*.cpp)
+@@ -91,7 +93,6 @@ Programs_TestWebKitAPI_TestGtk_SOURCES =
+ 	Tools/TestWebKitAPI/config.h \
+ 	Tools/TestWebKitAPI/Tests/gtk/InputMethodFilter.cpp
+ 
+-if ENABLE_WEBKIT2
+ noinst_PROGRAMS += \
+ 	Programs/TestWebKitAPI/TestWebKit2
+ 


More information about the scm-commits mailing list