perl-parse.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. ##
  2. ## perl-parse.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 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.57
  30. %define V_parse_recdescent 1.94
  31. %define V_parse_recdescent_faq 3.92
  32. %define V_parse_recdescent_deparse 1.00
  33. %define V_parse_recdescent_consumer 1.03
  34. %define V_parse_yapp 1.05
  35. %define V_parse_earley 0.15
  36. %define V_parse_lex 2.15
  37. %define V_c_scan 0.74
  38. %define V_appconfig 1.56
  39. %define V_appconfig_std 1.07
  40. %define V_template 2.14
  41. %define V_yaml 0.35
  42. %define V_ogdl 20041124
  43. # package information
  44. Name: perl-parse
  45. Summary: Perl Modules for use with parsing algorythms
  46. URL: http://www.cpan.org/
  47. Vendor: Perl Community
  48. Packager: The OpenPKG Project
  49. Distribution: OpenPKG
  50. Class: BASE
  51. Group: Language
  52. License: GPL/Artistic
  53. Version: %{V_perl}
  54. Release: 20041207
  55. # list of sources
  56. Source0: http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz
  57. Source1: http://www.cpan.org/modules/by-module/Config/Config-General-%{V_config_general}.tar.gz
  58. Source2: http://www.cpan.org/modules/by-module/Config/Config-Simple-%{V_config_simple}.tar.gz
  59. Source3: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-%{V_parse_recdescent}.tar.gz
  60. Source4: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-FAQ-%{V_parse_recdescent_faq}.tar.gz
  61. Source5: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Deparse-%{V_parse_recdescent_deparse}.tar.gz
  62. Source6: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Consumer-%{V_parse_recdescent_consumer}.tar.gz
  63. Source7: http://www.cpan.org/modules/by-module/Parse/Parse-Yapp-%{V_parse_yapp}.tar.gz
  64. Source8: http://www.cpan.org/modules/by-module/Parse/Parse-Earley-%{V_parse_earley}.tar.gz
  65. Source9: http://www.cpan.org/modules/by-module/Parse/ParseLex-%{V_parse_lex}.tar.gz
  66. Source10: http://www.cpan.org/modules/by-module/C/C-Scan-%{V_c_scan}.tar.gz
  67. Source11: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-%{V_appconfig}.tar.gz
  68. Source12: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-Std-%{V_appconfig_std}.tar.gz
  69. Source13: http://www.cpan.org/modules/by-module/Template/Template-Toolkit-%{V_template}.tar.gz
  70. Source14: http://www.cpan.org/modules/by-module/YAML/YAML-%{V_yaml}.tar.gz
  71. Source15: http://osdn.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz
  72. # build information
  73. Prefix: %{l_prefix}
  74. BuildRoot: %{l_buildroot}
  75. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util, perl-openpkg >= %{V_perl}-20040126
  76. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util
  77. AutoReq: no
  78. AutoReqProv: no
  79. %description
  80. Perl modules for use with parsing algorythms:
  81. - Config::IniFiles (%{V_config_inifiles})
  82. - Config::General (%{V_config_general})
  83. - Config::Simple (%{V_config_simple})
  84. - Parse::RecDescent (%{V_parse_recdescent})
  85. - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq})
  86. - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse})
  87. - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer})
  88. - Parse::Yapp (%{V_parse_yapp})
  89. - Parse::Earley (%{V_parse_earley})
  90. - ParseLex (%{V_parse_lex})
  91. - C::Scan (%{V_c_scan})
  92. - AppConfig (%{V_appconfig})
  93. - AppConfig::Std (%{V_appconfig_std})
  94. - Template (%{V_template})
  95. - YAML (%{V_yaml})
  96. - OGDL (%{V_ogdl})
  97. %track
  98. prog perl-parse:Config-General = {
  99. version = %{V_config_general}
  100. url = http://www.cpan.org/modules/by-module/Config/
  101. regex = Config-General-(__VER__)\.tar\.gz
  102. }
  103. prog perl-parse:Config-IniFiles = {
  104. version = %{V_config_inifiles}
  105. url = http://www.cpan.org/modules/by-module/Config/
  106. regex = Config-IniFiles-(__VER__)\.tar\.gz
  107. }
  108. prog perl-parse:Config-Simple = {
  109. version = %{V_config_simple}
  110. url = http://www.cpan.org/modules/by-module/Config/
  111. regex = Config-Simple-(__VER__)\.tar\.gz
  112. }
  113. prog perl-parse:Parse-RecDescent = {
  114. version = %{V_parse_recdescent}
  115. url = http://www.cpan.org/modules/by-module/Parse/
  116. regex = Parse-RecDescent-(__VER__)\.tar\.gz
  117. }
  118. prog perl-parse:Parse-RecDescent-Consumer = {
  119. version = %{V_parse_recdescent_consumer}
  120. url = http://www.cpan.org/modules/by-module/Parse/
  121. regex = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz
  122. }
  123. prog perl-parse:Parse-RecDescent-Deparse = {
  124. version = %{V_parse_recdescent_deparse}
  125. url = http://www.cpan.org/modules/by-module/Parse/
  126. regex = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz
  127. }
  128. prog perl-parse:Parse-RecDescent-FAQ = {
  129. version = %{V_parse_recdescent_faq}
  130. url = http://www.cpan.org/modules/by-module/Parse/
  131. regex = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz
  132. }
  133. prog perl-parse:Parse-Yapp = {
  134. version = %{V_parse_yapp}
  135. url = http://www.cpan.org/modules/by-module/Parse/
  136. regex = Parse-Yapp-(__VER__)\.tar\.gz
  137. }
  138. prog perl-parse:Parse-Earley = {
  139. version = %{V_parse_earley}
  140. url = http://www.cpan.org/modules/by-module/Parse/
  141. regex = Parse-Earley-(__VER__)\.tar\.gz
  142. }
  143. prog perl-parse:ParseLex = {
  144. version = %{V_parse_lex}
  145. url = http://www.cpan.org/modules/by-module/Parse/
  146. regex = ParseLex-(__VER__)\.tar\.gz
  147. }
  148. prog perl-parse:C-Scan = {
  149. version = %{V_c_scan}
  150. url = http://www.cpan.org/modules/by-module/C/
  151. regex = C-Scan-(__VER__)\.tar\.gz
  152. }
  153. prog perl-parse:AppConfig = {
  154. version = %{V_appconfig}
  155. url = http://www.cpan.org/modules/by-module/AppConfig/
  156. regex = AppConfig-(__VER__)\.tar\.gz
  157. }
  158. prog perl-parse:AppConfig-Std = {
  159. version = %{V_appconfig_std}
  160. url = http://www.cpan.org/modules/by-module/AppConfig/
  161. regex = AppConfig-Std-(__VER__)\.tar\.gz
  162. }
  163. prog perl-parse:Template = {
  164. version = %{V_template}
  165. url = http://www.cpan.org/modules/by-module/Template/
  166. regex = Template-Toolkit-(__VER__)\.tar\.gz
  167. }
  168. prog perl-parse:YAML = {
  169. version = %{V_yaml}
  170. url = http://www.cpan.org/modules/by-module/YAML/
  171. regex = YAML-(__VER__)\.tar\.gz
  172. }
  173. prog perl-parse:OGDL = {
  174. version = %{V_ogdl}
  175. url = http://prdownloads.sourceforge.net/ogdl/
  176. regex = ogdlutils-(__VER__)\.tgz
  177. }
  178. %prep
  179. %setup -q -c
  180. %setup -q -T -D -a 1
  181. %setup -q -T -D -a 2
  182. %setup -q -T -D -a 3
  183. %setup -q -T -D -a 4
  184. %setup -q -T -D -a 5
  185. %setup -q -T -D -a 6
  186. %setup -q -T -D -a 7
  187. %setup -q -T -D -a 8
  188. %setup -q -T -D -a 9
  189. %setup -q -T -D -a 10
  190. %setup -q -T -D -a 11
  191. %setup -q -T -D -a 12
  192. %setup -q -T -D -a 13
  193. %setup -q -T -D -a 14
  194. %setup -q -T -D -a 15
  195. %build
  196. %install
  197. rm -rf $RPM_BUILD_ROOT
  198. %{l_prefix}/bin/perl-openpkg prepare
  199. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  200. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  201. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  202. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  203. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  204. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  205. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  206. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  207. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  208. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  209. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  210. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  211. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  212. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} \
  213. -A TT_XS_ENABLE=y -A TT_XS_DEFAULT=y -A TT_DBI=n \
  214. -A TT_QUIET=n -A TT_ACCEPT=y \
  215. configure build install
  216. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  217. ( cd ogdlutils-%{V_ogdl}/c
  218. %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c
  219. ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o
  220. ) || exit $?
  221. %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install
  222. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  223. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  224. %files -f files
  225. %clean
  226. rm -rf $RPM_BUILD_ROOT