commit 0407bc3ddbcae3bebce745cb5a79838975b7702e Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Wed Sep 10 12:52:04 2014 +0200 Import .gitignore | 1 + perl-CPAN.spec | 175 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 177 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..2e46f2b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/CPAN-2.05.tar.gz diff --git a/perl-CPAN.spec b/perl-CPAN.spec new file mode 100644 index 0000000..f96e6d1 --- /dev/null +++ b/perl-CPAN.spec @@ -0,0 +1,175 @@ +Name: perl-CPAN +Version: 2.05 +Release: 1%{?dist} +Summary: Query, download and build perl modules from CPAN sites +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/CPAN/ +Source0: http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Path) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Optional: +BuildRequires: perl(File::Spec) +BuildRequires: perl(YAML::Syck) + +# Run-time: +# Prefer Archive::Tar and Compress::Zlib over tar and gzip +BuildRequires: perl(Archive::Tar) >= 1.50 +BuildRequires: perl(Archive::Zip) +BuildRequires: perl(autouse) +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Compress::Zlib) +BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121 +BuildRequires: perl(Cwd) +BuildRequires: perl(Data::Dumper) +# Devel::Size not used at tests +BuildRequires: perl(DirHandle) +BuildRequires: perl(Dumpvalue) +BuildRequires: perl(Exporter) +# ExtUtils::Manifest not used at tests +BuildRequires: perl(Fcntl) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Find) +# File::HomeDir 0.65 not used at tests +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) >= 0.16 +BuildRequires: perl(FileHandle) +BuildRequires: perl(Getopt::Std) +# HTTP::Date is optional, prefer in-core Time::Local +# HTTP::Request is optional +BuildRequires: perl(HTTP::Tiny) >= 0.005 +BuildRequires: perl(if) +BuildRequires: perl(lib) +# local::lib is optional +# LWP is optional, prefer HTTP::Tiny and Net::FTP +# LWP::UserAgent is optional +# Mac::BuildTools not needed +# Mac::Files not needed +# Module::Signature is optional +# Net::Config not used at tests +# Net::FTP not used at tests +BuildRequires: perl(Net::Ping) +BuildRequires: perl(overload) +BuildRequires: perl(POSIX) +BuildRequires: perl(Safe) +BuildRequires: perl(Sys::Hostname) +BuildRequires: perl(Term::ReadLine) +BuildRequires: perl(Text::ParseWords) +BuildRequires: perl(Text::Wrap) +# Time::Local not used at tests +# URI not used at tests +# URI::Escape not used at tests +# URI::URL 0.08 is optional +# User::pwent not used at tests +BuildRequires: perl(warnings) +# Optional: +BuildRequires: perl(CPAN::Meta) >= 2.110350 +# Digest::MD5 not used at tests +BuildRequires: perl(Digest::SHA) +# Keep MIME::Base64 optional +BuildRequires: perl(Module::Build) + +# Tests: +BuildRequires: perl(FindBin) +BuildRequires: perl(Pod::Usage) +BuildRequires: perl(Test::More) + +# Optional tests: +BuildRequires: %{_bindir}/gpg +# Digest::SHA1 not needed if Digest::SHA is available +# Digest::SHA::PurePerl not needed if Digest::SHA is available +BuildRequires: perl(Expect) +BuildRequires: perl(Hash::Util) +%if !%{defined perl_bootstrap} +# Kwalify not yet packaged +BuildRequires: perl(Module::Signature) >= 0.66 +BuildRequires: perl(Perl::Version) +%endif +BuildRequires: perl(Socket) +%if !%{defined perl_bootstrap} +BuildRequires: perl(Sort::Versions) +# Test::MinimumVersion not used +# Test::Perl::Critic not used +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 0.18 +BuildRequires: perl(YAML) >= 0.60 +%endif + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Archive::Tar) >= 1.50 +Requires: perl(CPAN::Meta::Requirements) >= 2.121 +Requires: perl(Devel::Size) +Requires: perl(ExtUtils::Manifest) +Requires: perl(File::HomeDir) >= 0.65 +Requires: perl(File::Temp) >= 0.16 +Requires: perl(lib) +Requires: perl(Net::Config) +Requires: perl(Net::FTP) +Requires: perl(POSIX) +Requires: perl(Term::ReadLine) +Requires: perl(Time::Local) +Requires: perl(URI) +Requires: perl(URI::Escape) +Requires: perl(User::pwent) +# Optional but higly recommended: +%if !%{defined perl_bootstrap} +Requires: perl(Archive::Zip) +Requires: perl(Compress::Bzip2) +Requires: perl(CPAN::Meta) >= 2.110350 +%endif +Requires: perl(Compress::Zlib) +Requires: perl(Digest::MD5) +Requires: perl(Digest::SHA) +Requires: perl(Dumpvalue) +Requires: perl(ExtUtils::CBuilder) +Requires: perl(Module::Build) +Requires: perl(Text::Glob) + +# Filter non-Linux dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Mac::BuildTools\\) +# Filter under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(CPAN::Meta::Requirements\\) + + +%description +The CPAN module automates or at least simplifies the make and install of +perl modules and extensions. It includes some primitive searching +capabilities and knows how to use LWP, HTTP::Tiny, Net::FTP and certain +external download clients to fetch distributions from the net. + +%prep +%setup -q -n CPAN-%{version} +# Remove bundled modules +rm -r ./inc/* +sed -i -e '/inc\//d' MANIFEST + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes PAUSE*.pub README Todo +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Tue Apr 22 2014 Petr Pisar <ppisar@xxxxxxxxxx> 2.05-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..1a8e6ec 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +28e5aa7ea813a5916cae3b7e580d95a4 CPAN-2.05.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel