commit ba1721f6df404d4114e848f7b62a80398a54183d Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Mon Mar 21 18:40:15 2011 +0100 Import .gitignore | 1 + perl-WWW-RobotRules.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..c1343a3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/WWW-RobotRules-6.01.tar.gz diff --git a/perl-WWW-RobotRules.spec b/perl-WWW-RobotRules.spec new file mode 100644 index 0000000..507afbb --- /dev/null +++ b/perl-WWW-RobotRules.spec @@ -0,0 +1,58 @@ +Name: perl-WWW-RobotRules +Version: 6.01 +Release: 1%{?dist} +Summary: Database of robots.txt-derived permissions +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/WWW-RobotRules/ +Source0: http://www.cpan.org/authors/id/G/GA/GAAS/WWW-RobotRules-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(AnyDBM_File) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Fcntl) +BuildRequires: perl(URI) >= 1.10 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(AnyDBM_File) +Requires: perl(Fcntl) +Requires: perl(URI) >= 1.10 +Conflicts: perl-libwww-perl < 6 + +# Remove underspecified dependencies +%filter_from_requires /^perl(URI)\s*$/d +# Do not provide private imlementation of abstract class methods +%filter_from_provides /^perl(WWW::RobotRules::InCore)/d +%filter_setup + +%description +This module parses /robots.txt files as specified in "A Standard for Robot +Exclusion", at <http://www.robotstxt.org/wc/norobots.html>. Webmasters can +use the /robots.txt file to forbid conforming robots from accessing parts +of their web site. + +%prep +%setup -q -n WWW-RobotRules-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +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/* + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Mar 17 2011 Petr Pisar <ppisar@xxxxxxxxxx> 6.01-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff +- Conflicts with perl-libwww-perl-5* and older diff --git a/sources b/sources index e69de29..0946980 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b1252da49727320a1b5e20b3521d2499 WWW-RobotRules-6.01.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel