perl-module.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. ##
  2. ## perl-module.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 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.10.0
  30. %define V_extutils_depends 0.205
  31. %define V_extutils_pkgconfig 1.08
  32. %define V_extutils_modulemaker 0.49
  33. %define V_extutils_makemaker 6.42
  34. %define V_extutils_xsbuilder 0.28
  35. %define V_module_scandeps 0.81
  36. %define V_module_build 0.2808
  37. %define V_module_corelist 2.12
  38. %define V_module_info 0.31
  39. %define V_module_locate 1.7
  40. %define V_module_pluggable 3.6
  41. %define V_module_pluggable_ordered 1.5
  42. %define V_class_inspector 1.18
  43. %define V_cpan 1.9205
  44. %define V_cpan_wait 0.27-2
  45. %define V_version 0.7203
  46. # package information
  47. Name: perl-module
  48. Summary: Perl Modules for use with Perl Archive
  49. URL: http://www.cpan.org/
  50. Vendor: Perl Community
  51. Packager: OpenPKG Foundation e.V.
  52. Distribution: OpenPKG Community
  53. Class: BASE
  54. Group: Perl
  55. License: GPL/Artistic
  56. Version: %{V_perl}
  57. Release: 20071219
  58. # list of sources
  59. Source0: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-Depends-%{V_extutils_depends}.tar.gz
  60. Source1: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-PkgConfig-%{V_extutils_pkgconfig}.tar.gz
  61. Source2: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-ModuleMaker-%{V_extutils_modulemaker}.tar.gz
  62. Source3: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-MakeMaker-%{V_extutils_makemaker}.tar.gz
  63. Source4: http://www.cpan.org/modules/by-module/Module/Module-ScanDeps-%{V_module_scandeps}.tar.gz
  64. Source5: http://www.cpan.org/modules/by-module/Module/Module-Build-%{V_module_build}.tar.gz
  65. Source6: http://www.cpan.org/modules/by-module/Module/Module-CoreList-%{V_module_corelist}.tar.gz
  66. Source7: http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-%{V_module_info}.tar.gz
  67. Source8: http://www.cpan.org/modules/by-module/Module/Module-Locate-%{V_module_locate}.tar.gz
  68. Source9: http://www.cpan.org/modules/by-module/Class/Class-Inspector-%{V_class_inspector}.tar.gz
  69. Source10: http://www.cpan.org/modules/by-module/Module/Module-Pluggable-%{V_module_pluggable}.tar.gz
  70. Source11: http://www.cpan.org/modules/by-module/Module/Module-Pluggable-Ordered-%{V_module_pluggable_ordered}.tar.gz
  71. Source12: http://www.cpan.org/modules/by-module/CPAN/CPAN-%{V_cpan}.tar.gz
  72. Source13: http://www.cpan.org/modules/by-module/CPAN/CPAN-WAIT-%{V_cpan_wait}.tar.gz
  73. Source14: http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-%{V_version}.tar.gz
  74. Source15: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-XSBuilder-%{V_extutils_xsbuilder}.tar.gz
  75. Patch0: perl-module.patch
  76. # build information
  77. Prefix: %{l_prefix}
  78. BuildRoot: %{l_buildroot}
  79. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031
  80. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  81. AutoReq: no
  82. AutoReqProv: no
  83. %description
  84. Perl modules for use with networks:
  85. - ExtUtils::Depends (%{V_extutils_depends})
  86. - ExtUtils::PkgConfig (%{V_extutils_pkgconfig})
  87. - ExtUtils::ModuleMaker (%{V_extutils_modulemaker})
  88. - ExtUtils::MakeMaker (%{V_extutils_makemaker})
  89. - ExtUtils::XSBuilder (%{V_extutils_xsbuilder})
  90. - Module::ScanDeps (%{V_module_scandeps})
  91. - Module::Build (%{V_module_build})
  92. - Module::CoreList (%{V_module_corelist})
  93. - Module::Info (%{V_module_info})
  94. - Module::Locate (%{V_module_locate})
  95. - Module::Pluggable (%{V_module_pluggable})
  96. - Module::Pluggable::Ordered (%{V_module_pluggable_ordered})
  97. - Class::Inspector (%{V_class_inspector})
  98. - CPAN (%{V_cpan})
  99. - CPAN::WAIT (%{V_cpan_wait})
  100. - version (%{V_version})
  101. %track
  102. prog perl-module:ExtUtils-Depends = {
  103. version = %{V_extutils_depends}
  104. url = http://www.cpan.org/modules/by-module/ExtUtils/
  105. regex = ExtUtils-Depends-(__VER__)\.tar\.gz
  106. }
  107. prog perl-module:ExtUtils-PkgConfig = {
  108. version = %{V_extutils_pkgconfig}
  109. url = http://www.cpan.org/modules/by-module/ExtUtils/
  110. regex = ExtUtils-PkgConfig-(__VER__)\.tar\.gz
  111. }
  112. prog perl-module:ExtUtils-ModuleMaker = {
  113. version = %{V_extutils_modulemaker}
  114. url = http://www.cpan.org/modules/by-module/ExtUtils/
  115. regex = ExtUtils-ModuleMaker-(\d+\.\d\d)\.tar\.gz
  116. }
  117. prog perl-module:ExtUtils-XSBuilder = {
  118. version = %{V_extutils_xsbuilder}
  119. url = http://www.cpan.org/modules/by-module/ExtUtils/
  120. regex = ExtUtils-XSBuilder-(__VER__)\.tar\.gz
  121. }
  122. prog perl-module:Module-ScanDeps = {
  123. version = %{V_module_scandeps}
  124. url = http://www.cpan.org/modules/by-module/Module/
  125. regex = Module-ScanDeps-(__VER__)\.tar\.gz
  126. }
  127. prog perl-module:Module-Build = {
  128. version = %{V_module_build}
  129. url = http://www.cpan.org/modules/by-module/Module/
  130. regex = Module-Build-(__VER__)\.tar\.gz
  131. }
  132. prog perl-module:Module-CoreList = {
  133. version = %{V_module_corelist}
  134. url = http://www.cpan.org/modules/by-module/Module/
  135. regex = Module-CoreList-(__VER__)\.tar\.gz
  136. }
  137. prog perl-module:Module-Info = {
  138. version = %{V_module_info}
  139. url = http://www.cpan.org/authors/id/M/MB/MBARBON/
  140. regex = Module-Info-(__VER__)\.tar\.gz
  141. }
  142. prog perl-module:Module-Locate = {
  143. version = %{V_module_locate}
  144. url = http://www.cpan.org/modules/by-module/Module/
  145. regex = Module-Locate-(__VER__)\.tar\.gz
  146. }
  147. prog perl-module:Module-Pluggable = {
  148. version = %{V_module_pluggable}
  149. url = http://www.cpan.org/modules/by-module/Module/
  150. regex = Module-Pluggable-(__VER__)\.tar\.gz
  151. }
  152. prog perl-module:Module-Pluggable-Ordered = {
  153. version = %{V_module_pluggable_ordered}
  154. url = http://www.cpan.org/modules/by-module/Module/
  155. regex = Module-Pluggable-Ordered-(__VER__)\.tar\.gz
  156. }
  157. prog perl-module:Class-Inspector = {
  158. version = %{V_class_inspector}
  159. url = http://www.cpan.org/modules/by-module/Class/
  160. regex = Class-Inspector-(__VER__)\.tar\.gz
  161. }
  162. prog perl-module:CPAN = {
  163. version = %{V_cpan}
  164. url = http://www.cpan.org/modules/by-module/CPAN/
  165. regex = CPAN-(__VER__)\.tar\.gz
  166. }
  167. prog perl-module:CPAN-WAIT = {
  168. version = %{V_cpan_wait}
  169. url = http://www.cpan.org/modules/by-module/CPAN/
  170. regex = CPAN-WAIT-(__VER__)\.tar\.gz
  171. }
  172. prog perl-module:version = {
  173. version = %{V_version}
  174. url = http://www.cpan.org/authors/id/J/JP/JPEACOCK/
  175. regex = version-(__VER__)\.tar\.gz
  176. }
  177. %prep
  178. %setup -q -c
  179. %setup -q -T -D -a 1
  180. %setup -q -T -D -a 2
  181. %setup -q -T -D -a 3
  182. %setup -q -T -D -a 4
  183. %setup -q -T -D -a 5
  184. %setup -q -T -D -a 6
  185. %setup -q -T -D -a 7
  186. %setup -q -T -D -a 8
  187. %setup -q -T -D -a 9
  188. %setup -q -T -D -a 10
  189. %setup -q -T -D -a 11
  190. %setup -q -T -D -a 12
  191. %setup -q -T -D -a 13
  192. %setup -q -T -D -a 14
  193. %setup -q -T -D -a 15
  194. %patch -p0
  195. %build
  196. %install
  197. rm -rf $RPM_BUILD_ROOT
  198. %{l_prefix}/bin/perl-openpkg prepare
  199. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  200. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  201. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  202. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  203. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  204. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  205. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  206. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  207. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  208. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  209. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  210. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  211. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  212. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  213. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  214. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  215. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  216. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/{cpan,instmodsh}
  217. mv $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps.pl \
  218. $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps
  219. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  220. %files -f files
  221. %clean
  222. rm -rf $RPM_BUILD_ROOT