]> git.pld-linux.org Git - packages/perl-Nmap-Parser.git/blob - perl-Nmap-Parser.spec
- tabs in preamble
[packages/perl-Nmap-Parser.git] / perl-Nmap-Parser.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Nmap
7 %define pnam    Parser
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
11 Version:        1.05
12 Release:        1
13 License:        GPL v2+
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
20 %if %{with tests}
21 BuildRequires:  perl-XML-Twig >= 3.16
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
32
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
38 program nmap.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes README
62 %dir %{perl_vendorlib}/Nmap
63 %{perl_vendorlib}/Nmap/*.pm
64 %{_mandir}/man3/*
This page took 0.141298 seconds and 4 git commands to generate.