|
|
16ea06a |
%global base_version 2.10
|
|
|
16ea06a |
|
|
|
0407bc3 |
Name: perl-CPAN
|
|
|
16ea06a |
Version: 2.11
|
|
|
1ef7fc5 |
Release: 348%{?dist}
|
|
|
0407bc3 |
Summary: Query, download and build perl modules from CPAN sites
|
|
|
0407bc3 |
License: GPL+ or Artistic
|
|
|
0407bc3 |
Group: Development/Libraries
|
|
|
0407bc3 |
URL: http://search.cpan.org/dist/CPAN/
|
|
|
16ea06a |
Source0: http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-%{base_version}.tar.gz
|
|
|
16ea06a |
# Unbundled from perl 5.21.11
|
|
|
16ea06a |
Patch0: CPAN-2.10-Upgrade-to-2.11.patch
|
|
|
4a3fce6 |
# Create site paths for the first time, bug #1158873, CPAN RT#99905
|
|
|
16ea06a |
Patch1: CPAN-2.11-Attemp-to-create-site-library-directories-on-first-t.patch
|
|
|
797343e |
# Change configuration directory name
|
|
|
16ea06a |
Patch2: CPAN-2.11-Replace-configuration-directory-string-with-a-marke.patch
|
|
|
0407bc3 |
BuildArch: noarch
|
|
|
1ef7fc5 |
BuildRequires: coreutils
|
|
|
1ef7fc5 |
BuildRequires: findutils
|
|
|
1ef7fc5 |
BuildRequires: make
|
|
|
0407bc3 |
BuildRequires: perl
|
|
|
0407bc3 |
BuildRequires: perl(Config)
|
|
|
0407bc3 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
0407bc3 |
BuildRequires: perl(File::Basename)
|
|
|
0407bc3 |
BuildRequires: perl(File::Path)
|
|
|
0407bc3 |
BuildRequires: perl(strict)
|
|
|
0407bc3 |
BuildRequires: perl(vars)
|
|
|
1ef7fc5 |
BuildRequires: sed
|
|
|
0407bc3 |
# Optional:
|
|
|
0407bc3 |
BuildRequires: perl(File::Spec)
|
|
|
e37183b |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
BuildRequires: perl(YAML::Syck)
|
|
|
e37183b |
%endif
|
|
|
0407bc3 |
|
|
|
0407bc3 |
# Run-time:
|
|
|
0407bc3 |
# Prefer Archive::Tar and Compress::Zlib over tar and gzip
|
|
|
0407bc3 |
BuildRequires: perl(Archive::Tar) >= 1.50
|
|
|
e37183b |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
BuildRequires: perl(Archive::Zip)
|
|
|
e37183b |
%endif
|
|
|
0407bc3 |
BuildRequires: perl(autouse)
|
|
|
0407bc3 |
BuildRequires: perl(base)
|
|
|
0407bc3 |
BuildRequires: perl(Carp)
|
|
|
0407bc3 |
BuildRequires: perl(constant)
|
|
|
0407bc3 |
BuildRequires: perl(Compress::Zlib)
|
|
|
0407bc3 |
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121
|
|
|
0407bc3 |
BuildRequires: perl(Cwd)
|
|
|
0407bc3 |
BuildRequires: perl(Data::Dumper)
|
|
|
0407bc3 |
# Devel::Size not used at tests
|
|
|
0407bc3 |
BuildRequires: perl(DirHandle)
|
|
|
0407bc3 |
BuildRequires: perl(Dumpvalue)
|
|
|
0407bc3 |
BuildRequires: perl(Exporter)
|
|
|
0407bc3 |
# ExtUtils::Manifest not used at tests
|
|
|
0407bc3 |
BuildRequires: perl(Fcntl)
|
|
|
0407bc3 |
BuildRequires: perl(File::Copy)
|
|
|
0407bc3 |
BuildRequires: perl(File::Find)
|
|
|
0407bc3 |
# File::HomeDir 0.65 not used at tests
|
|
|
0407bc3 |
BuildRequires: perl(File::Spec::Functions)
|
|
|
0407bc3 |
BuildRequires: perl(File::Temp) >= 0.16
|
|
|
0407bc3 |
BuildRequires: perl(FileHandle)
|
|
|
0407bc3 |
BuildRequires: perl(Getopt::Std)
|
|
|
0407bc3 |
# HTTP::Date is optional, prefer in-core Time::Local
|
|
|
0407bc3 |
# HTTP::Request is optional
|
|
|
0407bc3 |
BuildRequires: perl(HTTP::Tiny) >= 0.005
|
|
|
0407bc3 |
BuildRequires: perl(if)
|
|
|
0407bc3 |
BuildRequires: perl(lib)
|
|
|
0407bc3 |
# local::lib is optional
|
|
|
0407bc3 |
# LWP is optional, prefer HTTP::Tiny and Net::FTP
|
|
|
0407bc3 |
# LWP::UserAgent is optional
|
|
|
0407bc3 |
# Mac::BuildTools not needed
|
|
|
0407bc3 |
# Mac::Files not needed
|
|
|
0407bc3 |
# Module::Signature is optional
|
|
|
0407bc3 |
# Net::Config not used at tests
|
|
|
0407bc3 |
# Net::FTP not used at tests
|
|
|
0407bc3 |
BuildRequires: perl(Net::Ping)
|
|
|
0407bc3 |
BuildRequires: perl(overload)
|
|
|
0407bc3 |
BuildRequires: perl(POSIX)
|
|
|
0407bc3 |
BuildRequires: perl(Safe)
|
|
|
0407bc3 |
BuildRequires: perl(Sys::Hostname)
|
|
|
0407bc3 |
BuildRequires: perl(Term::ReadLine)
|
|
|
0407bc3 |
BuildRequires: perl(Text::ParseWords)
|
|
|
0407bc3 |
BuildRequires: perl(Text::Wrap)
|
|
|
0407bc3 |
# Time::Local not used at tests
|
|
|
0407bc3 |
# URI not used at tests
|
|
|
0407bc3 |
# URI::Escape not used at tests
|
|
|
0407bc3 |
# URI::URL 0.08 is optional
|
|
|
0407bc3 |
# User::pwent not used at tests
|
|
|
0407bc3 |
BuildRequires: perl(warnings)
|
|
|
0407bc3 |
# Optional:
|
|
|
0407bc3 |
BuildRequires: perl(CPAN::Meta) >= 2.110350
|
|
|
002c4be |
# Crypt::OpenPGP not used at tests
|
|
|
0407bc3 |
# Digest::MD5 not used at tests
|
|
|
0407bc3 |
BuildRequires: perl(Digest::SHA)
|
|
|
0407bc3 |
# Keep MIME::Base64 optional
|
|
|
0407bc3 |
BuildRequires: perl(Module::Build)
|
|
|
0407bc3 |
|
|
|
0407bc3 |
# Tests:
|
|
|
0407bc3 |
BuildRequires: perl(FindBin)
|
|
|
0407bc3 |
BuildRequires: perl(Pod::Usage)
|
|
|
0407bc3 |
BuildRequires: perl(Test::More)
|
|
|
0407bc3 |
|
|
|
0407bc3 |
# Optional tests:
|
|
|
0407bc3 |
BuildRequires: %{_bindir}/gpg
|
|
|
0407bc3 |
# Digest::SHA1 not needed if Digest::SHA is available
|
|
|
0407bc3 |
# Digest::SHA::PurePerl not needed if Digest::SHA is available
|
|
|
e37183b |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
BuildRequires: perl(Expect)
|
|
|
e37183b |
%endif
|
|
|
0407bc3 |
BuildRequires: perl(Hash::Util)
|
|
|
0407bc3 |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
# Kwalify not yet packaged
|
|
|
0407bc3 |
BuildRequires: perl(Module::Signature) >= 0.66
|
|
|
0407bc3 |
BuildRequires: perl(Perl::Version)
|
|
|
0407bc3 |
%endif
|
|
|
0407bc3 |
BuildRequires: perl(Socket)
|
|
|
0407bc3 |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
BuildRequires: perl(Sort::Versions)
|
|
|
0407bc3 |
# Test::MinimumVersion not used
|
|
|
0407bc3 |
# Test::Perl::Critic not used
|
|
|
0407bc3 |
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
0407bc3 |
BuildRequires: perl(Test::Pod::Coverage) >= 0.18
|
|
|
0407bc3 |
BuildRequires: perl(YAML) >= 0.60
|
|
|
0407bc3 |
%endif
|
|
|
0407bc3 |
|
|
|
1ef7fc5 |
Requires: make
|
|
|
0407bc3 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
0407bc3 |
Requires: perl(Archive::Tar) >= 1.50
|
|
|
0407bc3 |
Requires: perl(CPAN::Meta::Requirements) >= 2.121
|
|
|
002c4be |
Requires: perl(Data::Dumper)
|
|
|
e37183b |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
Requires: perl(Devel::Size)
|
|
|
e37183b |
%endif
|
|
|
0407bc3 |
Requires: perl(ExtUtils::Manifest)
|
|
|
e37183b |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
Requires: perl(File::HomeDir) >= 0.65
|
|
|
e37183b |
%endif
|
|
|
0407bc3 |
Requires: perl(File::Temp) >= 0.16
|
|
|
0407bc3 |
Requires: perl(lib)
|
|
|
0407bc3 |
Requires: perl(Net::Config)
|
|
|
0407bc3 |
Requires: perl(Net::FTP)
|
|
|
0407bc3 |
Requires: perl(POSIX)
|
|
|
0407bc3 |
Requires: perl(Term::ReadLine)
|
|
|
0407bc3 |
Requires: perl(Time::Local)
|
|
|
e37183b |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
Requires: perl(URI)
|
|
|
0407bc3 |
Requires: perl(URI::Escape)
|
|
|
e37183b |
%endif
|
|
|
0407bc3 |
Requires: perl(User::pwent)
|
|
|
0407bc3 |
# Optional but higly recommended:
|
|
|
0407bc3 |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
Requires: perl(Archive::Zip)
|
|
|
0407bc3 |
Requires: perl(Compress::Bzip2)
|
|
|
0407bc3 |
Requires: perl(CPAN::Meta) >= 2.110350
|
|
|
0407bc3 |
%endif
|
|
|
0407bc3 |
Requires: perl(Compress::Zlib)
|
|
|
0407bc3 |
Requires: perl(Digest::MD5)
|
|
|
3943e49 |
# CPAN encourages Digest::SHA strongly because of integrity checks
|
|
|
0407bc3 |
Requires: perl(Digest::SHA)
|
|
|
0407bc3 |
Requires: perl(Dumpvalue)
|
|
|
0407bc3 |
Requires: perl(ExtUtils::CBuilder)
|
|
|
3943e49 |
%if ! %{defined perl_bootstrap}
|
|
|
3943e49 |
# Avoid circular deps local::lib -> Module::Install -> CPAN when bootstraping
|
|
|
3943e49 |
# local::lib recommended by CPAN::FirstTime default choice, bug #1122498
|
|
|
3943e49 |
Requires: perl(local::lib)
|
|
|
3943e49 |
%endif
|
|
|
0407bc3 |
Requires: perl(Module::Build)
|
|
|
e37183b |
%if !%{defined perl_bootstrap}
|
|
|
0407bc3 |
Requires: perl(Text::Glob)
|
|
|
e37183b |
%endif
|
|
|
3943e49 |
Provides: cpan = %{version}
|
|
|
0407bc3 |
|
|
|
0407bc3 |
# Filter non-Linux dependencies
|
|
|
0407bc3 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Mac::BuildTools\\)
|
|
|
0407bc3 |
# Filter under-specified dependencies
|
|
|
0407bc3 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(CPAN::Meta::Requirements\\)
|
|
|
0407bc3 |
|
|
|
0407bc3 |
|
|
|
0407bc3 |
%description
|
|
|
0407bc3 |
The CPAN module automates or at least simplifies the make and install of
|
|
|
0407bc3 |
perl modules and extensions. It includes some primitive searching
|
|
|
0407bc3 |
capabilities and knows how to use LWP, HTTP::Tiny, Net::FTP and certain
|
|
|
0407bc3 |
external download clients to fetch distributions from the net.
|
|
|
0407bc3 |
|
|
|
0407bc3 |
%prep
|
|
|
16ea06a |
%setup -q -n CPAN-%{base_version}
|
|
|
4a3fce6 |
%patch0 -p1
|
|
|
797343e |
%patch1 -p1
|
|
|
16ea06a |
%patch2 -p1
|
|
|
797343e |
# Change configuration name
|
|
|
797343e |
find -type f -exec sed -i -e 's/XCPANCONFIGNAMEX/cpan/g' {} \;
|
|
|
0407bc3 |
# Remove bundled modules
|
|
|
0407bc3 |
rm -r ./inc/*
|
|
|
0407bc3 |
sed -i -e '/inc\//d' MANIFEST
|
|
|
0407bc3 |
|
|
|
0407bc3 |
%build
|
|
|
0407bc3 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
0407bc3 |
make %{?_smp_mflags}
|
|
|
0407bc3 |
|
|
|
0407bc3 |
%install
|
|
|
0407bc3 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
0407bc3 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
0407bc3 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
0407bc3 |
|
|
|
0407bc3 |
%check
|
|
|
0407bc3 |
make test
|
|
|
0407bc3 |
|
|
|
0407bc3 |
%files
|
|
|
0407bc3 |
%doc Changes PAUSE*.pub README Todo
|
|
|
0407bc3 |
%{_bindir}/*
|
|
|
0407bc3 |
%{perl_vendorlib}/*
|
|
|
0407bc3 |
%{_mandir}/man1/*
|
|
|
0407bc3 |
%{_mandir}/man3/*
|
|
|
0407bc3 |
|
|
|
0407bc3 |
%changelog
|
|
|
1ef7fc5 |
* Tue Dec 15 2015 Petr Pisar <ppisar@redhat.com> - 2.11-348
|
|
|
1ef7fc5 |
- Require make package
|
|
|
1ef7fc5 |
|
|
|
9419eae |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11-347
|
|
|
9419eae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
9419eae |
|
|
|
2aea024 |
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-346
|
|
|
2aea024 |
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
2aea024 |
|
|
|
0c41945 |
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-345
|
|
|
0c41945 |
- Increase release to favour standalone package
|
|
|
0c41945 |
|
|
|
724f883 |
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.11-2
|
|
|
724f883 |
- Perl 5.22 rebuild
|
|
|
724f883 |
|
|
|
16ea06a |
* Wed May 06 2015 Petr Pisar <ppisar@redhat.com> - 2.11-1
|
|
|
16ea06a |
- 2.11 bump in order to dual-live with perl 5.22
|
|
|
16ea06a |
|
|
|
002c4be |
* Fri Mar 13 2015 Petr Pisar <ppisar@redhat.com> - 2.10-1
|
|
|
002c4be |
- 2.10 bump
|
|
|
002c4be |
|
|
|
797343e |
* Wed Jan 28 2015 Petr Pisar <ppisar@redhat.com> - 2.05-309
|
|
|
797343e |
- Allow changing the configuration directory name
|
|
|
797343e |
|
|
|
4a3fce6 |
* Thu Oct 30 2014 Petr Pisar <ppisar@redhat.com> - 2.05-308
|
|
|
4a3fce6 |
- Create site paths for the first time (bug #1158873)
|
|
|
4a3fce6 |
|
|
|
3943e49 |
* Wed Sep 10 2014 Petr Pisar <ppisar@redhat.com> 2.05-307
|
|
|
3943e49 |
- Synchronize to perl.spec modifications
|
|
|
e37183b |
- Disable non-core modules when bootstrapping
|
|
|
3943e49 |
|
|
|
0407bc3 |
* Tue Apr 22 2014 Petr Pisar <ppisar@redhat.com> 2.05-1
|
|
|
0407bc3 |
- Specfile autogenerated by cpanspec 1.78.
|