Blob Blame History Raw
%global         _module_name Net-FTP-AutoReconnect

Name:           perl-%{_module_name}
Version:        0.3
Release:        3%{?dist}
Summary:        FTP client class with automatic reconnect on failure

Group:          Development/Libraries
License:        GPL+ or Artistic
URL:            http://search.cpan.org/~giff/%{_module_name}-%{version}/
Source0:        http://search.cpan.org/CPAN/authors/id/G/GI/GIFF/%{_module_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch

BuildRequires:  perl(ExtUtils::MakeMaker), perl(Test::More)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%{?perl_default_filter}

%description
This is a FTP client class with automatic reconnect on failure.


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


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} $RPM_BUILD_ROOT/*
chmod a-x $RPM_BUILD_ROOT/%{perl_vendorlib}/Net/FTP/*pm


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%doc t


%changelog
* Mon Jul 18 2011 Bernard Johnson <bjohnson@symetrix.com> - 0.3-3
- remove duplicated doc spec

* Sun Jul 17 2011 Bernard Johnson <bjohnson@symetrix.com> - 0.3-2
- add test cases for doc

* Fri Jul 08 2011 Bernard Johnson <bjohnson@symetrix.com> - 0.3-1
- initial package