From 5d574013414d35308208ca73226967cf1255b4cb Mon Sep 17 00:00:00 2001 From: david Date: Mon, 29 Mar 2010 20:45:10 +0000 Subject: [PATCH] Try adding the 0. version number prefix to the nping RPM package. --- Makefile.in | 1 + nmap.spec.in | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile.in b/Makefile.in index 6c84b12c0..d4646883a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -242,6 +242,7 @@ $(NCATDIR)/ncat.h: nmap.h mv -f $@.tmp $@ # Update the Nping version number. This is "0.NMAP_VERSION". +# If the 0. prefix is removed it must also be removed from nmap.spec.in. $(NPINGDIR)/nping.h: nmap.h sed -e 's/^#[ \t]*define[ \t]\+NPING_VERSION[ \t]\+\(".*"\)/#define NPING_VERSION "0.$(NMAP_VERSION)"/' $@ > $@.tmp mv -f $@.tmp $@ diff --git a/nmap.spec.in b/nmap.spec.in index ca68557bf..936b8f36d 100644 --- a/nmap.spec.in +++ b/nmap.spec.in @@ -110,6 +110,8 @@ uses. # Nping subpackage %if "%{buildnping}" != "0" %package -n nping +# If this 0. prefix is removed it must also be removed from Makefile.in. +Version: 0.%{version} Summary: Nping packet generator Group: Applications/System