%global _module_name Net-FTP-AutoReconnect Name: perl-%{_module_name} Version: 0.3 Release: 11%{?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 * Sat Jun 07 2014 Fedora Release Engineering - 0.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.3-9 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 11 2012 Petr Pisar - 0.3-6 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jul 22 2011 Petr Sabata - 0.3-4 - Perl mass rebuild * Mon Jul 18 2011 Bernard Johnson - 0.3-3 - remove duplicated doc spec * Sun Jul 17 2011 Bernard Johnson - 0.3-2 - add test cases for doc * Fri Jul 08 2011 Bernard Johnson - 0.3-1 - initial package