--- nspr.spec.orig	2012-03-28 15:01:28.000000000 -0400
+++ nspr.spec	2012-06-07 00:01:51.655140985 -0400
@@ -1,3 +1,6 @@
+# DNSSEC-Tools
+%define dist .1.dnssec
+
 Summary:        Netscape Portable Runtime
 Name:           nspr
 Version:        4.9
@@ -6,6 +9,10 @@
 URL:            http://www.mozilla.org/projects/nspr/
 Group:          System Environment/Libraries
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+Requires:       dnssec-tools-libs
+BuildRequires:  dnssec-tools-libs-devel
+BuildRequires:  openssl-devel
+BuildRequires:  autoconf213
 
 # Sources available at ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/
 # When CVS tag based snapshots are being used, refer to CVS documentation on
@@ -16,6 +23,16 @@
 
 Patch1:         nspr-config-pc.patch
 
+# DNSSEC-Tools
+Patch1001:	nspr-0001-getaddr-patch-for-mozilla-bug-699055.patch
+Patch1002:	nspr-0002-add-NSPR-log-module-for-DNS.patch
+Patch1003:	nspr-0003-add-dnssec-options-flags-to-configure-and-makefiles.patch
+Patch1004:	nspr-0004-add-DNSSEC-error-codes-and-text.patch
+Patch1005:	nspr-0005-factor-out-common-code-from-PR_GetAddrInfoByName.patch
+Patch1006:	nspr-0006-header-definitions-for-Extended-DNSSEC-and-asynchron.patch
+Patch1007:	nspr-0007-add-dnssec-validation-to-prnetdb.patch
+Patch1008:	nspr-0008-update-getai-to-test-async-disable-validation.patch
+
 %description
 NSPR provides platform independence for non-GUI operating system 
 facilities. These facilities include threads, thread synchronization, 
@@ -45,6 +62,22 @@
 cp ./mozilla/nsprpub/config/nspr-config.in ./mozilla/nsprpub/config/nspr-config-pc.in
 %patch1 -p0
 
+###############################
+# begin dnssec related patches
+%patch1001 -p1 -d mozilla -b .dnssec
+%patch1002 -p1 -d mozilla -b .dnssec
+%patch1003 -p1 -d mozilla -b .dnssec
+%patch1004 -p1 -d mozilla -b .dnssec
+%patch1005 -p1 -d mozilla -b .dnssec
+%patch1006 -p1 -d mozilla -b .dnssec
+%patch1007 -p1 -d mozilla -b .dnssec
+%patch1008 -p1 -d mozilla -b .dnssec
+
+# rebuild configure(s) due to dnssec patches
+(cd mozilla/nsprpub/; /bin/rm -f ./configure; /usr/bin/autoconf-2.13)
+# end dnssec related patches
+###############################
+
 cp %{SOURCE2} ./mozilla/nsprpub/config/
 
 %build
@@ -64,6 +97,7 @@
                  --enable-thumb2 \
 %endif
                  --enable-optimize="$RPM_OPT_FLAGS" \
+                 --with-system-val \
                  --disable-debug
 
 make
