rpms/perl-Nmap-Parser/EL-5 perl-Nmap-Parser.spec,1.3,1.4
Iain Arnell
iarnell at fedoraproject.org
Mon Mar 1 17:38:49 UTC 2010
Author: iarnell
Update of /cvs/pkgs/rpms/perl-Nmap-Parser/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17489/EL-5
Modified Files:
perl-Nmap-Parser.spec
Log Message:
* Mon Mar 01 2010 Iain Arnell <iarnell at gmail.com> 1.19-4
- specfile cleanup prompted by BZ#569399
- license changed from GPLv2+ to MIT (since 1.11)
Index: perl-Nmap-Parser.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Nmap-Parser/EL-5/perl-Nmap-Parser.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- perl-Nmap-Parser.spec 1 Apr 2009 02:16:50 -0000 1.3
+++ perl-Nmap-Parser.spec 1 Mar 2010 17:38:49 -0000 1.4
@@ -1,71 +1,77 @@
Name: perl-Nmap-Parser
Version: 1.19
-Release: 1%{?dist}
+Release: 4%{?dist}
Summary: Parse nmap scan data with perl
-
+License: MIT
Group: Development/Libraries
-License: GPLv2+
-URL: http://search.cpan.org/dist/Nmap-Parser
-Source0: http://search.cpan.org/CPAN/authors/id/A/AP/APERSAUD/Nmap-Parser-%{version}.tar.gz
+URL: http://search.cpan.org/dist/Nmap-Parser/
+Source0: http://www.cpan.org/modules/by-module/Nmap/Nmap-Parser-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
BuildArch: noarch
-BuildRequires: perl(XML::Twig), perl(ExtUtils::MakeMaker), perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(XML::Twig) >= 3.16
+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.
+%{?perl_default_filter}
+%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 -qn Nmap-Parser-%{version}
+%setup -q -n Nmap-Parser-%{version}
+
+# cleanup
+rm -f ./._*
#fix end-of-line encoding
-sed -i 's/\r//' $RPM_BUILD_DIR/Nmap-Parser-%{version}/README
-sed -i 's/\r//' $RPM_BUILD_DIR/Nmap-Parser-%{version}/Parser.pm
+sed -i 's/\r//' README
+sed -i 's/\r//' Parser.pm
+sed -i 's/\r//' tools/pdev.pl
+
+chmod 0644 tools/*
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
-
%install
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 ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
-install -D -m 755 tools/nmap2sqlite.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/nmap2sqlite.pl
-install -m 755 tools/pdev.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/pdev.pl
-install -m 755 tools/scan.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/scan.pl
-
-#fix permissions
-chmod 0644 $RPM_BUILD_DIR/Nmap-Parser-%{version}/README
-chmod 0644 $RPM_BUILD_DIR/Nmap-Parser-%{version}/LICENSE
-chmod 0644 $RPM_BUILD_ROOT%{perl_vendorlib}/Nmap/Parser.pm
+make pure_install DESTDIR=$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/*
%check
make test
-
%clean
rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(-,root,root,-)
-%doc LICENSE README
+%doc Changes LICENSE README tools
%{perl_vendorlib}/*
-%{_datadir}/*
-%{_mandir}/man3/*.3*
+%{_mandir}/man3/*
%changelog
+* Mon Mar 01 2010 Iain Arnell <iarnell at gmail.com> 1.19-4
+- specfile cleanup prompted by BZ#569399
+- license changed from GPLv2+ to MIT (since 1.11)
+
+* Mon Dec 7 2009 Stepan Kasal <skasal at redhat.com> - 1.19-3
+- rebuild against perl 5.10.1
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.19-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
* Tue Mar 04 2009 Sindre Pedersen Bjørdal <sindrepb at fedoraproject.org>
- New upstream release
- Fix typo in manual install
More information about the scm-commits
mailing list