1 %include /usr/lib/rpm/macros.perl
2 Summary: Perl LIBWWW module
3 Summary(pl): Modu³ perla LIBWWW
8 Group: Development/Languages/Perl
9 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/WWW/libwww-perl-%{version}.tar.gz
10 BuildRequires: rpm-perlprov >= 3.0.3-18
11 BuildRequires: perl(Net::FTP) >= 2.58
12 BuildRequires: perl >= 5.6
13 BuildRequires: perl-Digest-MD5
14 BuildRequires: perl-HTML-Parser
15 BuildRequires: perl-MIME-Base64
16 BuildRequires: perl-URI
17 BuildRequires: perl-libnet
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes: perl-libwww-perl
22 # modules not always required
23 %define _noautoreq "perl(HTML::Parse)" "perl(HTML::FormatPS)" "perl(HTML::FormatText)" "perl(HTTP::GHTTP)" "perl(IO::Socket::SSL)" "perl(Mail::Internet)"
26 Libwww-perl is a collection of Perl modules which provides a simple
27 and consistent programming interface (API) to the World-Wide Web.
30 Libwww-perl jest kolekcj± modu³ów Perla, które dostaczaj± proste API
31 do WWW (World-Wide Web).
34 %setup -q -n libwww-perl-%{version}
37 perl Makefile.PL </dev/null
38 %{__make} OPTIMIZE="%{rpmcflags}"
41 rm -rf $RPM_BUILD_ROOT
43 %{__make} install DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
55 %{perl_sitelib}/Bundle/*
56 %{perl_sitelib}/File/*
57 %{perl_sitelib}/HTML/*
58 %{perl_sitelib}/HTTP/*
62 %attr(755,root,root) %{_bindir}/*