X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-libwww.spec;h=87ce3f6edeb7594cb06550eb9c3c8cfa1dcf069a;hb=9f7ffdc52bdcb2ebfd89d8be4fb678065ec00640;hp=52975e4b76db8d25e5fcce5cd1978dda833ea80b;hpb=03d3a68a5862bc052fd1e2405e54bbc9af6b4da8;p=packages%2Fperl-libwww.git diff --git a/perl-libwww.spec b/perl-libwww.spec index 52975e4..87ce3f6 100644 --- a/perl-libwww.spec +++ b/perl-libwww.spec @@ -1,197 +1,79 @@ -%define name perl-libwww -%define version 5.35 -%define release 1 -%define builddir $RPM_BUILD_DIR/libwww-perl-5.35 -Name: %{name} -Version: %{version} + +# Conditional build: +%bcond_with tests # perform "make test" + +%include /usr/lib/rpm/macros.perl +%define pdir WWW +%define pnam libwww-perl +Summary: libwww-perl - a simple and consistent API to the World-Wide Web +Summary(pl): libwww-perl - prosty i logiczny API do WWW +Name: perl-libwww +Version: 5.77 Release: 1 -Vendor: Mailing List -Source: libwww-perl-5.35.tar.gz -Patch0: Makefile.patch -Group: Utilities/Text -Copyright: Free -Summary: Perl LIBWWW module -BuildRoot: /var/tmp/perl-libwww-root -Requires: perl-HTML-Parser, perl-MIME-Base64, perl-MD5, perl-libnet, perl-Data-Dumper +# same as Perl +License: GPL or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz +# Source0-md5: 7aed09ed638986764e229beb2cbad6b4 +BuildRequires: perl(Net::FTP) >= 2.58 +BuildRequires: perl-Digest-MD5 +BuildRequires: perl-HTML-Parser >= 3.33 +BuildRequires: perl-MIME-Base64 >= 2.1 +BuildRequires: perl-URI >= 1.10 +BuildRequires: perl-devel >= 5.8 +BuildRequires: perl-libnet +BuildRequires: rpm-perlprov >= 4.1-13 +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)' 'perl(Authen::NTLM)' %description -Libwww-perl 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. -%changelog -* Thu Jul 23 1998 Arkadiusz Mi¶kiewicz -- initial RPM release +%description -l pl +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 -n libwww-perl-5.35 +%setup -q -n libwww-perl-%{version} %build -perl Makefile.PL -patch -p1 < $RPM_SOURCE_DIR/Makefile.patch -make +%{__perl} Makefile.PL