perl-module.spec 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. ##
  2. ## perl-module.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # NOTICE: This is some sort of a Perl module bootstrapping package.
  25. # Hence keep this package as small as possible and especially make
  26. # sure that its modules do *NOT* depend on anything which is not
  27. # shipped with the standard Perl distribution.
  28. # versions of individual parts
  29. %define V_perl 5.8.8
  30. %define V_extutils_depends 0.205
  31. %define V_extutils_pkgconfig 1.07
  32. %define V_extutils_modulemaker 0.47
  33. %define V_extutils_makemaker 6.30
  34. %define V_module_scandeps 0.70
  35. %define V_module_build 0.2805
  36. %define V_module_corelist 2.09
  37. %define V_module_info 0.30
  38. %define V_module_locate 1.7
  39. %define V_module_pluggable 3.2
  40. %define V_module_pluggable_ordered 1.5
  41. %define V_class_inspector 1.16
  42. %define V_cpan 1.8802
  43. %define V_cpan_wait 0.27-2
  44. %define V_version 0.6701
  45. # package information
  46. Name: perl-module
  47. Summary: Perl Modules for use with Perl Archive
  48. URL: http://www.cpan.org/
  49. Vendor: Perl Community
  50. Packager: OpenPKG Foundation e.V.
  51. Distribution: OpenPKG Community
  52. Class: BASE
  53. Group: Perl
  54. License: GPL/Artistic
  55. Version: %{V_perl}
  56. Release: 20061121
  57. # list of sources
  58. Source0: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-Depends-%{V_extutils_depends}.tar.gz
  59. Source1: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-PkgConfig-%{V_extutils_pkgconfig}.tar.gz
  60. Source2: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-ModuleMaker-%{V_extutils_modulemaker}.tar.gz
  61. Source3: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-MakeMaker-%{V_extutils_makemaker}.tar.gz
  62. Source4: http://www.cpan.org/modules/by-module/Module/Module-ScanDeps-%{V_module_scandeps}.tar.gz
  63. Source5: http://www.cpan.org/modules/by-module/Module/Module-Build-%{V_module_build}.tar.gz
  64. Source6: http://www.cpan.org/modules/by-module/Module/Module-CoreList-%{V_module_corelist}.tar.gz
  65. Source7: http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-%{V_module_info}.tar.gz
  66. Source8: http://www.cpan.org/modules/by-module/Module/Module-Locate-%{V_module_locate}.tar.gz
  67. Source9: http://www.cpan.org/modules/by-module/Class/Class-Inspector-%{V_class_inspector}.tar.gz
  68. Source10: http://www.cpan.org/modules/by-module/Module/Module-Pluggable-%{V_module_pluggable}.tar.gz
  69. Source11: http://www.cpan.org/modules/by-module/Module/Module-Pluggable-Ordered-%{V_module_pluggable_ordered}.tar.gz
  70. Source12: http://www.cpan.org/modules/by-module/CPAN/CPAN-%{V_cpan}.tar.gz
  71. Source13: http://www.cpan.org/modules/by-module/CPAN/CPAN-WAIT-%{V_cpan_wait}.tar.gz
  72. Source14: http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-%{V_version}.tar.gz
  73. Patch0: perl-module.patch
  74. # build information
  75. Prefix: %{l_prefix}
  76. BuildRoot: %{l_buildroot}
  77. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031
  78. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  79. AutoReq: no
  80. AutoReqProv: no
  81. %description
  82. Perl modules for use with networks:
  83. - ExtUtils::Depends (%{V_extutils_depends})
  84. - ExtUtils::PkgConfig (%{V_extutils_pkgconfig})
  85. - ExtUtils::ModuleMaker (%{V_extutils_modulemaker})
  86. - ExtUtils::MakeMaker (%{V_extutils_makemaker})
  87. - Module::ScanDeps (%{V_module_scandeps})
  88. - Module::Build (%{V_module_build})
  89. - Module::CoreList (%{V_module_corelist})
  90. - Module::Info (%{V_module_info})
  91. - Module::Locate (%{V_module_locate})
  92. - Module::Pluggable (%{V_module_pluggable})
  93. - Module::Pluggable::Ordered (%{V_module_pluggable_ordered})
  94. - Class::Inspector (%{V_class_inspector})
  95. - CPAN (%{V_cpan})
  96. - CPAN::WAIT (%{V_cpan_wait})
  97. - version (%{V_version})
  98. %track
  99. prog perl-module:ExtUtils-Depends = {
  100. version = %{V_extutils_depends}
  101. url = http://www.cpan.org/modules/by-module/ExtUtils/
  102. regex = ExtUtils-Depends-(__VER__)\.tar\.gz
  103. }
  104. prog perl-module:ExtUtils-PkgConfig = {
  105. version = %{V_extutils_pkgconfig}
  106. url = http://www.cpan.org/modules/by-module/ExtUtils/
  107. regex = ExtUtils-PkgConfig-(__VER__)\.tar\.gz
  108. }
  109. prog perl-module:ExtUtils-ModuleMaker = {
  110. version = %{V_extutils_modulemaker}
  111. url = http://www.cpan.org/modules/by-module/ExtUtils/
  112. regex = ExtUtils-ModuleMaker-(\d+\.\d\d)\.tar\.gz
  113. }
  114. prog perl-module:Module-ScanDeps = {
  115. version = %{V_module_scandeps}
  116. url = http://www.cpan.org/modules/by-module/Module/
  117. regex = Module-ScanDeps-(__VER__)\.tar\.gz
  118. }
  119. prog perl-module:Module-Build = {
  120. version = %{V_module_build}
  121. url = http://www.cpan.org/modules/by-module/Module/
  122. regex = Module-Build-(__VER__)\.tar\.gz
  123. }
  124. prog perl-module:Module-CoreList = {
  125. version = %{V_module_corelist}
  126. url = http://www.cpan.org/modules/by-module/Module/
  127. regex = Module-CoreList-(__VER__)\.tar\.gz
  128. }
  129. prog perl-module:Module-Info = {
  130. version = %{V_module_info}
  131. url = http://www.cpan.org/authors/id/M/MB/MBARBON/
  132. regex = Module-Info-(__VER__)\.tar\.gz
  133. }
  134. prog perl-module:Module-Locate = {
  135. version = %{V_module_locate}
  136. url = http://www.cpan.org/modules/by-module/Module/
  137. regex = Module-Locate-(__VER__)\.tar\.gz
  138. }
  139. prog perl-module:Module-Pluggable = {
  140. version = %{V_module_pluggable}
  141. url = http://www.cpan.org/modules/by-module/Module/
  142. regex = Module-Pluggable-(__VER__)\.tar\.gz
  143. }
  144. prog perl-module:Module-Pluggable-Ordered = {
  145. version = %{V_module_pluggable_ordered}
  146. url = http://www.cpan.org/modules/by-module/Module/
  147. regex = Module-Pluggable-Ordered-(__VER__)\.tar\.gz
  148. }
  149. prog perl-module:Class-Inspector = {
  150. version = %{V_class_inspector}
  151. url = http://www.cpan.org/modules/by-module/Class/
  152. regex = Class-Inspector-(__VER__)\.tar\.gz
  153. }
  154. prog perl-module:CPAN = {
  155. version = %{V_cpan}
  156. url = http://www.cpan.org/modules/by-module/CPAN/
  157. regex = CPAN-(__VER__)\.tar\.gz
  158. }
  159. prog perl-module:CPAN-WAIT = {
  160. version = %{V_cpan_wait}
  161. url = http://www.cpan.org/modules/by-module/CPAN/
  162. regex = CPAN-WAIT-(__VER__)\.tar\.gz
  163. }
  164. prog perl-module:version = {
  165. version = %{V_version}
  166. url = http://www.cpan.org/authors/id/J/JP/JPEACOCK/
  167. regex = version-(__VER__)\.tar\.gz
  168. }
  169. %prep
  170. %setup -q -c
  171. %setup -q -T -D -a 1
  172. %setup -q -T -D -a 2
  173. %setup -q -T -D -a 3
  174. %setup -q -T -D -a 4
  175. %setup -q -T -D -a 5
  176. %setup -q -T -D -a 6
  177. %setup -q -T -D -a 7
  178. %setup -q -T -D -a 8
  179. %setup -q -T -D -a 9
  180. %setup -q -T -D -a 10
  181. %setup -q -T -D -a 11
  182. %setup -q -T -D -a 12
  183. %setup -q -T -D -a 13
  184. %setup -q -T -D -a 14
  185. %patch -p0
  186. %build
  187. %install
  188. rm -rf $RPM_BUILD_ROOT
  189. %{l_prefix}/bin/perl-openpkg prepare
  190. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  191. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  195. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  196. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  197. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  198. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  199. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  200. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  201. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  202. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  203. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  204. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  205. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  206. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/{cpan,instmodsh}
  207. mv $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps.pl \
  208. $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps
  209. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  210. %files -f files
  211. %clean
  212. rm -rf $RPM_BUILD_ROOT