perl-parse.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. ##
  2. ## perl-parse.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2011 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. # versions of individual parts
  24. %define V_perl 5.12
  25. %define V_config_inifiles 2.66
  26. %define V_config_general 2.50
  27. %define V_config_simple 4.59
  28. %define V_config_context 0.10
  29. %define V_config_scoped 0.13
  30. %define V_string_tokenizer 0.05
  31. %define V_parse_recdescent 1.962.2
  32. %define V_parse_recdescent_faq 7.5
  33. %define V_parse_recdescent_deparse 1.00
  34. %define V_parse_recdescent_consumer 1.03
  35. %define V_parse_recdescent_topiary 0.05
  36. %define V_parse_yapp 1.05
  37. %define V_parse_eyapp 1.179
  38. %define V_parse_earley 0.15
  39. %define V_parse_lex 2.20
  40. %define V_parse_flex 0.12
  41. %define V_c_scan 0.74
  42. %define V_appconfig 1.66
  43. %define V_appconfig_std 1.07
  44. %define V_ogdl 20041124
  45. %define V_text_csv_pp 1.06
  46. %define V_text_csv_xs 0.69
  47. %define V_text_csv_simple 1.00
  48. %define V_getopt_long 2.38_02
  49. %define V_getopt_attribute 2.101700
  50. %define V_getopt_argvfile 1.11
  51. %define V_getopt_fancy 0.06
  52. %define V_getopt_ll 1.0.0
  53. %define V_getopt_flex 1.04
  54. # package information
  55. Name: perl-parse
  56. Summary: Perl Modules for use with parsing algorythms
  57. URL: http://www.cpan.org/
  58. Vendor: Perl Community
  59. Packager: OpenPKG Foundation e.V.
  60. Distribution: OpenPKG Community
  61. Class: BASE
  62. Group: Perl
  63. License: GPL/Artistic
  64. Version: %{V_perl}
  65. Release: 20110131
  66. # list of sources
  67. Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Config-IniFiles-%{V_config_inifiles}.tar.gz
  68. Source1: http://www.cpan.org/authors/id/T/TL/TLINDEN/Config-General-%{V_config_general}.tar.gz
  69. Source2: http://www.cpan.org/authors/id/S/SH/SHERZODR/Config-Simple-%{V_config_simple}.tar.gz
  70. Source3: http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-%{V_parse_recdescent}.tar.gz
  71. Source4: http://www.cpan.org/authors/id/T/TB/TBONE/Parse-RecDescent-FAQ-%{V_parse_recdescent_faq}.tar.gz
  72. Source5: http://www.cpan.org/authors/id/S/SI/SIMON/Parse-RecDescent-Deparse-%{V_parse_recdescent_deparse}.tar.gz
  73. Source6: http://www.cpan.org/authors/id/T/TB/TBONE/Parse-RecDescent-Consumer-%{V_parse_recdescent_consumer}.tar.gz
  74. Source7: http://www.cpan.org/authors/id/F/FD/FDESAR/Parse-Yapp-%{V_parse_yapp}.tar.gz
  75. Source8: http://www.cpan.org/authors/id/L/LP/LPALMER/Parse-Earley-%{V_parse_earley}.tar.gz
  76. Source9: http://www.cpan.org/authors/id/P/PS/PSCUST/ParseLex-%{V_parse_lex}.tar.gz
  77. Source10: http://www.cpan.org/authors/id/H/HV/HVDS/C-Scan-%{V_c_scan}.tar.gz
  78. Source11: http://www.cpan.org/authors/id/A/AB/ABW/AppConfig-%{V_appconfig}.tar.gz
  79. Source12: http://www.cpan.org/authors/id/N/NE/NEILB/AppConfig-Std-%{V_appconfig_std}.tar.gz
  80. Source13: http://switch.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz
  81. Source14: http://www.cpan.org/authors/id/S/ST/STEVAN/String-Tokenizer-%{V_string_tokenizer}.tar.gz
  82. Source15: http://www.cpan.org/authors/id/M/MG/MGRAHAM/Config-Context-%{V_config_context}.tar.gz
  83. Source16: http://www.cpan.org/authors/id/G/GA/GAISSMAI/Config-Scoped-%{V_config_scoped}.tar.gz
  84. Source17: http://www.cpan.org/modules/by-module/Text/Text-CSV_PP-%{V_text_csv_pp}.tar.gz
  85. Source18: http://www.cpan.org/modules/by-module/Text/Text-CSV_XS-%{V_text_csv_xs}.tgz
  86. Source19: http://www.cpan.org/authors/id/T/TM/TMTM/Text-CSV-Simple-%{V_text_csv_simple}.tar.gz
  87. Source20: http://www.cpan.org/authors/id/J/JV/JV/Getopt-Long-%{V_getopt_long}.tar.gz
  88. Source21: http://www.cpan.org/authors/id/M/MA/MARCEL/Getopt-Attribute-%{V_getopt_attribute}.tar.gz
  89. Source22: http://www.cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-%{V_getopt_argvfile}.tar.gz
  90. Source23: http://www.cpan.org/authors/id/B/BA/BATMAN/Getopt-Fancy-%{V_getopt_fancy}.tar.gz
  91. Source24: http://www.cpan.org/authors/id/A/AS/ASKSH/Getopt-LL-%{V_getopt_ll}.tar.gz
  92. Source25: http://www.cpan.org/authors/id/I/IV/IVORW/Parse-RecDescent-Topiary-%{V_parse_recdescent_topiary}.tar.gz
  93. Source26: http://www.cpan.org/authors/id/I/IO/IOANNIS/Parse-Flex-%{V_parse_flex}.tar.gz
  94. Source27: http://www.cpan.org/authors/id/C/CA/CASIANO/Parse-Eyapp-%{V_parse_eyapp}.tar.gz
  95. Source28: http://www.cpan.org/authors/id/R/RP/RPKELLY/Getopt-Flex-%{V_getopt_flex}.tar.gz
  96. # build information
  97. BuildPreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031
  98. PreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}
  99. BuildPreReq: perl-util, perl-module, flex
  100. PreReq: perl-util, perl-module, flex
  101. %description
  102. Perl modules for use with parsing algorythms:
  103. - Config::IniFiles (%{V_config_inifiles})
  104. - Config::General (%{V_config_general})
  105. - Config::Simple (%{V_config_simple})
  106. - Config::Context (%{V_config_context})
  107. - Config::Scoped (%{V_config_scoped})
  108. - String::Tokenizer (%{V_string_tokenizer})
  109. - Parse::RecDescent (%{V_parse_recdescent})
  110. - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq})
  111. - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse})
  112. - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer})
  113. - Parse::RecDescent::Topiary (%{V_parse_recdescent_topiary})
  114. - Parse::Yapp (%{V_parse_yapp})
  115. - Parse::Eyapp (%{V_parse_eyapp})
  116. - Parse::Earley (%{V_parse_earley})
  117. - Parse::Lex (%{V_parse_lex})
  118. - Parse::Flex (%{V_parse_flex})
  119. - C::Scan (%{V_c_scan})
  120. - AppConfig (%{V_appconfig})
  121. - AppConfig::Std (%{V_appconfig_std})
  122. - OGDL (%{V_ogdl})
  123. - Text::CSV_PP (%{V_text_csv_pp})
  124. - Text::CSV_XS (%{V_text_csv_xs})
  125. - Text::CSV::Simple (%{V_text_csv_simple})
  126. - Getopt::Long (%{V_getopt_long})
  127. - Getopt::Attribute (%{V_getopt_attribute})
  128. - Getopt::ArgvFile (%{V_getopt_argvfile})
  129. - Getopt::Fancy (%{V_getopt_fancy})
  130. - Getopt::LL (%{V_getopt_ll})
  131. - Getopt::Flex (%{V_getopt_flex})
  132. %track
  133. prog perl-parse:Config-General = {
  134. version = %{V_config_general}
  135. url = http://www.cpan.org/authors/id/T/TL/TLINDEN/
  136. regex = Config-General-(__VER__)\.tar\.gz
  137. }
  138. prog perl-parse:Config-IniFiles = {
  139. version = %{V_config_inifiles}
  140. url = http://www.cpan.org/authors/id/S/SH/SHLOMIF/
  141. regex = Config-IniFiles-(__VER__)\.tar\.gz
  142. }
  143. prog perl-parse:Config-Simple = {
  144. version = %{V_config_simple}
  145. url = http://www.cpan.org/authors/id/S/SH/SHERZODR/
  146. regex = Config-Simple-(__VER__)\.tar\.gz
  147. }
  148. prog perl-parse:Parse-RecDescent = {
  149. version = %{V_parse_recdescent}
  150. url = http://www.cpan.org/authors/id/D/DC/DCONWAY/
  151. regex = Parse-RecDescent-v(__VER__)\.tar\.gz
  152. }
  153. prog perl-parse:Parse-RecDescent-Consumer = {
  154. version = %{V_parse_recdescent_consumer}
  155. url = http://www.cpan.org/authors/id/T/TB/TBONE/
  156. regex = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz
  157. }
  158. prog perl-parse:Parse-RecDescent-Deparse = {
  159. version = %{V_parse_recdescent_deparse}
  160. url = http://www.cpan.org/authors/id/S/SI/SIMON/
  161. regex = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz
  162. }
  163. prog perl-parse:Parse-RecDescent-FAQ = {
  164. version = %{V_parse_recdescent_faq}
  165. url = http://www.cpan.org/authors/id/T/TB/TBONE/
  166. regex = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz
  167. }
  168. prog perl-parse:Parse-RecDescent-Topiary = {
  169. version = %{V_parse_recdescent_topiary}
  170. url = http://www.cpan.org/authors/id/I/IV/IVORW/
  171. regex = Parse-RecDescent-Topiary-(__VER__)\.tar\.gz
  172. }
  173. prog perl-parse:Parse-Yapp = {
  174. version = %{V_parse_yapp}
  175. url = http://www.cpan.org/authors/id/F/FD/FDESAR/
  176. regex = Parse-Yapp-(__VER__)\.tar\.gz
  177. }
  178. prog perl-parse:Parse-Eyapp = {
  179. version = %{V_parse_eyapp}
  180. url = http://www.cpan.org/authors/id/C/CA/CASIANO/
  181. regex = Parse-Eyapp-(__VER__)\.tar\.gz
  182. }
  183. prog perl-parse:Parse-Earley = {
  184. version = %{V_parse_earley}
  185. url = http://www.cpan.org/authors/id/L/LP/LPALMER/
  186. regex = Parse-Earley-(__VER__)\.tar\.gz
  187. }
  188. prog perl-parse:Parse-Lex = {
  189. version = %{V_parse_lex}
  190. url = http://www.cpan.org/authors/id/P/PS/PSCUST/
  191. regex = ParseLex-(__VER__)\.tar\.gz
  192. }
  193. prog perl-parse:Parse-Flex = {
  194. version = %{V_parse_flex}
  195. url = http://www.cpan.org/authors/id/I/IO/IOANNIS/
  196. regex = Parse-Flex-(__VER__)\.tar\.gz
  197. }
  198. prog perl-parse:C-Scan = {
  199. version = %{V_c_scan}
  200. url = http://www.cpan.org/authors/id/H/HV/HVDS/
  201. regex = C-Scan-(__VER__)\.tar\.gz
  202. }
  203. prog perl-parse:AppConfig = {
  204. version = %{V_appconfig}
  205. url = http://www.cpan.org/authors/id/A/AB/ABW/
  206. regex = AppConfig-(__VER__)\.tar\.gz
  207. }
  208. prog perl-parse:AppConfig-Std = {
  209. version = %{V_appconfig_std}
  210. url = http://www.cpan.org/authors/id/N/NE/NEILB/
  211. regex = AppConfig-Std-(__VER__)\.tar\.gz
  212. }
  213. prog perl-parse:OGDL = {
  214. version = %{V_ogdl}
  215. url = http://sourceforge.net/projects/ogdl/files/
  216. regex = ogdlutils-(__VER__)\.tgz
  217. }
  218. prog perl-parse:String-Tokenizer = {
  219. version = %{V_string_tokenizer}
  220. url = http://www.cpan.org/authors/id/S/ST/STEVAN/
  221. regex = String-Tokenizer-(__VER__)\.tar\.gz
  222. }
  223. prog perl-parse:Config-Context = {
  224. version = %{V_config_context}
  225. url = http://www.cpan.org/authors/id/M/MG/MGRAHAM/
  226. regex = Config-Context-(__VER__)\.tar\.gz
  227. }
  228. prog perl-parse:Config-Scoped = {
  229. version = %{V_config_scoped}
  230. url = http://www.cpan.org/authors/id/G/GA/GAISSMAI/
  231. regex = Config-Scoped-(__VER__)\.tar\.gz
  232. }
  233. prog perl-parse:Text-CSV_PP = {
  234. version = %{V_text_csv_pp}
  235. url = http://www.cpan.org/modules/by-module/Text/
  236. regex = Text-CSV_PP-(__VER__)\.tar\.gz
  237. }
  238. prog perl-parse:Text-CSV_XS = {
  239. version = %{V_text_csv_xs}
  240. url = http://www.cpan.org/modules/by-module/Text/
  241. regex = Text-CSV_XS-(__VER__)\.t(ar\.)?gz
  242. }
  243. prog perl-parse:Text-CSV-Simple = {
  244. version = %{V_text_csv_simple}
  245. url = http://www.cpan.org/authors/id/T/TM/TMTM/
  246. regex = Text-CSV-Simple-(__VER__)\.tar\.gz
  247. }
  248. prog perl-parse:Getopt-Long = {
  249. version = %{V_getopt_long}
  250. url = http://www.cpan.org/authors/id/J/JV/JV/
  251. regex = Getopt-Long-(__VER__)\.tar\.gz
  252. }
  253. prog perl-parse:Getopt-Attribute = {
  254. version = %{V_getopt_attribute}
  255. url = http://www.cpan.org/authors/id/M/MA/MARCEL/
  256. regex = Getopt-Attribute-(__VER__)\.tar\.gz
  257. }
  258. prog perl-parse:Getopt-ArgvFile = {
  259. version = %{V_getopt_argvfile}
  260. url = http://www.cpan.org/authors/id/J/JS/JSTENZEL/
  261. regex = Getopt-ArgvFile-(__VER__)\.tar\.gz
  262. }
  263. prog perl-parse:Getopt-Fancy = {
  264. version = %{V_getopt_fancy}
  265. url = http://www.cpan.org/authors/id/B/BA/BATMAN/
  266. regex = Getopt-Fancy-(__VER__)\.tar\.gz
  267. }
  268. prog perl-parse:Getopt-LL = {
  269. version = %{V_getopt_ll}
  270. url = http://www.cpan.org/authors/id/A/AS/ASKSH/
  271. regex = Getopt-LL-(__VER__)\.tar\.gz
  272. }
  273. prog perl-parse:Getopt-Flex = {
  274. version = %{V_getopt_flex}
  275. url = http://www.cpan.org/authors/id/R/RP/RPKELLY/
  276. regex = Getopt-Flex-(__VER__)\.tar\.gz
  277. }
  278. %prep
  279. %setup -q -c
  280. %setup -q -T -D -a 1
  281. %setup -q -T -D -a 2
  282. %setup -q -T -D -a 3
  283. %setup -q -T -D -a 4
  284. %setup -q -T -D -a 5
  285. %setup -q -T -D -a 6
  286. %setup -q -T -D -a 7
  287. %setup -q -T -D -a 8
  288. %setup -q -T -D -a 9
  289. %setup -q -T -D -a 10
  290. %setup -q -T -D -a 11
  291. %setup -q -T -D -a 12
  292. %setup -q -T -D -a 13
  293. %setup -q -T -D -a 14
  294. %setup -q -T -D -a 15
  295. %setup -q -T -D -a 16
  296. %setup -q -T -D -a 17
  297. %setup -q -T -D -a 18
  298. %setup -q -T -D -a 19
  299. %setup -q -T -D -a 20
  300. %setup -q -T -D -a 21
  301. %setup -q -T -D -a 22
  302. %setup -q -T -D -a 23
  303. %setup -q -T -D -a 24
  304. %setup -q -T -D -a 25
  305. %setup -q -T -D -a 26
  306. %setup -q -T -D -a 27
  307. %setup -q -T -D -a 28
  308. %build
  309. %install
  310. %{l_prefix}/bin/perl-openpkg prepare
  311. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  312. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  313. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  314. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  315. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  316. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  317. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  318. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  319. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  320. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  321. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  322. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  323. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  324. ( cd ogdlutils-%{V_ogdl}/c
  325. %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c
  326. ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o
  327. ) || exit $?
  328. %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install
  329. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  330. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  331. %{l_prefix}/bin/perl-openpkg -A TAR=%{l_tar} -d %{SOURCE16} configure build install
  332. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  333. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  334. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  335. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  336. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  337. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  338. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  339. %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
  340. %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
  341. %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
  342. %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
  343. %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
  344. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  345. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  346. %files -f files
  347. %clean