- Up to 5.837
[packages/perl-libwww.git] / perl-libwww.spec
CommitLineData
377e53b5 1#
5a01b76e 2# Conditional build:
1724ad1d 3%bcond_with tests # perform "make test"
377e53b5 4#
2128e5d3 5%include /usr/lib/rpm/macros.perl
e6e936d4 6%define pdir WWW
7%define pnam libwww-perl
5a01b76e 8Summary: libwww-perl - a simple and consistent API to the World-Wide Web
5f0e6283 9Summary(pl.UTF-8): libwww-perl - prosty i logiczny API do WWW
9c46f5b6 10Name: perl-libwww
64e31c17
CM
11Version: 5.837
12Release: 1
377e53b5 13# same as perl
14License: GPL v1+ or Artistic
2128e5d3 15Group: Development/Languages/Perl
7780020c 16Source0: http://www.cpan.org/modules/by-module/WWW/GAAS/%{pnam}-%{version}.tar.gz
64e31c17 17# Source0-md5: 9bbf1bce482b0bac98bb4f04253c03d0
f5ef0868 18URL: http://search.cpan.org/dist/libwww-perl/
44760cc9 19BuildRequires: perl(Net::FTP) >= 2.58
e3a00125 20BuildRequires: perl-Digest-MD5
372188ef
JB
21BuildRequires: perl-HTML-Parser >= 3.33
22BuildRequires: perl-MIME-Base64 >= 2.1
23BuildRequires: perl-URI >= 1.10
523d12e2 24BuildRequires: perl-devel >= 1:5.8.0
2128e5d3 25BuildRequires: perl-libnet
9dae4cd2 26BuildRequires: rpm-perlprov >= 4.1-13
46b84e6a 27Suggests: perl-IO-Socket-SSL
d2d1125d 28Obsoletes: perl-libwww-perl
fdae6112 29BuildArch: noarch
af046231 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
03d3a68a 31
11092ec3 32# modules not always required
60f953d0 33%define _noautoreq 'perl(HTML::Parse)' 'perl(HTML::FormatPS)' 'perl(HTML::FormatText)' 'perl(HTTP::GHTTP)' 'perl(IO::Socket::SSL)' 'perl(Mail::Internet)' 'perl(Authen::NTLM)'
11092ec3 34
03d3a68a 35%description
5a01b76e 36The libwww-perl collection is a set of Perl modules which provides a
d2d1125d
ER
37simple and consistent application programming interface to the
38World-Wide Web. The main focus of the library is to provide classes
39and functions that allow you to write WWW clients. The library also
40contain modules that are of more general use and even classes that
41help you implement simple HTTP servers.
03d3a68a 42
4dcbc77b
JR
43%description -l pl.UTF-8
44libwww-perl jest zbiorem modułów Perla, dostarczających prostego API
d2d1125d
ER
45do WWW (World-Wide Web). Głównym zadaniem biblioteki jest
46udostępnianie klas i funkcji, pozwalających na pisanie klientów WWW.
47Biblioteka zawiera także moduły bardziej ogólnego przeznaczenia, a
48nawet klasy, pozwalające na implementację prostego serwera HTTP.
1574779f 49
03d3a68a 50%prep
9c46f5b6 51%setup -q -n libwww-perl-%{version}
03d3a68a
AM
52
53%build
667f460d 54yes | %{__perl} Makefile.PL \
44760cc9 55 INSTALLDIRS=vendor
89fabf57 56%{__make}
03d3a68a 57
1724ad1d 58%{?with_tests:%{__make} test}
5a01b76e 59
03d3a68a 60%install
9c46f5b6 61rm -rf $RPM_BUILD_ROOT
9c46f5b6 62
60f953d0
JB
63%{__make} install \
64 DESTDIR=$RPM_BUILD_ROOT
9c46f5b6 65
328e8fcd 66for file in GET HEAD POST; do
67 ln -sf lwp-request $RPM_BUILD_ROOT%{_bindir}/$file
68 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/$file.1p
69 echo '.so lwp-request.1p' > $RPM_BUILD_ROOT%{_mandir}/man1/$file.1p
70done
71
03d3a68a 72%clean
85a3c1ae 73rm -rf $RPM_BUILD_ROOT
03d3a68a
AM
74
75%files
e3a00125 76%defattr(644,root,root,755)
5a01b76e 77%doc README*
9dae4cd2 78%{perl_vendorlib}/*.pm
79%{perl_vendorlib}/File/*
80%{perl_vendorlib}/HTML/*
81%{perl_vendorlib}/HTTP/*
82%{perl_vendorlib}/Net/*
83%{perl_vendorlib}/LWP
84%{perl_vendorlib}/WWW/*
9c46f5b6 85%attr(755,root,root) %{_bindir}/*
5b2bae56 86%{_mandir}/man1/*
60f953d0 87%{_mandir}/man3/[!B]*
This page took 0.077788 seconds and 4 git commands to generate.