File perl-WWW-Search-AOL.spec of Package perl-WWW-Search-AOL

# norootforbuild

%define real_name WWW-Search-AOL
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
%define perl_archlib %(eval "`perl -V:archlib`"; echo $archlib)
%define perl_privlib %(eval "`perl -V:privlib`"; echo $privlib)
%define maketest 0

%define _packager Holger Manthey <holger.manthey@bertelsmann.de>

Name:      perl-%{real_name}
Summary:   WWW::Search::AOL - backend for searching AOL
Version:   0.0103
Release:   1
License:   GPL
Packager:  %{_packager}
Group:     Applications/CPAN
Url:       http://www.cpan.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Source0:   http://search.cpan.org/CPAN/authors/id/M/MT/MTHURN/%{real_name}-%{version}.tar.gz
AutoReqProv:    on

Requires:  perl-WWW-Search
BuildRequires: perl-WWW-Search
BuildRequires:  perl(ExtUtils::MakeMaker)
%if 0%{?fedora_version}
BuildRequires:  perl-devel
%endif

%description
This class is a AOL specialization of WWW::Search. It handles making and interpreting AOL searches using http://search.aol.com/.
This class exports no public interface; all interaction should be done through WWW::Search objects.

AUTHOR
------
Shlomi Fish, <shlomif@iglu.org.il>
Funded by http://www.deviatemedia.com/ and http://www.redtreesystems.com/.


%prep
%setup -q -n %{real_name}-%{version}


%build
CFLAGS="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
%{__make}


%check
%if %maketest
%{__make} test
%endif


%install
%if 0%{?suse_version}
%perl_make_install
%perl_process_packlist
%else
make DESTDIR=$RPM_BUILD_ROOT install_vendor
find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {}
find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null
%endif
find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" |xargs -i rm -f {}


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%doc Changes README
%{perl_vendorlib}/WWW/Search/*
%if 0%{?suse_version}
/var/adm/perl-modules/%{name}
%endif



%changelog
* Thu May 31 2012 Holger Manthey <holger.manthey@bertelsmann.de>
- remove perl-version require
* Sat Jul  4 2009 holger.manthey@bertelsmann.de
- Initial build.