perl-parse.spec 13 KB

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