perl-parse.spec 12 KB

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