3 %bcond_without tests # do not perform "make test"
6 %define pnam Google-PageRank
7 Summary: WWW::Google::PageRank - Query Google pagerank of page
8 Summary(pl.UTF-8): WWW::Google::PageRank - zapytanie o ranking strony w Google
9 Name: perl-WWW-Google-PageRank
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/WWW/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 16437cb7f0f12c3b8529600a93140f38
17 URL: http://search.cpan.org/dist/WWW-Google-PageRank/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(LWP::UserAgent)
22 BuildRequires: perl(URI::Escape)
23 BuildRequires: perl-URI
24 BuildRequires: perl-libwww
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The WWW::Google::PageRank is a class implementing a interface for
31 querying Google pagerank.
33 To use it, you should create WWW::Google::PageRank object and use
34 its method get(), to query page rank of URL.
36 It uses LWP::UserAgent for making request to Google.
38 %description -l pl.UTF-8
39 WWW::Google::PageRank to klasa implementująca interfejs do odpytywania
40 Google o ranking strony.
42 Aby go użyć, należy utworzyć obiekt WWW::Google::PageRank i użyć jego
43 metody get() do zapytania o ranking strony o podanym URL-u.
45 Klasa używa LWP::UserAgent do wykonywania zapytań do serwisu Google.
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/WWW/Google/*.pm