]> git.pld-linux.org Git - packages/perl-libwww.git/blame - perl-libwww.spec
up to 6.52
[packages/perl-libwww.git] / perl-libwww.spec
CommitLineData
377e53b5 1#
5a01b76e 2# Conditional build:
3e6aff4b 3%bcond_with tests # perform "make test" (uses network)
377e53b5 4#
e6e936d4 5%define pdir WWW
6%define pnam libwww-perl
5a01b76e 7Summary: libwww-perl - a simple and consistent API to the World-Wide Web
5f0e6283 8Summary(pl.UTF-8): libwww-perl - prosty i logiczny API do WWW
9c46f5b6 9Name: perl-libwww
09716d87 10Version: 6.52
18bdcefd 11Release: 1
377e53b5 12# same as perl
13License: GPL v1+ or Artistic
2128e5d3 14Group: Development/Languages/Perl
36978b63 15Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/%{pnam}-%{version}.tar.gz
09716d87 16# Source0-md5: 7b5959aff7b11509bd87fa1de753f127
36978b63
JB
17URL: https://metacpan.org/release/libwww-perl
18BuildRequires: perl-CPAN-Meta-Requirements >= 2.120_620
3e6aff4b
JB
19BuildRequires: perl-devel >= 1:5.8.8
20BuildRequires: rpm-perlprov >= 4.1-13
36978b63 21BuildRequires: rpmbuild(macros) >= 1.745
3e6aff4b 22%if %{with tests}
44760cc9 23BuildRequires: perl(Net::FTP) >= 2.58
e3a00125 24BuildRequires: perl-Digest-MD5
3e6aff4b
JB
25BuildRequires: perl-Encode >= 2.12
26BuildRequires: perl-Encode-Locale
27BuildRequires: perl-File-Listing >= 6
372188ef 28BuildRequires: perl-HTML-Parser >= 3.33
3e6aff4b
JB
29BuildRequires: perl-HTTP-Cookies >= 6
30BuildRequires: perl-HTTP-Daemon >= 6
31BuildRequires: perl-HTTP-Date >= 6
36978b63 32BuildRequires: perl-HTTP-Message >= 6.07
3e6aff4b
JB
33BuildRequires: perl-HTTP-Negotiate >= 6
34BuildRequires: perl-LWP-MediaTypes >= 6
372188ef 35BuildRequires: perl-MIME-Base64 >= 2.1
ac3bd034 36BuildRequires: perl-Net-HTTP >= 6.18
36978b63 37BuildRequires: perl-Test-Fatal
63744f40
JB
38BuildRequires: perl-Test-Needs
39BuildRequires: perl-Test-RequiresInternet
40BuildRequires: perl-Test-Simple
372188ef 41BuildRequires: perl-URI >= 1.10
3e6aff4b 42BuildRequires: perl-WWW-RobotRules >= 6
2128e5d3 43BuildRequires: perl-libnet
3e6aff4b
JB
44%endif
45Requires: perl-File-Listing >= 6
46Requires: perl-HTTP-Cookies >= 6
47Requires: perl-HTTP-Daemon >= 6
48Requires: perl-HTTP-Date >= 6
49Requires: perl-HTTP-Message >= 6
50Requires: perl-HTTP-Negotiate >= 6
51Requires: perl-LWP-MediaTypes >= 6
52Requires: perl-MIME-Base64 >= 2.1
ac3bd034 53Requires: perl-Net-HTTP >= 6.18
3e6aff4b
JB
54Requires: perl-URI >= 1.10
55Requires: perl-WWW-RobotRules >= 6
770577b8
JP
56Provides: perl(LWP::Debug::TraceHTTP::Socket) = %{version}
57Provides: perl(LWP::Protocol::http::Socket) = %{version}
58Provides: perl(LWP::Protocol::http::SocketMethods) = %{version}
d2d1125d 59Obsoletes: perl-libwww-perl
fdae6112 60BuildArch: noarch
af046231 61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
03d3a68a 62
11092ec3 63# modules not always required
f387c65e 64%define _noautoreq_perl HTTP::GHTTP Authen::NTLM
11092ec3 65
03d3a68a 66%description
5a01b76e 67The libwww-perl collection is a set of Perl modules which provides a
d2d1125d
ER
68simple and consistent application programming interface to the
69World-Wide Web. The main focus of the library is to provide classes
70and functions that allow you to write WWW clients. The library also
71contain modules that are of more general use and even classes that
72help you implement simple HTTP servers.
03d3a68a 73
4dcbc77b
JR
74%description -l pl.UTF-8
75libwww-perl jest zbiorem modułów Perla, dostarczających prostego API
d2d1125d
ER
76do WWW (World-Wide Web). Głównym zadaniem biblioteki jest
77udostępnianie klas i funkcji, pozwalających na pisanie klientów WWW.
78Biblioteka zawiera także moduły bardziej ogólnego przeznaczenia, a
79nawet klasy, pozwalające na implementację prostego serwera HTTP.
1574779f 80
03d3a68a 81%prep
9c46f5b6 82%setup -q -n libwww-perl-%{version}
03d3a68a
AM
83
84%build
667f460d 85yes | %{__perl} Makefile.PL \
44760cc9 86 INSTALLDIRS=vendor
89fabf57 87%{__make}
03d3a68a 88
1724ad1d 89%{?with_tests:%{__make} test}
5a01b76e 90
03d3a68a 91%install
9c46f5b6 92rm -rf $RPM_BUILD_ROOT
9c46f5b6 93
3e6aff4b 94%{__make} pure_install \
60f953d0 95 DESTDIR=$RPM_BUILD_ROOT
9c46f5b6 96
328e8fcd 97for file in GET HEAD POST; do
98 ln -sf lwp-request $RPM_BUILD_ROOT%{_bindir}/$file
328e8fcd 99 echo '.so lwp-request.1p' > $RPM_BUILD_ROOT%{_mandir}/man1/$file.1p
100done
28788727 101%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/libwww/*.pod
328e8fcd 102
03d3a68a 103%clean
85a3c1ae 104rm -rf $RPM_BUILD_ROOT
03d3a68a
AM
105
106%files
e3a00125 107%defattr(644,root,root,755)
36978b63 108%doc Changes README.SSL
3e6aff4b
JB
109%attr(755,root,root) %{_bindir}/GET
110%attr(755,root,root) %{_bindir}/HEAD
111%attr(755,root,root) %{_bindir}/POST
112%attr(755,root,root) %{_bindir}/lwp-*
113%{perl_vendorlib}/LWP.pm
114%{perl_vendorlib}/LWP/Authen
115%{perl_vendorlib}/LWP/ConnCache.pm
116%{perl_vendorlib}/LWP/Debug.pm
e23e58c8
MK
117%dir %{perl_vendorlib}/LWP/Debug
118%{perl_vendorlib}/LWP/Debug/TraceHTTP.pm
3e6aff4b
JB
119%{perl_vendorlib}/LWP/DebugFile.pm
120%{perl_vendorlib}/LWP/MemberMixin.pm
121%{perl_vendorlib}/LWP/Protocol.pm
122%{perl_vendorlib}/LWP/Protocol
123%{perl_vendorlib}/LWP/RobotUA.pm
124%{perl_vendorlib}/LWP/Simple.pm
125%{perl_vendorlib}/LWP/UserAgent.pm
126%{_mandir}/man1/GET.1p*
127%{_mandir}/man1/HEAD.1p*
128%{_mandir}/man1/POST.1p*
129%{_mandir}/man1/lwp-*.1p*
130%{_mandir}/man3/LWP*.3pm*
e23e58c8
MK
131%{_mandir}/man3/libwww::lwpcook.3pm*
132%{_mandir}/man3/libwww::lwptut.3pm*
This page took 0.099414 seconds and 4 git commands to generate.