3 %bcond_without tests # do not perform "make test"
6 %define pnam RobotRules-Parser
7 Summary: WWW::RobotRules::Parser - parse robots.txt
8 Summary(pl.UTF-8): WWW::RobotRules::Parser - analiza robots.txt
9 Name: perl-WWW-RobotRules-Parser
12 # "same as perl" (as in META.yml)
13 License: GPLv1 or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: bc56361f48f1199f7252ca2e1d1af7dd
17 URL: http://search.cpan.org/dist/WWW-RobotRules-Parser/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Pod
22 BuildRequires: perl-Test-Pod-Coverage
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 WWW::RobotRules::Parser allows you to simply parse robots.txt files as
29 described in <http://www.robotstxt.org/wc/norobots.html>. Unlike
30 WWW::RobotRules (which is very cool), this module does not take into
31 consideration your user agent name when parsing. It just parses the
32 structure and returns a hash containing the whole set of rules. You
33 can then use this to do whatever you like with it.
35 %description -l pl.UTF-8
36 WWW::RobotRules::Parser pozwala na proste analizowanie pliku
37 robots.txt zgodnie z opisem w
38 <http://www.robotstxt.org/wc/norobots.html>, a ponadto, w
39 przeciwieństwie do WWW::RobotRules, ten moduł nie analizuje podanej
40 nazwy przegladrki, a jedynie strukturę i zwraca tablicę asocjacyjną z
41 pełnym zestawem regułek.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
57 %{__make} pure_install \
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %dir %{perl_vendorlib}/WWW/RobotRules
67 %{perl_vendorlib}/WWW/RobotRules/Parser.pm