3 # _with_tests - perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam libwww-perl
8 Summary: libwww-perl - a simple and consistent API to the World-Wide Web
9 Summary(pl): libwww-perl - prosty i logiczny API do WWW
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
16 # Source0-md5: 73dfc8c8134f61dea9ed74b658a65d73
17 BuildRequires: perl(Net::FTP) >= 2.58
18 BuildRequires: perl-Digest-MD5
19 BuildRequires: perl-HTML-Parser >= 3.33
20 BuildRequires: perl-MIME-Base64 >= 2.1
21 BuildRequires: perl-URI >= 1.10
22 BuildRequires: perl-devel >= 5.8
23 BuildRequires: perl-libnet
24 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Obsoletes: perl-libwww-perl
29 # modules not always required
30 %define _noautoreq 'perl(HTML::Parse)' 'perl(HTML::FormatPS)' 'perl(HTML::FormatText)' 'perl(HTTP::GHTTP)' 'perl(IO::Socket::SSL)' 'perl(Mail::Internet)' 'perl(Authen::NTLM)'
33 The libwww-perl collection is a set of Perl modules which provides a
34 simple and consistent application programming interface to the World-Wide
35 Web. The main focus of the library is to provide classes and functions
36 that allow you to write WWW clients. The library also contain modules
37 that are of more general use and even classes that help you implement
41 libwww-perl jest zbiorem modu³ów Perla, dostarczaj±cych prostego API
42 do WWW (World-Wide Web). G³ównym zadaniem biblioteki jest udostêpnianie
43 klas i funkcji, pozwalaj±cych na pisanie klientów WWW. Biblioteka zawiera
44 tak¿e modu³y bardziej ogólnego przeznaczenia, a nawet klasy, pozwalaj±ce
45 na implementacjê prostego serwera HTTP.
48 %setup -q -n libwww-perl-%{version}
51 %{__perl} Makefile.PL </dev/null \
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}/*.pm
70 %{perl_vendorlib}/File/*
71 %{perl_vendorlib}/HTML/*
72 %{perl_vendorlib}/HTTP/*
73 %{perl_vendorlib}/Net/*
75 %{perl_vendorlib}/WWW/*
76 %attr(755,root,root) %{_bindir}/*