3 %bcond_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 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/WWW/%{pnam}-%{version}.tar.gz
17 # Source0-md5: 8e3361f5682e0deea59f349b17c5ec1c
18 URL: http://search.cpan.org/dist/libwww-perl/
19 BuildRequires: perl(Net::FTP) >= 2.58
20 BuildRequires: perl-Digest-MD5
21 BuildRequires: perl-HTML-Parser >= 3.33
22 BuildRequires: perl-MIME-Base64 >= 2.1
23 BuildRequires: perl-URI >= 1.10
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: perl-libnet
26 BuildRequires: rpm-perlprov >= 4.1-13
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Obsoletes: perl-libwww-perl
31 # modules not always required
32 %define _noautoreq 'perl(HTML::Parse)' 'perl(HTML::FormatPS)' 'perl(HTML::FormatText)' 'perl(HTTP::GHTTP)' 'perl(IO::Socket::SSL)' 'perl(Mail::Internet)' 'perl(Authen::NTLM)'
35 The libwww-perl collection is a set of Perl modules which provides a
36 simple and consistent application programming interface to the World-Wide
37 Web. The main focus of the library is to provide classes and functions
38 that allow you to write WWW clients. The library also contain modules
39 that are of more general use and even classes that help you implement
43 libwww-perl jest zbiorem modu³ów Perla, dostarczaj±cych prostego API
44 do WWW (World-Wide Web). G³ównym zadaniem biblioteki jest udostêpnianie
45 klas i funkcji, pozwalaj±cych na pisanie klientów WWW. Biblioteka zawiera
46 tak¿e modu³y bardziej ogólnego przeznaczenia, a nawet klasy, pozwalaj±ce
47 na implementacjê prostego serwera HTTP.
50 %setup -q -n libwww-perl-%{version}
53 %{__perl} Makefile.PL </dev/null \
57 %{?with_tests:%{__make} test}
60 rm -rf $RPM_BUILD_ROOT
63 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorlib}/*.pm
72 %{perl_vendorlib}/File/*
73 %{perl_vendorlib}/HTML/*
74 %{perl_vendorlib}/HTTP/*
75 %{perl_vendorlib}/Net/*
77 %{perl_vendorlib}/WWW/*
78 %attr(755,root,root) %{_bindir}/*