X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-libwww.spec;h=a99e864e1ddc2f4f49d8046c9c002940e8dee56e;hb=27ec2906d9a77e8ec53fec0e88e9856b51d25eb0;hp=d72b6063b800ff22271af9b0297a47f581956fb0;hpb=2128e5d382fd99eb86ec050c685dc36197e1f253;p=packages%2Fperl-libwww.git diff --git a/perl-libwww.spec b/perl-libwww.spec index d72b606..a99e864 100644 --- a/perl-libwww.spec +++ b/perl-libwww.spec @@ -1,71 +1,77 @@ %include /usr/lib/rpm/macros.perl -Summary: Perl LIBWWW module -Summary(pl): Modu³ perla LIBWWW +%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 Ä£¿é Name: perl-libwww -Version: 5.44 -Release: 5 -Copyright: GPL +Version: 5.65 +Release: 4 +License: GPL Group: Development/Languages/Perl -Group(pl): Programowanie/Jêzyki/Perl -Source: libwww-perl-%{version}.tar.gz -Patch: perl-libwww-fix.patch -BuildRequires: rpm-perlprov -BuildRequires: perl >= 5.005_03-12 -%requires_eq perl -BuildRequires: perl-Crypt-SSLeay +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 BuildRequires: perl-Digest-MD5 BuildRequires: perl-HTML-Parser -BuildRequires: perl-HTML-Tree BuildRequires: perl-MIME-Base64 -BuildRequires: perl-MailTools BuildRequires: perl-URI BuildRequires: perl-libnet -%requires_eq perl -Requires: %{perl_sitearch} -BuildRoot: /tmp/%{name}-%{version}-root +BuildRequires: rpm-perlprov >= 3.0.3-18 +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)" %description -Libwww-perl is a collection of Perl modules which provides a simple -and consistent programming interface (API) to the World-Wide Web. +LIBWWW is a collection of Perl modules which provides a simple and +consistent programming interface (API) to the World-Wide Web. %description -l pl -Libwww-perl jest kolekcj± modu³ów Perla, które dostaczaj± proste -API do WWW (World-Wide Web). +LIBWWW jest kolekcj± modu³ów Perla, które dostaczaj± proste API do +WWW (World-Wide Web). %prep %setup -q -n libwww-perl-%{version} -%patch -p1 %build -perl Makefile.PL -make OPTIMIZE="$RPM_OPT_FLAGS" +perl Makefile.PL .packlist.new - mv .packlist.new .packlist -) - -gzip -9nf README TODO $RPM_BUILD_ROOT%{_mandir}/man{1,3}/* +%{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc {README,TODO}.gz +%doc README TODO %{perl_sitelib}/*.pm -%{perl_sitelib}/*.pod -%{perl_sitelib}/Bundle/* %{perl_sitelib}/File/* +%{perl_sitelib}/HTML/* %{perl_sitelib}/HTTP/* +%{perl_sitelib}/Net/* %{perl_sitelib}/LWP -%{perl_sitelib}/WWW -%{perl_sitearch}/auto/libwww-perl +%{perl_sitelib}/WWW/* %attr(755,root,root) %{_bindir}/* - -%{_mandir}/man*/* +%{_mandir}/man1/* +%{_mandir}/man3/*