1 | %define real_name Parse-Nessus-NBE |
---|
2 | |
---|
3 | Summary: Extract information from Nessus NBE files |
---|
4 | Name: perl-%{real_name} |
---|
5 | Version: 1.1 |
---|
6 | Release: 2%{?_dist_release} |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Libraries |
---|
9 | Url: http://search.cpan.org/dist/%{real_name} |
---|
10 | Source0: http://search.cpan.org/CPAN/authors/id/D/DK/DKYGER/%{real_name}-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | BuildArch: noarch |
---|
13 | BuildRequires: perl |
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
15 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
16 | Requires: perl(Exporter) |
---|
17 | |
---|
18 | %description |
---|
19 | This module is designed to extract information from Nessus NBE |
---|
20 | files. Functions have been designed to return certain sets of data, |
---|
21 | such as service banners and OS versions. Other functions have been |
---|
22 | provided that will return more specific information, such as all IPs |
---|
23 | listening on a given port or all IPs associated with a specified plugin id. |
---|
24 | |
---|
25 | %prep |
---|
26 | %setup -q -n %{real_name}-%{version} |
---|
27 | |
---|
28 | %build |
---|
29 | perl Makefile.PL INSTALLDIRS="vendor" |
---|
30 | make %{?_smp_mflags} |
---|
31 | |
---|
32 | %check |
---|
33 | make test |
---|
34 | |
---|
35 | %install |
---|
36 | rm -rf %{buildroot} |
---|
37 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
38 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
39 | find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
40 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
41 | |
---|
42 | %clean |
---|
43 | rm -rf %{buildroot} |
---|
44 | |
---|
45 | %files |
---|
46 | %defattr(-,root,root) |
---|
47 | %doc Changes README MANIFEST |
---|
48 | %{_mandir}/man3/* |
---|
49 | %{perl_vendorlib}/* |
---|
50 | |
---|
51 | |
---|
52 | %changelog |
---|
53 | * Wed Dec 10 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.1-2 |
---|
54 | - rebuilt with perl 5.16.3 |
---|
55 | |
---|
56 | * Wed Mar 14 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1-1 |
---|
57 | - initial build for Vine Linux |
---|