Name: perl-Mail-IMAPClient
Version: 2.2.9
Release: 4%{?dist}
Summary: An IMAP Client API
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Mail-IMAPClient/
Source0: http://search.cpan.org/CPAN/authors/id/D/DJ/DJKERNEN/Mail-IMAPClient-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker), perl(IO::Socket), perl(constant), perl(Socket)
BuildRequires: perl(IO::File), perl(IO::Select), perl(Fcntl), perl(Errno), perl(Carp)
BuildRequires: perl(Data::Dumper), perl(Parse::RecDescent), perl(Test::More)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module provides perl routines that simplify a sockets connection
to and an IMAP conversation with an IMAP server.
%prep
%setup -q -n Mail-IMAPClient-%{version}
%build
yes n | %{__perl} Makefile.PL INSTALLDIRS=vendor
make
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find examples -type f -exec chmod -x {} 2>/dev/null ';'
find examples -type f -exec sed -i 's#/usr/local/bin/perl#/usr/bin/perl#' {} 2>/dev/null ';'
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
chmod -x $RPM_BUILD_ROOT%{perl_vendorlib}/Mail/IMAPClient/BodyStructure.pm
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc docs/ examples/
%{perl_vendorlib}/Mail/
%{_mandir}/man3/*.3*
%changelog
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.9-4
- license tag fix
* Mon Apr 9 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.9-3
- set examples as non-exec, fix intepreter
* Wed Apr 4 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.9-2
- add docs/ and examples/ as %%doc
* Mon Apr 2 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.9-1
- Initial package for Fedora