c62f7b
Name:           perl-File-Fetch
c62f7b
Version:        0.42
c62f7b
Release:        2%{?dist}
c62f7b
Summary:        Generic file fetching mechanism
c62f7b
License:        GPL+ or Artistic
c62f7b
Group:          Development/Libraries
c62f7b
URL:            http://search.cpan.org/dist/File-Fetch/
c62f7b
Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/File-Fetch-%{version}.tar.gz
c62f7b
BuildArch:      noarch
c62f7b
BuildRequires:  perl
c62f7b
BuildRequires:  perl(ExtUtils::MakeMaker)
c62f7b
BuildRequires:  perl(strict)
c62f7b
# Run-time:
c62f7b
BuildRequires:  perl(Carp)
c62f7b
BuildRequires:  perl(constant)
c62f7b
BuildRequires:  perl(Cwd)
c62f7b
BuildRequires:  perl(File::Basename)
c62f7b
BuildRequires:  perl(File::Copy)
c62f7b
BuildRequires:  perl(File::Path)
c62f7b
BuildRequires:  perl(File::Spec) >= 0.82
c62f7b
BuildRequires:  perl(File::Spec::Unix)
c62f7b
BuildRequires:  perl(File::Temp)
c62f7b
BuildRequires:  perl(FileHandle)
c62f7b
BuildRequires:  perl(IPC::Cmd) >= 0.42
c62f7b
BuildRequires:  perl(Locale::Maketext::Simple)
c62f7b
BuildRequires:  perl(Module::Load::Conditional) >= 0.04
c62f7b
BuildRequires:  perl(Params::Check) >= 0.07
c62f7b
BuildRequires:  perl(vars)
c62f7b
# Keep all downaloaders optional (LWP, curl, rsync etc.).
c62f7b
# Tests:
c62f7b
BuildRequires:  perl(Data::Dumper)
c62f7b
BuildRequires:  perl(lib)
c62f7b
BuildRequires:  perl(IO::Socket::INET)
c62f7b
BuildRequires:  perl(Test::More)
c62f7b
BuildRequires:  perl(warnings)
c62f7b
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
c62f7b
Requires:       perl(File::Spec) >= 0.82
c62f7b
Requires:       perl(IPC::Cmd) >= 0.42
c62f7b
Requires:       perl(Locale::Maketext::Simple)
c62f7b
Requires:       perl(Module::Load::Conditional) >= 0.04
c62f7b
Requires:       perl(Params::Check) >= 0.07
c62f7b
c62f7b
# Remove under-specified dependencies
c62f7b
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((File::Spec|IPC::Cmd|Module::Load::Conditional|Params::Check)\\)$
c62f7b
c62f7b
%description
c62f7b
File::Fetch allows you to fetch any file pointed to by a "ftp", "http",
c62f7b
"file", "git", or "rsync" URI by a number of different means.
c62f7b
c62f7b
%prep
c62f7b
%setup -q -n File-Fetch-%{version}
c62f7b
c62f7b
%build
c62f7b
perl Makefile.PL INSTALLDIRS=vendor
c62f7b
make %{?_smp_mflags}
c62f7b
c62f7b
%install
c62f7b
make pure_install DESTDIR=$RPM_BUILD_ROOT
c62f7b
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
c62f7b
%{_fixperms} $RPM_BUILD_ROOT/*
c62f7b
c62f7b
%check
c62f7b
make test
c62f7b
c62f7b
%files
c62f7b
%doc CHANGES README
c62f7b
%{perl_vendorlib}/*
c62f7b
%{_mandir}/man3/*
c62f7b
c62f7b
%changelog
c62f7b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.42-2
c62f7b
- Mass rebuild 2013-12-27
c62f7b
c62f7b
* Mon Apr 15 2013 Petr Pisar <ppisar@redhat.com> - 0.42-1
c62f7b
- 0.42 bump
c62f7b
c62f7b
* Fri Mar 15 2013 Petr Pisar <ppisar@redhat.com> 0.38-1
c62f7b
- Specfile autogenerated by cpanspec 1.78.