diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bd358f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/CPANPLUS-0.9138.tar.gz diff --git a/.perl-CPANPLUS.metadata b/.perl-CPANPLUS.metadata new file mode 100644 index 0000000..4eec941 --- /dev/null +++ b/.perl-CPANPLUS.metadata @@ -0,0 +1 @@ +2803a1b9c6d3e17f1aba54ec3e8f6f48e38cfc5e SOURCES/CPANPLUS-0.9138.tar.gz diff --git a/SOURCES/CPANPLUS-0.9142-RT-91273-Useless-downloading-03modlist.data.gz.patch b/SOURCES/CPANPLUS-0.9142-RT-91273-Useless-downloading-03modlist.data.gz.patch new file mode 100644 index 0000000..7a1ae49 --- /dev/null +++ b/SOURCES/CPANPLUS-0.9142-RT-91273-Useless-downloading-03modlist.data.gz.patch @@ -0,0 +1,57 @@ +From 68f75c070e1c77a63164a8d127ea775d0ddb62dc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 9 Dec 2013 19:52:01 +0000 +Subject: [PATCH] [RT#91273] Useless downloading 03modlist.data.gz +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Since 0.9136, dslip source 03modlist.data.gz is not parsed, so it's pointless to download it: + +sub __create_dslip_tree { + my $self = shift; + my %hash = @_; + my $conf = $self->configure_object; + + return {}; # Quick hack + [...] +} + +Attached patch disables downloading 03modlist.data.gz. + +Signed-off-by: Chris 'BinGOs' Williams +Signed-off-by: Petr Písař +--- + lib/CPANPLUS/Internals/Source.pm | 2 +- + t/03_CPANPLUS-Internals-Source.t | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/CPANPLUS/Internals/Source.pm b/lib/CPANPLUS/Internals/Source.pm +index f43dca5..05b9394 100644 +--- a/lib/CPANPLUS/Internals/Source.pm ++++ b/lib/CPANPLUS/Internals/Source.pm +@@ -307,7 +307,7 @@ sub _check_trees { + + my $uptodate = 1; # default return value + +- for my $name (qw[auth dslip mod]) { ++ for my $name (qw[auth mod]) { + for my $file ( $conf->_get_source( $name ) ) { + $self->__check_uptodate( + file => File::Spec->catfile( $path, $file ), +diff --git a/t/03_CPANPLUS-Internals-Source.t b/t/03_CPANPLUS-Internals-Source.t +index d6ad2ea..1acc48d 100644 +--- a/t/03_CPANPLUS-Internals-Source.t ++++ b/t/03_CPANPLUS-Internals-Source.t +@@ -35,7 +35,7 @@ my $modname = TEST_CONF_MODULE; + my $at = $cb->_author_tree; + + ### source files should be copied from the 'server' now +- for my $name (qw[auth mod dslip] ) { ++ for my $name (qw[auth mod] ) { + my $file = File::Spec->catfile( + $conf->get_conf('base'), + $conf->_get_source($name) +-- +1.8.3.1 + diff --git a/SPECS/perl-CPANPLUS.spec b/SPECS/perl-CPANPLUS.spec new file mode 100644 index 0000000..a6506d5 --- /dev/null +++ b/SPECS/perl-CPANPLUS.spec @@ -0,0 +1,145 @@ +%global cpan_version 0.9138 +Name: perl-CPANPLUS +# Keep 2-digit major varion to compete with perl.spec for history +Version: %(echo '%{cpan_version}' | sed 's/\(\...\)/\1./') +Release: 4%{?dist} +Summary: Ameliorated interface to the Comprehensive Perl Archive Network +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/CPANPLUS/ +Source0: http://www.cpan.org/authors/id/B/BI/BINGOS/CPANPLUS-%{cpan_version}.tar.gz +# Do not download 03modlist.data.gz, bug #1035782, CPAN RT#91273, in 0.9144 +Patch0: CPANPLUS-0.9142-RT-91273-Useless-downloading-03modlist.data.gz.patch +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(Config) +BuildRequires: perl(constant) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Spec) +BuildRequires: perl(FindBin) +BuildRequires: perl(Getopt::Long) +%if %{defined perl_bootstrap} +BuildRequires: perl(ExtUtils::MakeMaker) +# ExtUtils::Manifest not used +BuildRequires: perl(ExtUtils::MM_Unix) +# Module::Build not used +# YAML not used +%else +BuildRequires: perl(inc::Module::Install) +%endif +BuildRequires: perl(lib) +BuildRequires: perl(Locale::Maketext::Simple) +BuildRequires: perl(Module::Loaded) +# Run-time: +BuildRequires: perl(Archive::Extract) +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Cwd) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(DBD::SQLite) +BuildRequires: perl(DBIx::Simple) +BuildRequires: perl(Exporter) +BuildRequires: perl(IPC::Cmd) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Fetch) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Glob) +BuildRequires: perl(FileHandle) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec::Unix) +BuildRequires: perl(File::stat) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Log::Message) +BuildRequires: perl(Module::CoreList) >= 2.22 +BuildRequires: perl(Module::Load) +BuildRequires: perl(Module::Load::Conditional) +BuildRequires: perl(Module::Pluggable) +BuildRequires: perl(Object::Accessor) +BuildRequires: perl(overload) +BuildRequires: perl(Package::Constants) +BuildRequires: perl(Params::Check) +BuildRequires: perl(Parse::CPAN::Meta) +BuildRequires: perl(strict) +BuildRequires: perl(Term::ReadLine) +BuildRequires: perl(Term::UI) +BuildRequires: perl(Tie::Hash) +BuildRequires: perl(Time::Local) +BuildRequires: perl(vars) +BuildRequires: perl(version) +BuildRequires: perl(warnings) +# Tests: +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# lib/CPANPLUS/Internals.pm:465 +Requires: perl(File::Glob) +# lib/CPANPLUS/Internals/Utils.pm:68 +Requires: perl(File::Path) +# lib/CPANPLUS/Internals/Utils.pm:323 +Requires: perl(File::stat) +# bin/cpanp-boxed:10 +Requires: perl(FindBin) +# lib/CPANPLUS/Module.pm:477 +Requires: perl(Module::CoreList) >= 2.22 +# lib/CPANPLUS/Configure.pm:181 +Requires: perl(Module::Pluggable) + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Your::Module::Here|Test)\\) + +%description +The CPANPLUS library is an API to the CPAN mirrors and a collection of +interactive shells, command line programs, etc., that use this API. + +%prep +%setup -q -n CPANPLUS-%{cpan_version} +%patch0 -p1 +# Remove bundled modules +%if !%{defined perl_bootstrap} +rm -rf inc +sed -i -e '/^inc\//d' MANIFEST +%else +rm -rf inc/bundle +sed -i -e '/^inc\/bundle\//d' MANIFEST +%endif +# Fix shebangs +sed -i -e '1i#!%{__perl}' bin/cpanp-run-perl + +%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 ChangeLog README +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Fri Dec 27 2013 Daniel Mach - 0.91.38-4 +- Mass rebuild 2013-12-27 + +* Wed Dec 11 2013 Petr Pisar - 0.91.38-3 +- Do not download 03modlist.data.gz (bug #1035782) + +* Fri Jul 12 2013 Petr Pisar - 0.91.38-2 +- Specify all dependencies + +* Tue May 21 2013 Petr Pisar - 0.91.38-1 +- 0.9138 bump + +* Mon Apr 29 2013 Petr Pisar - 0.91.36-1 +- 0.9136 bump + +* Thu Apr 04 2013 Petr Pisar - 0.91.34-2 +- Keep bundled inc::Module::Install modules at boot-strap (bug #947489) + +* Thu Jan 24 2013 Petr Pisar 0.91.34-1 +- Specfile autogenerated by cpanspec 1.78.