Name: perl-File-Fetch
Version: 0.10
Release: 1%{?dist}
Summary: Generic file fetching mechanism
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/File-Fetch/
Source0: http://www.cpan.org/authors/id/K/KA/KANE/File-Fetch-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(IPC::Cmd) >= 0.04
BuildRequires: perl(Locale::Maketext::Simple)
BuildRequires: perl(Module::Load::Conditional) >= 0.04
BuildRequires: perl(Params::Check) >= 0.07
Requires: perl(IPC::Cmd) >= 0.04
Requires: perl(Module::Load::Conditional) >= 0.04
Requires: perl(Params::Check) >= 0.07
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
File::Fetch is a generic file fetching mechanism.
%prep
%setup -q -n File-Fetch-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$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
%{?_with_check:make test}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGES README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sat Jan 27 2007 Steven Pritchard <steve@kspei.com> 0.10-1
- Update to 0.10.
- Use fixperms macro instead of our own chmod incantation.
* Sun Sep 17 2006 Steven Pritchard <steve@kspei.com> 0.08-2
- Rebuild.
* Sat Aug 05 2006 Steven Pritchard <steve@kspei.com> 0.08-1
- Update to 0.08.
* Thu Mar 23 2006 Steven Pritchard <steve@kspei.com> 0.07-1
- Specfile autogenerated by cpanspec 1.62.
- Fix License.
- Drop explicit Requires: perl(Locale::Maketext::Simple).
- Disable "make test" by default (requires Internet connectivity).