[packages/nmap] - updated python packaging
qboosh
qboosh at pld-linux.org
Tue Dec 22 22:02:25 CET 2015
commit 305a2239f44964a3016058737948fb8a86b3fa1a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Dec 22 22:03:54 2015 +0100
- updated python packaging
nmap.spec | 66 ++++++++++++++++++++++++++++++++++++++-------------------------
1 file changed, 40 insertions(+), 26 deletions(-)
---
diff --git a/nmap.spec b/nmap.spec
index 152fb3a..140a580 100644
--- a/nmap.spec
+++ b/nmap.spec
@@ -1,8 +1,9 @@
+#
# Conditional build:
%bcond_with system_dnet # use system libdnet instead of local modified version
-%bcond_without svn
-%bcond_without python
-%bcond_without lua
+%bcond_without svn # nmap-update support (using subversion library)
+%bcond_without python # Python based scripts
+%bcond_without lua # Nmap Scripting Engine (lua based)
Summary: Network exploration tool and security scanner
Summary(es.UTF-8): Herramienta de exploración de la rede y seguridad
@@ -118,6 +119,7 @@ Ten pakiet zawiera zenmap, czyli graficzny frontend dla nmapa.
%package ncat
Summary: Nmap's Netcat replacement
+Summary(pl.UTF-8): Zamiennik Netcata z pakietu Nmap
Group: Applications/System
Requires: ca-certificates
Provides: nc
@@ -131,6 +133,15 @@ instantly provide network connectivity to other applications and
users. Ncat will not only work with IPv4 and IPv6 but provides the
user with a virtually limitless number of potential uses.
+%description ncat -l pl.UTF-8
+Ncat to narzędzie sieciowe o wielu możliwościach, czytające i
+zapisujące dane przez sieć z linii poleceń. Do komunikacji używa
+zarówno TCP, jak i UDP; jest zaprojektowane jako wiarygodne narzędzie
+backendowe, zapewniające łączność sieciową dla innych aplikacji i
+użytkowników. Działa nie tylko z IPv4 i IPv6, ale udostępnia
+użytkownikowi praktycznie nieograniczoną liczbę potencjalnych
+zastosowań.
+
%prep
%setup -q
%patch0 -p1
@@ -174,17 +185,18 @@ ln -s ncat $RPM_BUILD_ROOT%{_bindir}/nc
cp -p docs/zenmap.1 $RPM_BUILD_ROOT%{_mandir}/man1
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_postclean
# remove unneeded files
%{__rm} $RPM_BUILD_ROOT%{_bindir}/uninstall_zenmap
%{__rm} $RPM_BUILD_ROOT%{_bindir}/uninstall_ndiff
-# fix locale names
-mv $RPM_BUILD_ROOT%{_mandir}/pt{_PT,}
-mv $RPM_BUILD_ROOT%{_mandir}/zh{,_CN}
+# unify locale names
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/pt{_PT,}
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/zh{,_CN}
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/zenmap/locale/zh{,_CN}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -199,7 +211,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/nping
%{_datadir}/nmap
%if %{with python}
-%{py_sitedir}/ndiff.py[co]
+%{py_sitescriptdir}/ndiff.py[co]
%endif
%{_mandir}/man1/ndiff.1*
%{_mandir}/man1/nmap.1*
@@ -233,23 +245,23 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/xnmap
%attr(755,root,root) %{_bindir}/zenmap
%if %{with python}
-%dir %{py_sitedir}/radialnet
-%dir %{py_sitedir}/radialnet/bestwidgets
-%dir %{py_sitedir}/radialnet/core
-%dir %{py_sitedir}/radialnet/gui
-%dir %{py_sitedir}/radialnet/util
-%dir %{py_sitedir}/zenmapCore
-%dir %{py_sitedir}/zenmapGUI
-%dir %{py_sitedir}/zenmapGUI/higwidgets
-%{py_sitedir}/radialnet/*.py[co]
-%{py_sitedir}/radialnet/bestwidgets/*.py[co]
-%{py_sitedir}/radialnet/core/*.py[co]
-%{py_sitedir}/radialnet/gui/*.py[co]
-%{py_sitedir}/radialnet/util/*.py[co]
-%{py_sitedir}/zenmapCore/*.py[co]
-%{py_sitedir}/zenmapGUI/*.py[co]
-%{py_sitedir}/zenmapGUI/higwidgets/*.py[co]
-%{py_sitedir}/zenmap-*.egg-info
+%dir %{py_sitescriptdir}/radialnet
+%dir %{py_sitescriptdir}/radialnet/bestwidgets
+%dir %{py_sitescriptdir}/radialnet/core
+%dir %{py_sitescriptdir}/radialnet/gui
+%dir %{py_sitescriptdir}/radialnet/util
+%dir %{py_sitescriptdir}/zenmapCore
+%dir %{py_sitescriptdir}/zenmapGUI
+%dir %{py_sitescriptdir}/zenmapGUI/higwidgets
+%{py_sitescriptdir}/radialnet/*.py[co]
+%{py_sitescriptdir}/radialnet/bestwidgets/*.py[co]
+%{py_sitescriptdir}/radialnet/core/*.py[co]
+%{py_sitescriptdir}/radialnet/gui/*.py[co]
+%{py_sitescriptdir}/radialnet/util/*.py[co]
+%{py_sitescriptdir}/zenmapCore/*.py[co]
+%{py_sitescriptdir}/zenmapGUI/*.py[co]
+%{py_sitescriptdir}/zenmapGUI/higwidgets/*.py[co]
+%{py_sitescriptdir}/zenmap-%{version}-py*.egg-info
%endif
%dir %{_datadir}/zenmap
%{_datadir}/zenmap/config
@@ -258,12 +270,14 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/zenmap/locale
%lang(de) %{_datadir}/zenmap/locale/de
%lang(fr) %{_datadir}/zenmap/locale/fr
+%lang(hi) %{_datadir}/zenmap/locale/hi
%lang(hr) %{_datadir}/zenmap/locale/hr
%lang(it) %{_datadir}/zenmap/locale/it
%lang(ja) %{_datadir}/zenmap/locale/ja
%lang(pl) %{_datadir}/zenmap/locale/pl
%lang(pt_BR) %{_datadir}/zenmap/locale/pt_BR
%lang(ru) %{_datadir}/zenmap/locale/ru
+%lang(zh_CN) %{_datadir}/zenmap/locale/zh_CN
%{_datadir}/zenmap/pixmaps
%{_datadir}/zenmap/su-to-zenmap.sh
%{_desktopdir}/zenmap-root.desktop
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nmap.git/commitdiff/305a2239f44964a3016058737948fb8a86b3fa1a
More information about the pld-cvs-commit
mailing list