[leafnode] Add patch to avoid network tests during build.

Kevin Fenzi kevin at fedoraproject.org
Thu Aug 5 20:48:11 UTC 2010


commit b1b1f134b7306d012f35a1ba697306ca6465c092
Author: kevin <kevin at tummy.com>
Date:   Thu Aug 5 14:48:02 2010 -0600

    Add patch to avoid network tests during build.

 leafnode-1.11.8-nonettests.patch |   13 +++++++++++++
 leafnode.spec                    |    7 ++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/leafnode-1.11.8-nonettests.patch b/leafnode-1.11.8-nonettests.patch
new file mode 100644
index 0000000..4db9392
--- /dev/null
+++ b/leafnode-1.11.8-nonettests.patch
@@ -0,0 +1,13 @@
+diff -Nur leafnode-1.11.8.orig/t.validate-xml leafnode-1.11.8/t.validate-xml
+--- leafnode-1.11.8.orig/t.validate-xml	2009-09-07 02:05:27.000000000 -0600
++++ leafnode-1.11.8/t.validate-xml	2010-08-05 14:44:02.000000000 -0600
+@@ -1,5 +1,9 @@
+ #! /bin/sh
+ 
++echo "No network tests used in the buildsys, skipping t.validate-xml"
++
++echo 0
++
+ DOC=FAQ.xml
+ 
+ type xmllint >/dev/null 2>&1 || exit 77
diff --git a/leafnode.spec b/leafnode.spec
index 99cbc7f..3d97aa9 100644
--- a/leafnode.spec
+++ b/leafnode.spec
@@ -1,6 +1,6 @@
 Name: leafnode
 Version: 1.11.8
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 Summary: Leaf site offline NNTP server
 License: MIT and LGPLv2
@@ -8,6 +8,7 @@ Group: Applications/Internet
 URL: http://www.leafnode.org
 Source0: http://download.sourceforge.net/leafnode/leafnode-%{version}.tar.bz2
 Source2: leafnode.cron
+Patch1: leafnode-1.11.8-nonettests.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: pcre-devel
 Requires: xinetd
@@ -32,6 +33,7 @@ regelmäßig lesen, vom Newsserver des Providers.
 %prep
 
 %setup -q -n %{name}-%{version}
+%patch1 -p1
 
 %build
 %configure --with-spooldir=%spooldir --sysconfdir=%confdir --with-lockfile=%lockfile --with-ipv6
@@ -103,6 +105,9 @@ exit 0
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Thu Aug 05 2010 Kevin Fenzi <kevin at tummy.com> - 1.11.8-2
+- Add patch to avoid network tests during build. 
+
 * Thu Aug 05 2010 Kevin Fenzi <kevin at tummy.com> - 1.11.8-1
 - Update to 1.11.8
 


More information about the scm-commits mailing list