perl-module.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. ##
  2. ## perl-module.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2022 OpenPKG Project <http://openpkg.org/>
  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.22
  29. %define V_extutils_depends 0.304
  30. %define V_extutils_pkgconfig 1.16
  31. %define V_extutils_modulemaker 0.63
  32. %define V_extutils_makemaker 7.64
  33. %define V_extutils_xsbuilder 0.28
  34. %define V_extutils_config 0.008
  35. %define V_extutils_helpers 0.026
  36. %define V_extutils_installpaths 0.012
  37. %define V_module_scandeps 1.30
  38. %define V_module_build 0.4231
  39. %define V_module_build_tiny 0.039
  40. %define V_module_corelist 5.20220220
  41. %define V_module_info 0.35
  42. %define V_module_locate 1.80
  43. %define V_module_pluggable 5.2
  44. %define V_module_pluggable_ordered 1.5
  45. %define V_module_install 1.14
  46. %define V_class_inspector 1.28
  47. %define V_file_sharedir 1.03
  48. %define V_cpan 2.29
  49. %define V_cpan_wait 0.27-2
  50. %define V_version 0.9924
  51. %define V_devel_checklib 1.14
  52. # package information
  53. Name: perl-module
  54. Summary: Perl Modules for use with Perl Archive
  55. URL: http://www.cpan.org/
  56. Vendor: Perl Community
  57. Packager: OpenPKG Project
  58. Distribution: OpenPKG Community
  59. Class: BASE
  60. Group: Perl
  61. License: GPL/Artistic
  62. Version: %{V_perl}
  63. Release: 20220220
  64. # list of sources
  65. Source0: http://www.cpan.org/authors/id/F/FL/FLORA/ExtUtils-Depends-%{V_extutils_depends}.tar.gz
  66. Source1: http://www.cpan.org/authors/id/X/XA/XAOC/ExtUtils-PkgConfig-%{V_extutils_pkgconfig}.tar.gz
  67. Source2: http://www.cpan.org/authors/id/J/JK/JKEENAN/ExtUtils-ModuleMaker-%{V_extutils_modulemaker}.tar.gz
  68. Source3: http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-%{V_extutils_makemaker}.tar.gz
  69. Source4: http://www.cpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{V_module_scandeps}.tar.gz
  70. Source5: http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-%{V_module_build}.tar.gz
  71. Source6: http://www.cpan.org/authors/id/B/BI/BINGOS/Module-CoreList-%{V_module_corelist}.tar.gz
  72. Source7: http://www.cpan.org/authors/id/M/MB/MBARBON/Module-Info-%{V_module_info}.tar.gz
  73. Source8: http://www.cpan.org/authors/id/N/NE/NEILB/Module-Locate-%{V_module_locate}.tar.gz
  74. Source9: http://www.cpan.org/authors/id/A/AD/ADAMK/Class-Inspector-%{V_class_inspector}.tar.gz
  75. Source10: http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{V_module_pluggable}.tar.gz
  76. Source11: http://www.cpan.org/authors/id/A/AP/APEIRON/Module-Pluggable-Ordered-%{V_module_pluggable_ordered}.tar.gz
  77. Source12: http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-%{V_cpan}.tar.gz
  78. Source13: http://www.cpan.org/modules/by-module/CPAN/CPAN-WAIT-%{V_cpan_wait}.tar.gz
  79. Source14: http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-%{V_version}.tar.gz
  80. Source15: http://www.cpan.org/authors/id/G/GR/GRICHTER/ExtUtils-XSBuilder-%{V_extutils_xsbuilder}.tar.gz
  81. Source16: http://www.cpan.org/authors/id/A/AD/ADAMK/File-ShareDir-%{V_file_sharedir}.tar.gz
  82. Source17: http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-Config-%{V_extutils_config}.tar.gz
  83. Source18: http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-%{V_extutils_helpers}.tar.gz
  84. Source19: http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-InstallPaths-%{V_extutils_installpaths}.tar.gz
  85. Source20: http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-Tiny-%{V_module_build_tiny}.tar.gz
  86. Source21: http://www.cpan.org/authors/id/B/BI/BINGOS/Module-Install-%{V_module_install}.tar.gz
  87. Source22: http://www.cpan.org/authors/id/M/MA/MATTN/Devel-CheckLib-%{V_devel_checklib}.tar.gz
  88. Patch0: perl-module.patch
  89. # build information
  90. BuildPreReq: OpenPKG, openpkg >= 20160101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031
  91. PreReq: OpenPKG, openpkg >= 20160101, perl >= %{V_perl}
  92. %description
  93. Perl modules for use with networks:
  94. - ExtUtils::Depends (%{V_extutils_depends})
  95. - ExtUtils::PkgConfig (%{V_extutils_pkgconfig})
  96. - ExtUtils::ModuleMaker (%{V_extutils_modulemaker})
  97. - ExtUtils::MakeMaker (%{V_extutils_makemaker})
  98. - ExtUtils::XSBuilder (%{V_extutils_xsbuilder})
  99. - ExtUtils::Config (%{V_extutils_config})
  100. - ExtUtils::Helpers (%{V_extutils_helpers})
  101. - ExtUtils::InstallPaths (%{V_extutils_installpaths})
  102. - Module::ScanDeps (%{V_module_scandeps})
  103. - Module::Build (%{V_module_build})
  104. - Module::Build::Tiny (%{V_module_build_tiny})
  105. - Module::CoreList (%{V_module_corelist})
  106. - Module::Info (%{V_module_info})
  107. - Module::Locate (%{V_module_locate})
  108. - Module::Pluggable (%{V_module_pluggable})
  109. - Module::Pluggable::Ordered (%{V_module_pluggable_ordered})
  110. - Module::Install (%{V_module_install})
  111. - Class::Inspector (%{V_class_inspector})
  112. - File::ShareDir (%{V_file_sharedir})
  113. - CPAN (%{V_cpan})
  114. - CPAN::WAIT (%{V_cpan_wait})
  115. - version (%{V_version})
  116. - Devel::CheckLib (%{V_devel_checklib})
  117. %track
  118. prog perl-module:ExtUtils-Depends = {
  119. version = %{V_extutils_depends}
  120. url = http://www.cpan.org/authors/id/F/FL/FLORA/
  121. regex = ExtUtils-Depends-(__VER__)\.tar\.gz
  122. }
  123. prog perl-module:ExtUtils-PkgConfig = {
  124. version = %{V_extutils_pkgconfig}
  125. url = http://www.cpan.org/authors/id/X/XA/XAOC/
  126. regex = ExtUtils-PkgConfig-(__VER__)\.tar\.gz
  127. }
  128. prog perl-module:ExtUtils-ModuleMaker = {
  129. version = %{V_extutils_modulemaker}
  130. url = http://www.cpan.org/authors/id/J/JK/JKEENAN/
  131. regex = ExtUtils-ModuleMaker-(\d+\.\d\d)\.tar\.gz
  132. }
  133. prog perl-module:ExtUtils-MakeMaker = {
  134. version = %{V_extutils_makemaker}
  135. url = http://www.cpan.org/authors/id/B/BI/BINGOS/
  136. regex = ExtUtils-MakeMaker-(\d+\.\d\d)\.tar\.gz
  137. }
  138. prog perl-module:ExtUtils-XSBuilder = {
  139. version = %{V_extutils_xsbuilder}
  140. url = http://www.cpan.org/authors/id/G/GR/GRICHTER/
  141. regex = ExtUtils-XSBuilder-(__VER__)\.tar\.gz
  142. }
  143. prog perl-module:ExtUtils-Config = {
  144. version = %{V_extutils_config}
  145. url = http://www.cpan.org/authors/id/L/LE/LEONT/
  146. regex = ExtUtils-Config-(__VER__)\.tar\.gz
  147. }
  148. prog perl-module:ExtUtils-Helpers = {
  149. version = %{V_extutils_helpers}
  150. url = http://www.cpan.org/authors/id/L/LE/LEONT/
  151. regex = ExtUtils-Helpers-(__VER__)\.tar\.gz
  152. }
  153. prog perl-module:ExtUtils-InstallPaths = {
  154. version = %{V_extutils_installpaths}
  155. url = http://www.cpan.org/authors/id/L/LE/LEONT/
  156. regex = ExtUtils-InstallPaths-(__VER__)\.tar\.gz
  157. }
  158. prog perl-module:Module-ScanDeps = {
  159. version = %{V_module_scandeps}
  160. url = http://www.cpan.org/authors/id/R/RS/RSCHUPP/
  161. regex = Module-ScanDeps-(__VER__)\.tar\.gz
  162. }
  163. prog perl-module:Module-Build = {
  164. version = %{V_module_build}
  165. url = http://www.cpan.org/authors/id/L/LE/LEONT/
  166. regex = Module-Build-(__VER__)\.tar\.gz
  167. }
  168. prog perl-module:Module-Build-Tiny = {
  169. version = %{V_module_build}
  170. url = http://www.cpan.org/authors/id/L/LE/LEONT/
  171. regex = Module-Build-Tiny-(__VER__)\.tar\.gz
  172. }
  173. prog perl-module:Module-CoreList = {
  174. version = %{V_module_corelist}
  175. url = http://www.cpan.org/authors/id/B/BI/BINGOS/
  176. regex = Module-CoreList-(__VER__)\.tar\.gz
  177. }
  178. prog perl-module:Module-Info = {
  179. version = %{V_module_info}
  180. url = http://www.cpan.org/authors/id/M/MB/MBARBON/
  181. regex = Module-Info-(__VER__)\.tar\.gz
  182. }
  183. prog perl-module:Module-Locate = {
  184. version = %{V_module_locate}
  185. url = http://www.cpan.org/authors/id/N/NE/NEILB/
  186. regex = Module-Locate-(__VER__)\.tar\.gz
  187. }
  188. prog perl-module:Module-Pluggable = {
  189. version = %{V_module_pluggable}
  190. url = http://www.cpan.org/authors/id/S/SI/SIMONW/
  191. regex = Module-Pluggable-(__VER__)\.tar\.gz
  192. }
  193. prog perl-module:Module-Pluggable-Ordered = {
  194. version = %{V_module_pluggable_ordered}
  195. url = http://www.cpan.org/authors/id/A/AP/APEIRON/
  196. regex = Module-Pluggable-Ordered-(__VER__)\.tar\.gz
  197. }
  198. prog perl-module:Module-Install = {
  199. version = %{V_module_install}
  200. url = http://www.cpan.org/authors/id/B/BI/BINGOS/
  201. regex = Module-Install-(__VER__)\.tar\.gz
  202. }
  203. prog perl-module:Class-Inspector = {
  204. version = %{V_class_inspector}
  205. url = http://www.cpan.org/authors/id/A/AD/ADAMK/
  206. regex = Class-Inspector-(__VER__)\.tar\.gz
  207. }
  208. prog perl-module:File-ShareDir = {
  209. version = %{V_file_sharedir}
  210. url = http://www.cpan.org/authors/id/A/AD/ADAMK/
  211. regex = File-ShareDir-(__VER__)\.tar\.gz
  212. }
  213. prog perl-module:CPAN = {
  214. version = %{V_cpan}
  215. url = http://www.cpan.org/authors/id/A/AN/ANDK/
  216. regex = CPAN-(__VER__)\.tar\.gz
  217. }
  218. prog perl-module:CPAN-WAIT = {
  219. version = %{V_cpan_wait}
  220. url = http://www.cpan.org/modules/by-module/CPAN/
  221. regex = CPAN-WAIT-(__VER__)\.tar\.gz
  222. }
  223. prog perl-module:version = {
  224. version = %{V_version}
  225. url = http://www.cpan.org/authors/id/J/JP/JPEACOCK/
  226. regex = version-(__VER__)\.tar\.gz
  227. }
  228. prog perl-module:Devel-CheckLib = {
  229. version = %{V_devel_checklib}
  230. url = http://www.cpan.org/authors/id/M/MA/MATTN/
  231. regex = Devel-CheckLib-(__VER__)\.tar\.gz
  232. }
  233. %prep
  234. %setup -q -c
  235. %setup -q -T -D -a 1
  236. %setup -q -T -D -a 2
  237. %setup -q -T -D -a 3
  238. %setup -q -T -D -a 4
  239. %setup -q -T -D -a 5
  240. %setup -q -T -D -a 6
  241. %setup -q -T -D -a 7
  242. %setup -q -T -D -a 8
  243. %setup -q -T -D -a 9
  244. %setup -q -T -D -a 10
  245. %setup -q -T -D -a 11
  246. %setup -q -T -D -a 12
  247. %setup -q -T -D -a 13
  248. %setup -q -T -D -a 14
  249. %setup -q -T -D -a 15
  250. %setup -q -T -D -a 16
  251. %setup -q -T -D -a 17
  252. %setup -q -T -D -a 18
  253. %setup -q -T -D -a 19
  254. %setup -q -T -D -a 20
  255. %setup -q -T -D -a 21
  256. %setup -q -T -D -a 22
  257. find . -type f -print | xargs chmod u+w
  258. %patch -p0
  259. %build
  260. %install
  261. %{l_prefix}/bin/perl-openpkg prepare
  262. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  263. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  264. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  265. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  266. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  267. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  268. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  269. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  270. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  271. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  272. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  273. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  274. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  275. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  276. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  277. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  278. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  279. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  280. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  281. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  282. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  283. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  284. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  285. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  286. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/{cpan,instmodsh}
  287. mv $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps.pl \
  288. $RPM_BUILD_ROOT%{l_prefix}/bin/scandeps
  289. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  290. %files -f files
  291. %clean