perl-Parse-Nessus-NBE-vl.spec 1.6 KB

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