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..90fa0d48f1a6e33ac189a9d7c6ce1e5c56f7523d --- /dev/null +++ b/perl-Nmap-Parser.spec @@ -0,0 +1,72 @@ +%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) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%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. + +%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}/* +%{_mandir}/* + +%changelog +* Thu Mar 28 2024 Xu Jin 1.37-1 +- Package init. diff --git a/perl-Nmap-Parser.yaml b/perl-Nmap-Parser.yaml new file mode 100644 index 0000000000000000000000000000000000000000..802c4b518475a580db34d7170f4948dffa0ff7a9 --- /dev/null +++ b/perl-Nmap-Parser.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: Nmap-Parser +tag_prefix: "^" +separator: "."