perl-parse.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. ##
  2. ## perl-parse.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # versions of individual parts
  26. %define V_perl 5.8.6
  27. %define V_config_inifiles 2.38
  28. %define V_config_general 2.27
  29. %define V_config_simple 4.58
  30. %define V_string_tokenizer 0.05
  31. %define V_parse_recdescent 1.94
  32. %define V_parse_recdescent_faq 3.92
  33. %define V_parse_recdescent_deparse 1.00
  34. %define V_parse_recdescent_consumer 1.03
  35. %define V_parse_yapp 1.05
  36. %define V_parse_earley 0.15
  37. %define V_parse_lex 2.15
  38. %define V_c_scan 0.74
  39. %define V_appconfig 1.56
  40. %define V_appconfig_std 1.07
  41. %define V_template 2.14
  42. %define V_yaml 0.36
  43. %define V_ogdl 20041124
  44. # package information
  45. Name: perl-parse
  46. Summary: Perl Modules for use with parsing algorythms
  47. URL: http://www.cpan.org/
  48. Vendor: Perl Community
  49. Packager: The OpenPKG Project
  50. Distribution: OpenPKG
  51. Class: BASE
  52. Group: Language
  53. License: GPL/Artistic
  54. Version: %{V_perl}
  55. Release: 20050211
  56. # list of sources
  57. Source0: http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz
  58. Source1: http://www.cpan.org/modules/by-module/Config/Config-General-%{V_config_general}.tar.gz
  59. Source2: http://www.cpan.org/modules/by-module/Config/Config-Simple-%{V_config_simple}.tar.gz
  60. Source3: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-%{V_parse_recdescent}.tar.gz
  61. Source4: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-FAQ-%{V_parse_recdescent_faq}.tar.gz
  62. Source5: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Deparse-%{V_parse_recdescent_deparse}.tar.gz
  63. Source6: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Consumer-%{V_parse_recdescent_consumer}.tar.gz
  64. Source7: http://www.cpan.org/modules/by-module/Parse/Parse-Yapp-%{V_parse_yapp}.tar.gz
  65. Source8: http://www.cpan.org/modules/by-module/Parse/Parse-Earley-%{V_parse_earley}.tar.gz
  66. Source9: http://www.cpan.org/modules/by-module/Parse/ParseLex-%{V_parse_lex}.tar.gz
  67. Source10: http://www.cpan.org/modules/by-module/C/C-Scan-%{V_c_scan}.tar.gz
  68. Source11: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-%{V_appconfig}.tar.gz
  69. Source12: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-Std-%{V_appconfig_std}.tar.gz
  70. Source13: http://www.cpan.org/modules/by-module/Template/Template-Toolkit-%{V_template}.tar.gz
  71. Source14: http://www.cpan.org/modules/by-module/YAML/YAML-%{V_yaml}.tar.gz
  72. Source15: http://osdn.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz
  73. Source16: http://www.cpan.org/modules/by-module/String/String-Tokenizer-%{V_string_tokenizer}.tar.gz
  74. # build information
  75. Prefix: %{l_prefix}
  76. BuildRoot: %{l_buildroot}
  77. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util, perl-openpkg >= %{V_perl}-20040126
  78. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util
  79. AutoReq: no
  80. AutoReqProv: no
  81. %description
  82. Perl modules for use with parsing algorythms:
  83. - Config::IniFiles (%{V_config_inifiles})
  84. - Config::General (%{V_config_general})
  85. - Config::Simple (%{V_config_simple})
  86. - String::Tokenizer (%{V_string_tokenizer})
  87. - Parse::RecDescent (%{V_parse_recdescent})
  88. - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq})
  89. - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse})
  90. - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer})
  91. - Parse::Yapp (%{V_parse_yapp})
  92. - Parse::Earley (%{V_parse_earley})
  93. - ParseLex (%{V_parse_lex})
  94. - C::Scan (%{V_c_scan})
  95. - AppConfig (%{V_appconfig})
  96. - AppConfig::Std (%{V_appconfig_std})
  97. - Template (%{V_template})
  98. - YAML (%{V_yaml})
  99. - OGDL (%{V_ogdl})
  100. %track
  101. prog perl-parse:Config-General = {
  102. version = %{V_config_general}
  103. url = http://www.cpan.org/modules/by-module/Config/
  104. regex = Config-General-(__VER__)\.tar\.gz
  105. }
  106. prog perl-parse:Config-IniFiles = {
  107. version = %{V_config_inifiles}
  108. url = http://www.cpan.org/modules/by-module/Config/
  109. regex = Config-IniFiles-(__VER__)\.tar\.gz
  110. }
  111. prog perl-parse:Config-Simple = {
  112. version = %{V_config_simple}
  113. url = http://www.cpan.org/modules/by-module/Config/
  114. regex = Config-Simple-(__VER__)\.tar\.gz
  115. }
  116. prog perl-parse:Parse-RecDescent = {
  117. version = %{V_parse_recdescent}
  118. url = http://www.cpan.org/modules/by-module/Parse/
  119. regex = Parse-RecDescent-(__VER__)\.tar\.gz
  120. }
  121. prog perl-parse:Parse-RecDescent-Consumer = {
  122. version = %{V_parse_recdescent_consumer}
  123. url = http://www.cpan.org/modules/by-module/Parse/
  124. regex = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz
  125. }
  126. prog perl-parse:Parse-RecDescent-Deparse = {
  127. version = %{V_parse_recdescent_deparse}
  128. url = http://www.cpan.org/modules/by-module/Parse/
  129. regex = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz
  130. }
  131. prog perl-parse:Parse-RecDescent-FAQ = {
  132. version = %{V_parse_recdescent_faq}
  133. url = http://www.cpan.org/modules/by-module/Parse/
  134. regex = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz
  135. }
  136. prog perl-parse:Parse-Yapp = {
  137. version = %{V_parse_yapp}
  138. url = http://www.cpan.org/modules/by-module/Parse/
  139. regex = Parse-Yapp-(__VER__)\.tar\.gz
  140. }
  141. prog perl-parse:Parse-Earley = {
  142. version = %{V_parse_earley}
  143. url = http://www.cpan.org/modules/by-module/Parse/
  144. regex = Parse-Earley-(__VER__)\.tar\.gz
  145. }
  146. prog perl-parse:ParseLex = {
  147. version = %{V_parse_lex}
  148. url = http://www.cpan.org/modules/by-module/Parse/
  149. regex = ParseLex-(__VER__)\.tar\.gz
  150. }
  151. prog perl-parse:C-Scan = {
  152. version = %{V_c_scan}
  153. url = http://www.cpan.org/modules/by-module/C/
  154. regex = C-Scan-(__VER__)\.tar\.gz
  155. }
  156. prog perl-parse:AppConfig = {
  157. version = %{V_appconfig}
  158. url = http://www.cpan.org/modules/by-module/AppConfig/
  159. regex = AppConfig-(__VER__)\.tar\.gz
  160. }
  161. prog perl-parse:AppConfig-Std = {
  162. version = %{V_appconfig_std}
  163. url = http://www.cpan.org/modules/by-module/AppConfig/
  164. regex = AppConfig-Std-(__VER__)\.tar\.gz
  165. }
  166. prog perl-parse:Template = {
  167. version = %{V_template}
  168. url = http://www.cpan.org/modules/by-module/Template/
  169. regex = Template-Toolkit-(__VER__)\.tar\.gz
  170. }
  171. prog perl-parse:YAML = {
  172. version = %{V_yaml}
  173. url = http://www.cpan.org/modules/by-module/YAML/
  174. regex = YAML-(__VER__)\.tar\.gz
  175. }
  176. prog perl-parse:OGDL = {
  177. version = %{V_ogdl}
  178. url = http://prdownloads.sourceforge.net/ogdl/
  179. regex = ogdlutils-(__VER__)\.tgz
  180. }
  181. prog perl-text:String-Tokenizer = {
  182. version = %{V_string_tokenizer}
  183. url = http://www.cpan.org/modules/by-module/String/
  184. regex = String-Tokenizer-(__VER__)\.tar\.gz
  185. }
  186. %prep
  187. %setup -q -c
  188. %setup -q -T -D -a 1
  189. %setup -q -T -D -a 2
  190. %setup -q -T -D -a 3
  191. %setup -q -T -D -a 4
  192. %setup -q -T -D -a 5
  193. %setup -q -T -D -a 6
  194. %setup -q -T -D -a 7
  195. %setup -q -T -D -a 8
  196. %setup -q -T -D -a 9
  197. %setup -q -T -D -a 10
  198. %setup -q -T -D -a 11
  199. %setup -q -T -D -a 12
  200. %setup -q -T -D -a 13
  201. %setup -q -T -D -a 14
  202. %setup -q -T -D -a 15
  203. %setup -q -T -D -a 16
  204. %build
  205. %install
  206. rm -rf $RPM_BUILD_ROOT
  207. %{l_prefix}/bin/perl-openpkg prepare
  208. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  209. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  210. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  211. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  212. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  213. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  214. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  215. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  216. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  217. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  218. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  219. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  220. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  221. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} \
  222. -A TT_XS_ENABLE=y -A TT_XS_DEFAULT=y -A TT_DBI=n \
  223. -A TT_QUIET=n -A TT_ACCEPT=y \
  224. configure build install
  225. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  226. ( cd ogdlutils-%{V_ogdl}/c
  227. %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c
  228. ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o
  229. ) || exit $?
  230. %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install
  231. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  232. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  233. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  234. %files -f files
  235. %clean
  236. rm -rf $RPM_BUILD_ROOT