perl-parse.spec 15 KB

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