From 8d4b7a9e397e82c14628dddfe0733546ffc5e39e Mon Sep 17 00:00:00 2001 From: david Date: Sat, 25 Feb 2012 02:23:55 +0000 Subject: [PATCH] Split nmap-update into its own RPM. --- nmap.spec.in | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/nmap.spec.in b/nmap.spec.in index c7bf7a06d..9afae905e 100644 --- a/nmap.spec.in +++ b/nmap.spec.in @@ -24,8 +24,7 @@ Source0: http://nmap.org/dist/%{name}-%{version}.tgz URL: http://nmap.org # For Ndiff. -Requires: python >= 2.4, subversion -BuildRequires: subversion-devel +Requires: python >= 2.4 # RPM can't be relocatable until I stop storing path info in the binary. # Prefix: %{_prefix} @@ -80,10 +79,8 @@ gzip $RPM_BUILD_ROOT%{_mandir}/man1/* || : %doc docs/nmap.usage.txt %doc %{_prefix}/share/man/man1/nmap.1.gz %doc %{_prefix}/share/man/*/man1/nmap.1.gz -%doc %{_prefix}/share/man/man1/nmap-update.1.gz %{_bindir}/nmap %{_datadir}/nmap -%{_bindir}/nmap-update %{_bindir}/ndiff %doc %{_prefix}/share/man/man1/ndiff.1.gz @@ -135,6 +132,24 @@ Service attacks, route tracing, etc. %endif +# nmap-update subpackage +%package -n nmap-update +Summary: Nmap's updater +Group: Applications/System + +Requires: subversion +BuildRequires: subversion-devel + +%description -n nmap-update +nmap-update gets the latest versions of architecture-independent +files, such as scripts and databases, for the installed version +of Nmap. + +%files -n nmap-update +%defattr(-,root,root) +%doc %{_prefix}/share/man/man1/nmap-update.1.gz +%{_bindir}/nmap-update + %changelog * Sat Jun 06 2009 Fyodor (fyodor(a)insecure.org)