X-Git-Url: https://git.pld-linux.org/?p=packages%2Fperl-libwww.git;a=blobdiff_plain;f=perl-libwww.spec;h=6af74870b2dc082aacbe69089377e6a75c405902;hp=ac7ef9c2027c8cb013fd479404606fac9e6e0e71;hb=40a14bd6a0b37262ab07f3047e12c805694aff1f;hpb=89fabf5725fa993cc868aeeac2268f383ebdb26f diff --git a/perl-libwww.spec b/perl-libwww.spec index ac7ef9c..6af7487 100644 --- a/perl-libwww.spec +++ b/perl-libwww.spec @@ -1,77 +1,132 @@ -%include /usr/lib/rpm/macros.perl +# +# Conditional build: +%bcond_with tests # perform "make test" (uses network) +# %define pdir WWW %define pnam libwww-perl -Summary: LIBWWW Perl module -Summary(cs): Modul LIBWWW pro Perl -Summary(da): Perlmodul LIBWWW -Summary(de): LIBWWW Perl Modul -Summary(es): Módulo de Perl LIBWWW -Summary(fr): Module Perl LIBWWW -Summary(it): Modulo di Perl LIBWWW -Summary(ja): LIBWWW Perl ¥â¥¸¥å¡¼¥ë -Summary(ko): LIBWWW ÆÞ ¸ðÁÙ -Summary(no): Perlmodul LIBWWW -Summary(pl): Modu³ Perla LIBWWW -Summary(pt): Módulo de Perl LIBWWW -Summary(pt_BR): Módulo Perl LIBWWW -Summary(ru): íÏÄÕÌØ ÄÌÑ Perl LIBWWW -Summary(sv): LIBWWW Perlmodul -Summary(uk): íÏÄÕÌØ ÄÌÑ Perl LIBWWW -Summary(zh_CN): LIBWWW Perl Ä£¿é +Summary: libwww-perl - a simple and consistent API to the World-Wide Web +Summary(pl.UTF-8): libwww-perl - prosty i logiczny API do WWW Name: perl-libwww -Version: 5.65 -Release: 5 -License: GPL +Version: 6.54 +Release: 1 +# same as perl +License: GPL v1+ or Artistic Group: Development/Languages/Perl -Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz -BuildRequires: perl >= 5.6 -BuildRequires: perl(Net::FTP) >= 2.58 +Source0: https://www.cpan.org/authors/id/O/OA/OALDERS/%{pnam}-%{version}.tar.gz +# Source0-md5: aea3e2a207b128371db0ef0f86229667 +URL: https://metacpan.org/release/libwww-perl +BuildRequires: perl-CPAN-Meta-Requirements >= 2.120_620 +BuildRequires: perl-devel >= 1:5.8.8 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: rpmbuild(macros) >= 1.745 +%if %{with tests} +BuildRequires: perl(Net::FTP) >= 2.58 BuildRequires: perl-Digest-MD5 -BuildRequires: perl-HTML-Parser -BuildRequires: perl-MIME-Base64 -BuildRequires: perl-URI +BuildRequires: perl-Encode >= 2.12 +BuildRequires: perl-Encode-Locale +BuildRequires: perl-File-Listing >= 6 +BuildRequires: perl-HTML-Parser >= 3.33 +BuildRequires: perl-HTTP-Cookies >= 6 +BuildRequires: perl-HTTP-Daemon >= 6.12 +BuildRequires: perl-HTTP-Date >= 6 +BuildRequires: perl-HTTP-Message >= 6.07 +BuildRequires: perl-HTTP-Negotiate >= 6 +BuildRequires: perl-LWP-MediaTypes >= 6 +BuildRequires: perl-MIME-Base64 >= 2.1 +BuildRequires: perl-Net-HTTP >= 6.18 +BuildRequires: perl-Test-Fatal +BuildRequires: perl-Test-Needs +BuildRequires: perl-Test-RequiresInternet +BuildRequires: perl-Test-Simple +BuildRequires: perl-URI >= 1.10 +BuildRequires: perl-WWW-RobotRules >= 6 BuildRequires: perl-libnet -BuildRequires: rpm-perlprov >= 3.0.3-18 +%endif +Requires: perl-File-Listing >= 6 +Requires: perl-HTTP-Cookies >= 6 +Requires: perl-HTTP-Daemon >= 6.12 +Requires: perl-HTTP-Date >= 6 +Requires: perl-HTTP-Message >= 6 +Requires: perl-HTTP-Negotiate >= 6 +Requires: perl-LWP-MediaTypes >= 6 +Requires: perl-MIME-Base64 >= 2.1 +Requires: perl-Net-HTTP >= 6.18 +Requires: perl-URI >= 1.10 +Requires: perl-WWW-RobotRules >= 6 +Provides: perl(LWP::Debug::TraceHTTP::Socket) = %{version} +Provides: perl(LWP::Protocol::http::Socket) = %{version} +Provides: perl(LWP::Protocol::http::SocketMethods) = %{version} +Obsoletes: perl-libwww-perl BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Obsoletes: perl-libwww-perl # modules not always required -%define _noautoreq "perl(HTML::Parse)" "perl(HTML::FormatPS)" "perl(HTML::FormatText)" "perl(HTTP::GHTTP)" "perl(IO::Socket::SSL)" "perl(Mail::Internet)" +%define _noautoreq_perl HTTP::GHTTP Authen::NTLM %description -LIBWWW is a collection of Perl modules which provides a simple and -consistent programming interface (API) to the World-Wide Web. +The libwww-perl collection is a set of Perl modules which provides a +simple and consistent application programming interface to the +World-Wide Web. The main focus of the library is to provide classes +and functions that allow you to write WWW clients. The library also +contain modules that are of more general use and even classes that +help you implement simple HTTP servers. -%description -l pl -LIBWWW jest kolekcj± modu³ów Perla, które dostaczaj± proste API do -WWW (World-Wide Web). +%description -l pl.UTF-8 +libwww-perl jest zbiorem modułów Perla, dostarczających prostego API +do WWW (World-Wide Web). Głównym zadaniem biblioteki jest +udostępnianie klas i funkcji, pozwalających na pisanie klientów WWW. +Biblioteka zawiera także moduły bardziej ogólnego przeznaczenia, a +nawet klasy, pozwalające na implementację prostego serwera HTTP. %prep %setup -q -n libwww-perl-%{version} %build -perl Makefile.PL $RPM_BUILD_ROOT%{_mandir}/man1/$file.1p +done +%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/libwww/*.pod %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc README TODO -%{perl_sitelib}/*.pm -%{perl_sitelib}/File/* -%{perl_sitelib}/HTML/* -%{perl_sitelib}/HTTP/* -%{perl_sitelib}/Net/* -%{perl_sitelib}/LWP -%{perl_sitelib}/WWW/* -%attr(755,root,root) %{_bindir}/* -%{_mandir}/man1/* -%{_mandir}/man3/[^B]* +%doc Changes README.SSL +%attr(755,root,root) %{_bindir}/GET +%attr(755,root,root) %{_bindir}/HEAD +%attr(755,root,root) %{_bindir}/POST +%attr(755,root,root) %{_bindir}/lwp-* +%{perl_vendorlib}/LWP.pm +%{perl_vendorlib}/LWP/Authen +%{perl_vendorlib}/LWP/ConnCache.pm +%{perl_vendorlib}/LWP/Debug.pm +%dir %{perl_vendorlib}/LWP/Debug +%{perl_vendorlib}/LWP/Debug/TraceHTTP.pm +%{perl_vendorlib}/LWP/DebugFile.pm +%{perl_vendorlib}/LWP/MemberMixin.pm +%{perl_vendorlib}/LWP/Protocol.pm +%{perl_vendorlib}/LWP/Protocol +%{perl_vendorlib}/LWP/RobotUA.pm +%{perl_vendorlib}/LWP/Simple.pm +%{perl_vendorlib}/LWP/UserAgent.pm +%{_mandir}/man1/GET.1p* +%{_mandir}/man1/HEAD.1p* +%{_mandir}/man1/POST.1p* +%{_mandir}/man1/lwp-*.1p* +%{_mandir}/man3/LWP*.3pm* +%{_mandir}/man3/libwww::lwpcook.3pm* +%{_mandir}/man3/libwww::lwptut.3pm*