[perl-Net-FTP-RetrHandle/f14] update release
Bernard Johnson
bjohnson at fedoraproject.org
Wed Jul 20 19:51:36 UTC 2011
commit f859747f0a12a5ac80a49bad7c4b11d197823a3b
Author: Bernard Johnson <bjohnson at symetrix.com>
Date: Wed Jul 20 13:50:58 2011 -0600
update release
Conflicts:
perl-Net-FTP-RetrHandle.spec
perl-Net-FTP-RetrHandle.spec | 81 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/perl-Net-FTP-RetrHandle.spec b/perl-Net-FTP-RetrHandle.spec
new file mode 100644
index 0000000..dec5caa
--- /dev/null
+++ b/perl-Net-FTP-RetrHandle.spec
@@ -0,0 +1,81 @@
+%global _module_name Net-FTP-RetrHandle
+
+Name: perl-%{_module_name}
+Version: 0.2
+Release: 3%{?dist}
+Summary: Provides a file reading interface for reading files on a remote FTP server
+
+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
+Support for skipping the beginning of the file is implemented with the FTP REST
+command, which starts a retrieval at any point in the file. Support for
+skipping the end of the file is implemented with the FTP ABOR command, which
+stops the transfer. With these two commands and some careful tracking of the
+current file position, we're able to reliably emulate a seek/read pair, and get
+only the parts of the file that are actually read.
+
+This was originally designed for use with Archive::Zip; it's reliable enough
+that the table of contents and individual files can be extracted from a remote
+ZIP archive without downloading the whole thing.
+
+An interface compatible with IO::Handle is provided, along with a tie-based
+%prep
+%setup -q -n %{_module_name}-%{version}
+
+# remove any CVS static
+find t -type d -name CVS | xargs rm -rf
+
+%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/*
+
+
+%check
+# We can't allow tests that access the network under koji, so remove those
+# unless specified on the command line
+%{?!_with_net_tests: rm -f t/10remote.t}
+%{?!_with_net_tests: rm -f t/11tie.t}
+
+make test
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+# For noarch packages: vendorlib
+%{perl_vendorlib}/*
+%{_mandir}/man3/*.3*
+%doc TODO NEWS t
+
+
+%changelog
+* Wed Jul 20 2011 Bernard Johnson <bjohnson at symetrix.com> - 0.2-3
+- remove extraneous doc section
+
+* Sun Jul 17 2011 Bernard Johnson <bjohnson at symetrix.com> - 0.2-2
+- add additional documentation files including test cases
+
+* Fri Jul 08 2011 Bernard Johnson <bjohnson at symetrix.com> - 0.2-1
+- initial package
More information about the scm-commits
mailing list