Browse Source

add latest version of CPAN shell

Ralf S. Engelschall 20 years ago
parent
commit
5311c6d719
2 changed files with 42 additions and 10 deletions
  1. 12 0
      perl-module/perl-module.patch
  2. 30 10
      perl-module/perl-module.spec

+ 12 - 0
perl-module/perl-module.patch

@@ -15,3 +15,15 @@ Index: ExtUtils-PkgConfig-1.07/Makefile.PL
  WriteMakefile(
      # FIXME this doesn't work very well with native win32 perl
      'dist' => {
+Index: CPAN-1.80/Makefile.PL
+--- CPAN-1.80/Makefile.PL.orig	2005-12-25 09:23:51 +0100
++++ CPAN-1.80/Makefile.PL	2005-12-25 09:52:02 +0100
+@@ -93,7 +93,7 @@
+     my $cmd;
+     if ($cmd = MM->maybe_command($abs)) {
+       print "Importing PAUSE public key into your GnuPG keychain... ";
+-      system($cmd, '--quiet', '--import', <PAUSE*.pub>);
++      # system($cmd, '--quiet', '--import', <PAUSE*.pub>);
+       print "done!\n";
+       print "(You may wish to trust it locally with 'gpg --lsign-key 450F89EC')\n";
+       last;

+ 30 - 10
perl-module/perl-module.spec

@@ -38,6 +38,8 @@
 %define       V_module_corelist       2.02
 %define       V_module_info           0.290
 %define       V_module_locate         1.7
+%define       V_cpan                  1.80
+%define       V_cpan_wait             0.27
 
 #   package information
 Name:         perl-module
@@ -50,7 +52,7 @@ Class:        BASE
 Group:        Language
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20051214
+Release:      20051225
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-Depends-%{V_extutils_depends}.tar.gz
@@ -62,6 +64,8 @@ Source5:      http://www.cpan.org/modules/by-module/Module/Module-Build-%{V_modu
 Source6:      http://www.cpan.org/modules/by-module/Module/Module-CoreList-%{V_module_corelist}.tar.gz
 Source7:      http://www.cpan.org/modules/by-module/Module/Module-Info-%{V_module_info}.tar.gz
 Source8:      http://www.cpan.org/modules/by-module/Module/Module-Locate-%{V_module_locate}.tar.gz
+Source9:      http://www.cpan.org/modules/by-module/CPAN/CPAN-%{V_cpan}.tar.gz
+Source10:     http://www.cpan.org/modules/by-module/CPAN/CPAN-WAIT-%{V_cpan_wait}.tar.gz
 Patch0:       perl-module.patch
 
 #   build information
@@ -83,6 +87,8 @@ AutoReqProv:  no
     - Module::CoreList (%{V_module_corelist})
     - Module::Info (%{V_module_info})
     - Module::Locate (%{V_module_locate})
+    - CPAN (%{V_cpan})
+    - CPAN::WAIT (%{V_cpan_wait})
 
 %track
     prog perl-module:ExtUtils-Depends = {
@@ -125,6 +131,16 @@ AutoReqProv:  no
         url       = http://www.cpan.org/modules/by-module/Module/
         regex     = Module-Locate-(__VER__)\.tar\.gz
     }
+    prog perl-module:CPAN = {
+        version   = %{V_cpan}
+        url       = http://www.cpan.org/modules/by-module/CPAN/
+        regex     = CPAN-(__VER__)\.tar\.gz
+    }
+    prog perl-module:CPAN-WAIT = {
+        version   = %{V_cpan_wait}
+        url       = http://www.cpan.org/modules/by-module/CPAN/
+        regex     = CPAN-WAIT-(__VER__)\.tar\.gz
+    }
 
 %prep
     %setup -q -c
@@ -136,6 +152,8 @@ AutoReqProv:  no
     %setup -q -T -D -a 6
     %setup -q -T -D -a 7
     %setup -q -T -D -a 8
+    %setup -q -T -D -a 9
+    %setup -q -T -D -a 10
     %patch -p0
 
 %build
@@ -143,15 +161,17 @@ AutoReqProv:  no
 %install
     rm -rf $RPM_BUILD_ROOT
     %{l_prefix}/bin/perl-openpkg prepare
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
-    %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE0}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE1}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE2}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE3}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE4}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE5}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE6}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE7}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE8}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE9}  configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
     rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/instmodsh
     mv  $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps.pl \