commit 1dca47b11af7a1c314a13aefb5ec0c30da29a9ea Author: Bernard Johnson <bjohnson@xxxxxxxxxxxx> Date: Wed Jul 20 11:51:41 2011 -0600 initial import .gitignore | 1 + perl-Net-FTP-AutoReconnect.spec | 66 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..821d2d2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Net-FTP-AutoReconnect-0.3.tar.gz diff --git a/perl-Net-FTP-AutoReconnect.spec b/perl-Net-FTP-AutoReconnect.spec new file mode 100644 index 0000000..997d207 --- /dev/null +++ b/perl-Net-FTP-AutoReconnect.spec @@ -0,0 +1,66 @@ +%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@xxxxxxxxxxxx> - 0.3-3 +- remove duplicated doc spec + +* Sun Jul 17 2011 Bernard Johnson <bjohnson@xxxxxxxxxxxx> - 0.3-2 +- add test cases for doc + +* Fri Jul 08 2011 Bernard Johnson <bjohnson@xxxxxxxxxxxx> - 0.3-1 +- initial package diff --git a/sources b/sources index e69de29..babc967 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0e25887641efe59b6fd2dd6964fb77a7 Net-FTP-AutoReconnect-0.3.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel