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