perl-parse.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. ##
  2. ## perl-parse.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 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.6
  26. %define V_config_inifiles 2.38
  27. %define V_config_general 2.29
  28. %define V_config_simple 4.58
  29. %define V_string_tokenizer 0.05
  30. %define V_parse_recdescent 1.94
  31. %define V_parse_recdescent_faq 3.94
  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.39
  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: OpenPKG
  49. Distribution: OpenPKG
  50. Class: BASE
  51. Group: Language
  52. License: GPL/Artistic
  53. Version: %{V_perl}
  54. Release: 20050602
  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. Source16: http://www.cpan.org/modules/by-module/String/String-Tokenizer-%{V_string_tokenizer}.tar.gz
  73. # build information
  74. Prefix: %{l_prefix}
  75. BuildRoot: %{l_buildroot}
  76. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util, perl-openpkg >= %{V_perl}-20040126
  77. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util
  78. AutoReq: no
  79. AutoReqProv: no
  80. %description
  81. Perl modules for use with parsing algorythms:
  82. - Config::IniFiles (%{V_config_inifiles})
  83. - Config::General (%{V_config_general})
  84. - Config::Simple (%{V_config_simple})
  85. - String::Tokenizer (%{V_string_tokenizer})
  86. - Parse::RecDescent (%{V_parse_recdescent})
  87. - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq})
  88. - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse})
  89. - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer})
  90. - Parse::Yapp (%{V_parse_yapp})
  91. - Parse::Earley (%{V_parse_earley})
  92. - ParseLex (%{V_parse_lex})
  93. - C::Scan (%{V_c_scan})
  94. - AppConfig (%{V_appconfig})
  95. - AppConfig::Std (%{V_appconfig_std})
  96. - Template (%{V_template})
  97. - YAML (%{V_yaml})
  98. - OGDL (%{V_ogdl})
  99. %track
  100. prog perl-parse:Config-General = {
  101. version = %{V_config_general}
  102. url = http://www.cpan.org/modules/by-module/Config/
  103. regex = Config-General-(__VER__)\.tar\.gz
  104. }
  105. prog perl-parse:Config-IniFiles = {
  106. version = %{V_config_inifiles}
  107. url = http://www.cpan.org/modules/by-module/Config/
  108. regex = Config-IniFiles-(__VER__)\.tar\.gz
  109. }
  110. prog perl-parse:Config-Simple = {
  111. version = %{V_config_simple}
  112. url = http://www.cpan.org/modules/by-module/Config/
  113. regex = Config-Simple-(__VER__)\.tar\.gz
  114. }
  115. prog perl-parse:Parse-RecDescent = {
  116. version = %{V_parse_recdescent}
  117. url = http://www.cpan.org/modules/by-module/Parse/
  118. regex = Parse-RecDescent-(__VER__)\.tar\.gz
  119. }
  120. prog perl-parse:Parse-RecDescent-Consumer = {
  121. version = %{V_parse_recdescent_consumer}
  122. url = http://www.cpan.org/modules/by-module/Parse/
  123. regex = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz
  124. }
  125. prog perl-parse:Parse-RecDescent-Deparse = {
  126. version = %{V_parse_recdescent_deparse}
  127. url = http://www.cpan.org/modules/by-module/Parse/
  128. regex = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz
  129. }
  130. prog perl-parse:Parse-RecDescent-FAQ = {
  131. version = %{V_parse_recdescent_faq}
  132. url = http://www.cpan.org/modules/by-module/Parse/
  133. regex = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz
  134. }
  135. prog perl-parse:Parse-Yapp = {
  136. version = %{V_parse_yapp}
  137. url = http://www.cpan.org/modules/by-module/Parse/
  138. regex = Parse-Yapp-(__VER__)\.tar\.gz
  139. }
  140. prog perl-parse:Parse-Earley = {
  141. version = %{V_parse_earley}
  142. url = http://www.cpan.org/modules/by-module/Parse/
  143. regex = Parse-Earley-(__VER__)\.tar\.gz
  144. }
  145. prog perl-parse:ParseLex = {
  146. version = %{V_parse_lex}
  147. url = http://www.cpan.org/modules/by-module/Parse/
  148. regex = ParseLex-(__VER__)\.tar\.gz
  149. }
  150. prog perl-parse:C-Scan = {
  151. version = %{V_c_scan}
  152. url = http://www.cpan.org/modules/by-module/C/
  153. regex = C-Scan-(__VER__)\.tar\.gz
  154. }
  155. prog perl-parse:AppConfig = {
  156. version = %{V_appconfig}
  157. url = http://www.cpan.org/modules/by-module/AppConfig/
  158. regex = AppConfig-(__VER__)\.tar\.gz
  159. }
  160. prog perl-parse:AppConfig-Std = {
  161. version = %{V_appconfig_std}
  162. url = http://www.cpan.org/modules/by-module/AppConfig/
  163. regex = AppConfig-Std-(__VER__)\.tar\.gz
  164. }
  165. prog perl-parse:Template = {
  166. version = %{V_template}
  167. url = http://www.cpan.org/modules/by-module/Template/
  168. regex = Template-Toolkit-(__VER__)\.tar\.gz
  169. }
  170. prog perl-parse:YAML = {
  171. version = %{V_yaml}
  172. url = http://www.cpan.org/modules/by-module/YAML/
  173. regex = YAML-(__VER__)\.tar\.gz
  174. }
  175. prog perl-parse:OGDL = {
  176. version = %{V_ogdl}
  177. url = http://prdownloads.sourceforge.net/ogdl/
  178. regex = ogdlutils-(__VER__)\.tgz
  179. }
  180. prog perl-text:String-Tokenizer = {
  181. version = %{V_string_tokenizer}
  182. url = http://www.cpan.org/modules/by-module/String/
  183. regex = String-Tokenizer-(__VER__)\.tar\.gz
  184. }
  185. %prep
  186. %setup -q -c
  187. %setup -q -T -D -a 1
  188. %setup -q -T -D -a 2
  189. %setup -q -T -D -a 3
  190. %setup -q -T -D -a 4
  191. %setup -q -T -D -a 5
  192. %setup -q -T -D -a 6
  193. %setup -q -T -D -a 7
  194. %setup -q -T -D -a 8
  195. %setup -q -T -D -a 9
  196. %setup -q -T -D -a 10
  197. %setup -q -T -D -a 11
  198. %setup -q -T -D -a 12
  199. %setup -q -T -D -a 13
  200. %setup -q -T -D -a 14
  201. %setup -q -T -D -a 15
  202. %setup -q -T -D -a 16
  203. %build
  204. %install
  205. rm -rf $RPM_BUILD_ROOT
  206. %{l_prefix}/bin/perl-openpkg prepare
  207. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  208. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  209. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  210. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  211. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  212. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  213. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  214. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  215. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  216. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  217. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  218. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  219. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  220. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} \
  221. -A TT_XS_ENABLE=y -A TT_XS_DEFAULT=y -A TT_DBI=n \
  222. -A TT_QUIET=n -A TT_ACCEPT=y \
  223. configure build install
  224. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  225. ( cd ogdlutils-%{V_ogdl}/c
  226. %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c
  227. ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o
  228. ) || exit $?
  229. %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install
  230. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  231. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  232. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  233. %files -f files
  234. %clean
  235. rm -rf $RPM_BUILD_ROOT