X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-libwww.spec;h=fa25aa3d2e9d0253a1ddeaec7c64ed2dcbc0d4e0;hb=44760cc95efb17e24c47b38ee196b04591a90022;hp=853b5779c1024c15ce4278aeef1bc7868b5e0a05;hpb=9c46f5b64d01e562877032215a63b7b0f196c0e4;p=packages%2Fperl-libwww.git diff --git a/perl-libwww.spec b/perl-libwww.spec index 853b577..fa25aa3 100644 --- a/perl-libwww.spec +++ b/perl-libwww.spec @@ -1,84 +1,77 @@ -%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib) - -%define name perl-libwww -%define version 5.43 -%define release 1 -%define builddir $RPM_BUILD_DIR/libwww-perl-5.35 +# +# Conditional build: +# _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.44 -Release: 1.1 -Source: libwww-perl-%{version}.tar.gz -#Patch0: Makefile.patch -Group: Utilities/Text -Copyright: Free -Summary: Perl LIBWWW module -BuildPreReq: perl -BuildPrereq: perl-URI -BuildPrereq: perl-MIME-Base64 -BuildPrereq: perl-libnet -BuildPrereq: perl-HTML-Parser -BuildPrereq: perl-Digest-MD5 -Requires: perl -Requires: perl-HTML-Parser -Requires: perl-MIME-Base64 -Requires: perl-Digest-MD5 -Requires: perl-libnet -Requires: perl-URI -#Requires: perl-Data-Dumper -BuildRoot: /tmp/%{name}-%{version}-root +Version: 5.69 +Release: 2 +License: GPL +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz +# Source0-md5: b4567b6fae2b1733415a746956826e0c +BuildRequires: perl-devel >= 5.6 +BuildRequires: perl(Net::FTP) >= 2.58 +BuildRequires: perl-Digest-MD5 +BuildRequires: perl-HTML-Parser +BuildRequires: perl-MIME-Base64 +BuildRequires: perl-URI +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. + +%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 -q -n libwww-perl-%{version} %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL -make +%{__perl} Makefile.PL .packlist.new - mv .packlist.new .packlist -) - -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* +%{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc README* +%{perl_vendorlib}/*.pm +%{perl_vendorlib}/File/* +%{perl_vendorlib}/HTML/* +%{perl_vendorlib}/HTTP/* +%{perl_vendorlib}/Net/* +%{perl_vendorlib}/LWP +%{perl_vendorlib}/WWW/* %attr(755,root,root) %{_bindir}/* - -%dir %{perl_sitelib}/ -%{perl_sitelib}/*.pm -%{perl_sitelib}/*.pod -%{perl_sitelib}/File -%{perl_sitelib}/HTTP -%{perl_sitelib}/LWP -%{perl_sitelib}/WWW -%{perl_sitelib}/Bundle/* - -%{perl_sitearch}/auto/libwww-perl - -%{_mandir}/man*/* +%{_mandir}/man1/* +%{_mandir}/man3/[^B]*