perl-parse.spec 16 KB

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