perl-module.spec 10 KB

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