1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-30 01:59:02 +00:00

Try adding the 0. version number prefix to the nping RPM package.

This commit is contained in:
david
2010-03-29 20:45:10 +00:00
parent f30a1dcf2c
commit 5d57401341
2 changed files with 3 additions and 0 deletions

View File

@@ -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 $@

View File

@@ -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