--- xulrunner.spec.orig	2012-04-24 05:35:03.000000000 -0400
+++ xulrunner.spec	2012-06-07 01:07:26.767103575 -0400
@@ -1,3 +1,7 @@
+# DNSSEC-Tools
+%define dist .1.dnssec
+#%define _default_patch_fuzz 2
+
 # Use system nspr/nss?
 %define system_nss        1
 
@@ -21,7 +25,7 @@
 %global libvpx_version 1.0.0
 
 %if %{?system_nss}
-%global nspr_version 4.9
+%global nspr_version 4.9-2.1.dnssec
 %global nss_version 3.13.3
 %endif
 
@@ -104,6 +108,16 @@
 Patch46:        mozilla-724615.patch
 Patch47:        mozilla-691898.patch
 
+# DNSSEC-Tools
+# - mozilla-base patches
+Patch1001:	moz-base-0001-take-advantage-of-new-DNSSEC-functionality-in-NSPR.patch
+Patch1002:	moz-base-0002-support-functions-in-preparation-for-async-support.patch
+Patch1003:	moz-base-0003-take-advantage-of-new-async-functionality-in-NSPR.patch
+Patch1004:	moz-base-0004-make-netwerk-DNSSEC-validation-aware.patch
+# - mozilla-browser patches
+Patch1101:	moz-browser-0001-update-browser-local-overrides-for-DNSSEC.patch
+Patch1102:	moz-browser-0002-add-DNSSEC-preferences-to-browser.patch
+
 # ---------------------------------------------------
 
 %if %{?system_nss}
@@ -132,6 +146,9 @@
 BuildRequires:  mesa-libGL-devel
 BuildRequires:  libcurl-devel
 BuildRequires:  libvpx-devel >= %{libvpx_version}
+BuildRequires:  autoconf213
+BuildRequires:  dnssec-tools-libs-devel
+BuildRequires:  openssl-devel
 
 Requires:       mozilla-filesystem
 %if %{?system_nss}
@@ -242,6 +259,23 @@
 %patch46 -p1 -b .724615
 #%patch47 -p1 -b .691898
 
+###############################
+# DNSSEC-Tools
+# - mozilla-base patches
+%patch1001 -p1 -b .dnssec-moz-base
+%patch1002 -p1 -b .dnssec-moz-base
+%patch1003 -p1 -b .dnssec-moz-base
+%patch1004 -p1 -b .dnssec-moz-base
+# - mozilla-browser patches
+%patch1101 -p1 -b .dnssec-moz-browser
+%patch1102 -p1 -b .dnssec-moz-browser
+
+# rebuild configure(s) due to dnssec patches
+/bin/rm -f ./configure
+/usr/bin/autoconf-2.13 
+# end dnssec related patches
+###############################
+
 %{__rm} -f .mozconfig
 %{__cp} %{SOURCE10} .mozconfig
 %if %{enable_mozilla_crashreporter}
@@ -306,6 +340,8 @@
 echo "ac_add_options --disable-tracejit" >> .mozconfig
 %endif
 
+echo "ac_add_options --with-system-val" >> .mozconfig
+
 #---------------------------------------------------------------------
 
 %build
