perl-parse.spec 16 KB

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