[packages/nmap] Rel 4. Fix license. Split scripts that require java into subpackage.

arekm arekm at pld-linux.org
Mon Aug 2 21:56:58 CEST 2021


commit a9ac6b28f76198de6d6d4a97b90930f0c587c263
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Aug 2 21:56:50 2021 +0200

    Rel 4. Fix license. Split scripts that require java into subpackage.

 nmap.spec | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/nmap.spec b/nmap.spec
index eae0f55..ea1c7df 100644
--- a/nmap.spec
+++ b/nmap.spec
@@ -12,8 +12,8 @@ Summary(ru.UTF-8):	Утилита сканирования сети и ауди
 Summary(uk.UTF-8):	Утиліта сканування мережі та аудиту безпеки
 Name:		nmap
 Version:	7.91
-Release:	3
-License:	GPL v2 clarified, with OpenSSL exception
+Release:	4
+License:	Nmap Public Source License
 Group:		Networking/Utilities
 Source0:	https://nmap.org/dist/%{name}-%{version}.tar.bz2
 # Source0-md5:	239cef725863ab454590a1bb8793b72b
@@ -99,6 +99,14 @@ Nmap також підтримує гнучке задання цілі та п
 сканування (decoy scanning), визначення характеристик передбачуваності
 TCP sequence, сканування sunRPC, reverse-identd сканування та інше.
 
+%package java
+Summary:	NSE scripts that require java
+Group:		Applications/Networking
+Requires:	%{name} = %{version}-%{release}
+
+%description java
+NSE scripts that require java.
+
 %package ncat
 Summary:	Nmap's Netcat replacement
 Summary(pl.UTF-8):	Zamiennik Netcata z pakietu Nmap
@@ -214,6 +222,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/nmap
 %attr(755,root,root) %{_bindir}/nping
 %{_datadir}/nmap
+%exclude %{_datadir}/nmap/nselib/data/jdwp-class
+%exclude %{_datadir}/nmap/scripts/jdwp-*
 %{_mandir}/man1/nmap.1*
 %{_mandir}/man1/nping.1*
 %lang(de) %{_mandir}/de/man1/nmap.1*
@@ -231,6 +241,11 @@ rm -rf $RPM_BUILD_ROOT
 %lang(sk) %{_mandir}/sk/man1/nmap.1*
 %lang(zh_CN) %{_mandir}/zh_CN/man1/nmap.1*
 
+%files java
+%defattr(644,root,root,755)
+%{_datadir}/nmap/nselib/data/jdwp-class
+%{_datadir}/nmap/scripts/jdwp-*
+
 %files ncat
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/ncat
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nmap.git/commitdiff/a9ac6b28f76198de6d6d4a97b90930f0c587c263



More information about the pld-cvs-commit mailing list