2010-11-07 07:10:18 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-File-Fetch
|
|
|
|
Version: 0.26
|
|
|
|
Release: 0
|
|
|
|
Summary: Generic file fetching code
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/File-Fetch-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/File-Fetch
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-11-30 19:25:41 +00:00
|
|
|
%{perl_requires}
|
2010-11-07 07:10:18 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(File::Copy)
|
|
|
|
BuildRequires: perl(Locale::Maketext::Simple)
|
|
|
|
BuildRequires: perl(File::Spec) >= 0.82
|
|
|
|
BuildRequires: perl(IPC::Cmd) >= 0.42
|
|
|
|
BuildRequires: perl(Params::Check) >= 0.07
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(Module::Load::Conditional) >= 0.04
|
|
|
|
Requires: perl(File::Copy)
|
|
|
|
Requires: perl(Locale::Maketext::Simple)
|
|
|
|
Requires: perl(File::Spec) >= 0.82
|
|
|
|
Requires: perl(IPC::Cmd) >= 0.42
|
|
|
|
Requires: perl(Params::Check) >= 0.07
|
|
|
|
Requires: perl(File::Path)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(Module::Load::Conditional) >= 0.04
|
|
|
|
|
|
|
|
%description
|
|
|
|
File::Fetch is a generic file fetching mechanism.
|
|
|
|
It allows you to fetch any file pointed to by a "ftp", "http", "file", or
|
|
|
|
"rsync" uri by a number of different means.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "File-Fetch-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
# don't run tests, need an internet connection
|
|
|
|
#%check
|
|
|
|
#%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES README
|
|
|
|
%dir %{perl_vendorlib}/File
|
2010-11-07 07:25:36 +00:00
|
|
|
%{perl_vendorlib}/File/Fetch.pm
|
2010-11-07 07:10:18 +00:00
|
|
|
%dir %{perl_vendorarch}/auto/File
|
|
|
|
%{perl_vendorarch}/auto/File/Fetch
|
|
|
|
%doc %{perl_man3dir}/File::Fetch.%{perl_man3ext}%{ext_man}
|
|
|
|
|