1 | Name: perl-WWW-RobotRules
|
---|
2 | Version: 6.02
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Summary: Database of robots.txt-derived permissions
|
---|
5 | License: GPL+ or Artistic
|
---|
6 | Group: Development/Libraries
|
---|
7 | URL: http://search.cpan.org/dist/WWW-RobotRules/
|
---|
8 | Vendor: bww bitwise works GmbH
|
---|
9 | Source0: http://www.cpan.org/authors/id/G/GA/GAAS/WWW-RobotRules-%{version}.tar.gz
|
---|
10 | BuildArch: noarch
|
---|
11 | BuildRequires: perl-generators
|
---|
12 | BuildRequires: perl(AnyDBM_File)
|
---|
13 | BuildRequires: perl(Carp)
|
---|
14 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
15 | BuildRequires: perl(Fcntl)
|
---|
16 | BuildRequires: perl(URI) >= 1.10
|
---|
17 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
---|
18 | Requires: perl(URI) >= 1.10
|
---|
19 | Conflicts: perl-libwww-perl < 6
|
---|
20 |
|
---|
21 | # Remove underspecified dependencies
|
---|
22 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(URI\\)$
|
---|
23 | # Do not provide private imlementation of abstract class methods
|
---|
24 | %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(WWW::RobotRules::InCore\\)
|
---|
25 |
|
---|
26 | %description
|
---|
27 | This module parses /robots.txt files as specified in "A Standard for Robot
|
---|
28 | Exclusion", at <http://www.robotstxt.org/wc/norobots.html>. Webmasters can
|
---|
29 | use the /robots.txt file to forbid conforming robots from accessing parts
|
---|
30 | of their web site.
|
---|
31 |
|
---|
32 | %prep
|
---|
33 | %setup -q -n WWW-RobotRules-%{version}
|
---|
34 |
|
---|
35 | %build
|
---|
36 | %{__perl} Makefile.PL INSTALLDIRS=vendor
|
---|
37 | make %{?_smp_mflags}
|
---|
38 | make manifypods
|
---|
39 |
|
---|
40 | %install
|
---|
41 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
---|
42 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
---|
43 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
---|
44 | %{_fixperms} $RPM_BUILD_ROOT/*
|
---|
45 |
|
---|
46 | %check
|
---|
47 | #make test
|
---|
48 |
|
---|
49 | %files
|
---|
50 | %doc Changes README
|
---|
51 | %{perl_vendorlib}/*
|
---|
52 | %{_mandir}/man3/*
|
---|
53 |
|
---|
54 | %changelog
|
---|
55 | * Fri Feb 23 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 6.02-1
|
---|
56 | - initial version
|
---|