]> git.pld-linux.org Git - SPECS.git/blob - perl-WWW-RobotRules-Parser.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / perl-WWW-RobotRules-Parser.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    WWW
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
10 Version:        0.04001
11 Release:        1
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
20 %if %{with tests}
21 BuildRequires:  perl-Test-Pod
22 BuildRequires:  perl-Test-Pod-Coverage
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
34
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.
42
43 %prep
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45
46 %build
47 %{__perl} Makefile.PL \
48         INSTALLDIRS=vendor
49
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} pure_install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Changes
66 %dir %{perl_vendorlib}/WWW/RobotRules
67 %{perl_vendorlib}/WWW/RobotRules/Parser.pm
68 %{_mandir}/man3/*
This page took 0.095372 seconds and 3 git commands to generate.