Browse Source

add 'version' module for use by perl-dbi:Class-DBI and others

Ralf S. Engelschall 19 years ago
parent
commit
04fc6ff123
1 changed files with 11 additions and 1 deletions
  1. 11 1
      perl-module/perl-module.spec

+ 11 - 1
perl-module/perl-module.spec

@@ -40,6 +40,7 @@
 %define       V_module_locate         1.7
 %define       V_cpan                  1.87
 %define       V_cpan_wait             0.27-2
+%define       V_version               0.64
 
 #   package information
 Name:         perl-module
@@ -52,7 +53,7 @@ Class:        BASE
 Group:        Language
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20060607
+Release:      20060615
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-Depends-%{V_extutils_depends}.tar.gz
@@ -66,6 +67,7 @@ Source7:      http://www.cpan.org/modules/by-module/Module/Module-Info-%{V_modul
 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
+Source11:     http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-%{V_version}.tar.gz
 Patch0:       perl-module.patch
 
 #   build information
@@ -89,6 +91,7 @@ AutoReqProv:  no
     - Module::Locate (%{V_module_locate})
     - CPAN (%{V_cpan})
     - CPAN::WAIT (%{V_cpan_wait})
+    - version (%{V_version})
 
 %track
     prog perl-module:ExtUtils-Depends = {
@@ -143,6 +146,11 @@ AutoReqProv:  no
         url       = http://www.cpan.org/modules/by-module/CPAN/
         regex     = CPAN-WAIT-(__VER__)\.tar\.gz
     }
+    prog perl-module:version = {
+        version   = %{V_version}
+        url       = http://www.cpan.org/authors/id/J/JP/JPEACOCK/
+        regex     = version-(__VER__)\.tar\.gz
+    }
 
 %prep
     %setup -q -c
@@ -156,6 +164,7 @@ AutoReqProv:  no
     %setup -q -T -D -a 8
     %setup -q -T -D -a 9
     %setup -q -T -D -a 10
+    %setup -q -T -D -a 11
     %patch -p0
 
 %build
@@ -174,6 +183,7 @@ AutoReqProv:  no
     %{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 -d %{SOURCE11} configure build install
     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
     rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/{cpan,instmodsh}
     mv  $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps.pl \