Files
perl-File-Fetch/perl-File-Fetch.spec

86 lines
2.7 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-File-Fetch
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-File-Fetch
Version: 0.32
Release: 0
Summary: Generic file fetching code
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/File-Fetch-%{version}.tar.gz
Url: http://search.cpan.org/dist/File-Fetch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(IPC::Cmd) >= 0.42
BuildRequires: perl(Locale::Maketext::Simple)
BuildRequires: perl(Module::Load::Conditional) >= 0.04
BuildRequires: perl(Params::Check) >= 0.07
BuildRequires: perl(Test::More)
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
%{perl_vendorlib}/File/Fetch.pm
%dir %{perl_vendorarch}/auto/File
%{perl_vendorarch}/auto/File/Fetch
%doc %{perl_man3dir}/File::Fetch.%{perl_man3ext}%{ext_man}
%changelog