diff --git a/Nmap-Parser-1.37.tar.gz b/Nmap-Parser-1.37.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..208c18e9c3f77b214524ec56ce66232a83c72a2c Binary files /dev/null and b/Nmap-Parser-1.37.tar.gz differ diff --git a/perl-Nmap-Parser.spec b/perl-Nmap-Parser.spec new file mode 100644 index 0000000000000000000000000000000000000000..eefa1882dc8e9804014b1e05b82c57173b184bd2 --- /dev/null +++ b/perl-Nmap-Parser.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Nmap-Parser +Version: 1.37 +Release: 1 +Summary: Parse nmap scan data with perl +License: MIT +Group: Development/Libraries +URL: http://search.cpan.org/dist/Nmap-Parser/ +Source0: http://www.cpan.org/authors/id/A/AP/APERSAUD/Nmap-Parser-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +%description +This module implements a interface to the information contained in an +nmap scan. It is implemented by parsing the xml scan data that is +generated by nmap. This will enable anyone who utilizes nmap to quickly +create fast and robust security scripts that utilize the powerful port +scanning abilities of nmap. + +%package help +Summary : Parse nmap scan data with perl +Provides: perl-Nmap-Parser-doc +%description help +This module implements a interface to the information contained in an +nmap scan. It is implemented by parsing the xml scan data that is +generated by nmap. This will enable anyone who utilizes nmap to quickly +create fast and robust security scripts that utilize the powerful port +scanning abilities of nmap. + +%prep +%setup -q -n Nmap-Parser-%{version} + +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +make test || : + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes.md LICENSE META.json README.md +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Mon Jul 18 2022 Perl_Bot 1.37-1 +- Specfile autogenerated by Perl_Bot