%define module WWW-Search %define name perl-%{module} %define version 2.495 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} License: GPL or Artistic Summary: Virtual base class for WWW searches Group: Development/Perl URL: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/WWW/%{module}-%{version}.tar.bz2 %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl(Date::Manip) BuildRequires: perl(HTML::Tree) BuildRequires: perl(IO::Capture) >= 0.05 BuildRequires: perl(Test::File) BuildRequires: perl(Test::Inline) >= 0.16 BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(CGI) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description This class is the parent for all access methods supported by the WWW::Search library. This library implements a Perl API to web-based search engines. See README for a list of search engines currently supported, and for a lot of interesting high-level information about this distribution. Search results can be limited, and there is a pause between each request to avoid overloading either the client or the server. %prep %setup -q -n %{module}-%{version} for file in `find lib -type f` Changes README; do chmod 644 $file done perl -pi -e 's|/usr/local/bin/perl|/usr/bin/perl|' lib/WWW/Search/*.pm %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{_bindir}/* %{perl_vendorlib}/WWW %{_mandir}/*/* %changelog * Thu Aug 16 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.495-1mdv2008.0 + Revision: 64001 - new version * Thu Jul 05 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.494-1mdv2008.0 + Revision: 48657 - new version * Wed May 02 2007 Olivier Thauvin <nanardon@mandriva.org> 2.491-1mdv2008.0 + Revision: 20721 - 2.491 * Tue Aug 01 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.489-1mdv2007.0 - New version 2.489 - better summary and description * Mon Apr 24 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.488-1mdk - New release 2.488 - better sources URL - better buildrequires syntax * Tue Mar 21 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.487-2mdk - fix buildrequires * Fri Mar 17 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.487-1mdk - New release 2.487 * Thu Feb 09 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.486-1mdk - New release 2.486 * Mon Jan 16 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.485-1mdk - New release 2.485 - drop patch0 (merged upstream) * Tue Jan 03 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.484-2mdk - fix files encoding and perms * Tue Jan 03 2006 Guillaume Rousse <guillomovitch@mandriva.org> 2.484-1mdk - New release 2.484 - rediff patch0 * Thu Aug 18 2005 Guillaume Rousse <guillomovitch@mandriva.org> 2.479-1mdk - New release 2.479 * Sun Jul 31 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.476-2mdk - Fix BuildRequires * Thu Jul 14 2005 Oden Eriksson <oeriksson@mandriva.com> 2.476-1mdk - initial Mandriva package