3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Nmap::Parser - parse nmap scan data with perl
9 Summary(pl.UTF-8): Nmap::Parser - parsowanie danych ze skanowania nmapem
10 Name: perl-Nmap-Parser
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 5d5f113a9d166b07e041a5dc52f9c3ee
17 URL: http://search.cpan.org/dist/Nmap-Parser/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-XML-Twig >= 3.16
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module implements a interface to the information contained in an
28 nmap scan. It is implemented by parsing the xml scan data that is
29 generated by nmap. This will enable anyone who utilizes nmap to
30 quickly create fast and robust security scripts that utilize the
31 powerful port scanning abilities of nmap.
33 %description -l pl.UTF-8
34 Moduł ten to implementacja interfejsu do informacji zebranych podczas
35 skanowania nmapem. Działa na zasadzie przetwarzania danych XML
36 wygenerowanych przez program nmap. Pozwala to na generowanie szybkich
37 i złożonych skryptów korzystających z potężnych możliwości, jakie daje
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %dir %{perl_vendorlib}/Nmap
63 %{perl_vendorlib}/Nmap/*.pm