]> git.pld-linux.org Git - packages/perl-Nmap-Parser.git/blob - perl-Nmap-Parser.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Nmap-Parser.git] / perl-Nmap-Parser.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Nmap
6 %define pnam    Parser
7 Summary:        Nmap::Parser - parse nmap scan data with perl
8 Summary(pl.UTF-8):      Nmap::Parser - parsowanie danych ze skanowania nmapem
9 Name:           perl-Nmap-Parser
10 Version:        1.21
11 Release:        1
12 License:        GPL v2+
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  3733b9d5f76fb34c49edad21eb282bbc
16 URL:            http://search.cpan.org/dist/Nmap-Parser/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-XML-Twig >= 3.16
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This module implements a interface to the information contained in an
27 nmap scan. It is implemented by parsing the xml scan data that is
28 generated by nmap. This will enable anyone who utilizes nmap to
29 quickly create fast and robust security scripts that utilize the
30 powerful port scanning abilities of nmap.
31
32 %description -l pl.UTF-8
33 Moduł ten to implementacja interfejsu do informacji zebranych podczas
34 skanowania nmapem. Działa na zasadzie przetwarzania danych XML
35 wygenerowanych przez program nmap. Pozwala to na generowanie szybkich
36 i złożonych skryptów korzystających z potężnych możliwości, jakie daje
37 program nmap.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc Changes README
61 %dir %{perl_vendorlib}/Nmap
62 %{perl_vendorlib}/Nmap/*.pm
63 %{_mandir}/man3/*
This page took 0.120297 seconds and 4 git commands to generate.