perl-parse.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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.5
  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.91
  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. # package information
  42. Name: perl-parse
  43. Summary: Perl Modules for use with parsing algorythms
  44. URL: http://www.cpan.org/
  45. Vendor: Perl Community
  46. Packager: The OpenPKG Project
  47. Distribution: OpenPKG
  48. Class: BASE
  49. Group: Language
  50. License: GPL/Artistic
  51. Version: %{V_perl}
  52. Release: 20041107
  53. # list of sources
  54. Source0: http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz
  55. Source1: http://www.cpan.org/modules/by-module/Config/Config-General-%{V_config_general}.tar.gz
  56. Source2: http://www.cpan.org/modules/by-module/Config/Config-Simple-%{V_config_simple}.tar.gz
  57. Source3: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-%{V_parse_recdescent}.tar.gz
  58. Source4: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-FAQ-%{V_parse_recdescent_faq}.tar.gz
  59. Source5: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Deparse-%{V_parse_recdescent_deparse}.tar.gz
  60. Source6: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Consumer-%{V_parse_recdescent_consumer}.tar.gz
  61. Source7: http://www.cpan.org/modules/by-module/Parse/Parse-Yapp-%{V_parse_yapp}.tar.gz
  62. Source8: http://www.cpan.org/modules/by-module/Parse/Parse-Earley-%{V_parse_earley}.tar.gz
  63. Source9: http://www.cpan.org/modules/by-module/Parse/ParseLex-%{V_parse_lex}.tar.gz
  64. Source10: http://www.cpan.org/modules/by-module/C/C-Scan-%{V_c_scan}.tar.gz
  65. Source11: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-%{V_appconfig}.tar.gz
  66. Source12: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-Std-%{V_appconfig_std}.tar.gz
  67. Source13: http://www.cpan.org/modules/by-module/Template/Template-Toolkit-%{V_template}.tar.gz
  68. # build information
  69. Prefix: %{l_prefix}
  70. BuildRoot: %{l_buildroot}
  71. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util, perl-openpkg >= %{V_perl}-20040126
  72. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-util
  73. AutoReq: no
  74. AutoReqProv: no
  75. %description
  76. Perl modules for use with parsing algorythms:
  77. - Config::IniFiles (%{V_config_inifiles})
  78. - Config::General (%{V_config_general})
  79. - Config::Simple (%{V_config_simple})
  80. - Parse::RecDescent (%{V_parse_recdescent})
  81. - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq})
  82. - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse})
  83. - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer})
  84. - Parse::Yapp (%{V_parse_yapp})
  85. - Parse::Earley (%{V_parse_earley})
  86. - ParseLex (%{V_parse_lex})
  87. - C::Scan (%{V_c_scan})
  88. - AppConfig (%{V_appconfig})
  89. - AppConfig::Std (%{V_appconfig_std})
  90. - Template (%{V_template})
  91. %track
  92. prog perl-parse:Config-General = {
  93. version = %{V_config_general}
  94. url = http://www.cpan.org/modules/by-module/Config/
  95. regex = Config-General-(__VER__)\.tar\.gz
  96. }
  97. prog perl-parse:Config-IniFiles = {
  98. version = %{V_config_inifiles}
  99. url = http://www.cpan.org/modules/by-module/Config/
  100. regex = Config-IniFiles-(__VER__)\.tar\.gz
  101. }
  102. prog perl-parse:Config-Simple = {
  103. version = %{V_config_simple}
  104. url = http://www.cpan.org/modules/by-module/Config/
  105. regex = Config-Simple-(__VER__)\.tar\.gz
  106. }
  107. prog perl-parse:Parse-RecDescent = {
  108. version = %{V_parse_recdescent}
  109. url = http://www.cpan.org/modules/by-module/Parse/
  110. regex = Parse-RecDescent-(__VER__)\.tar\.gz
  111. }
  112. prog perl-parse:Parse-RecDescent-Consumer = {
  113. version = %{V_parse_recdescent_consumer}
  114. url = http://www.cpan.org/modules/by-module/Parse/
  115. regex = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz
  116. }
  117. prog perl-parse:Parse-RecDescent-Deparse = {
  118. version = %{V_parse_recdescent_deparse}
  119. url = http://www.cpan.org/modules/by-module/Parse/
  120. regex = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz
  121. }
  122. prog perl-parse:Parse-RecDescent-FAQ = {
  123. version = %{V_parse_recdescent_faq}
  124. url = http://www.cpan.org/modules/by-module/Parse/
  125. regex = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz
  126. }
  127. prog perl-parse:Parse-Yapp = {
  128. version = %{V_parse_yapp}
  129. url = http://www.cpan.org/modules/by-module/Parse/
  130. regex = Parse-Yapp-(__VER__)\.tar\.gz
  131. }
  132. prog perl-parse:Parse-Earley = {
  133. version = %{V_parse_earley}
  134. url = http://www.cpan.org/modules/by-module/Parse/
  135. regex = Parse-Earley-(__VER__)\.tar\.gz
  136. }
  137. prog perl-parse:ParseLex = {
  138. version = %{V_parse_lex}
  139. url = http://www.cpan.org/modules/by-module/Parse/
  140. regex = ParseLex-(__VER__)\.tar\.gz
  141. }
  142. prog perl-parse:C-Scan = {
  143. version = %{V_c_scan}
  144. url = http://www.cpan.org/modules/by-module/C/
  145. regex = C-Scan-(__VER__)\.tar\.gz
  146. }
  147. prog perl-parse:AppConfig = {
  148. version = %{V_appconfig}
  149. url = http://www.cpan.org/modules/by-module/AppConfig/
  150. regex = AppConfig-(__VER__)\.tar\.gz
  151. }
  152. prog perl-parse:AppConfig-Std = {
  153. version = %{V_appconfig_std}
  154. url = http://www.cpan.org/modules/by-module/AppConfig/
  155. regex = AppConfig-Std-(__VER__)\.tar\.gz
  156. }
  157. prog perl-parse:Template = {
  158. version = %{V_template}
  159. url = http://www.cpan.org/modules/by-module/Template/
  160. regex = Template-Toolkit-(__VER__)\.tar\.gz
  161. }
  162. %prep
  163. %setup -q -c
  164. %setup -q -T -D -a 1
  165. %setup -q -T -D -a 2
  166. %setup -q -T -D -a 3
  167. %setup -q -T -D -a 4
  168. %setup -q -T -D -a 5
  169. %setup -q -T -D -a 6
  170. %setup -q -T -D -a 7
  171. %setup -q -T -D -a 8
  172. %setup -q -T -D -a 9
  173. %setup -q -T -D -a 10
  174. %setup -q -T -D -a 11
  175. %setup -q -T -D -a 12
  176. %setup -q -T -D -a 13
  177. %build
  178. %install
  179. rm -rf $RPM_BUILD_ROOT
  180. %{l_prefix}/bin/perl-openpkg prepare
  181. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  182. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  183. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  184. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  185. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  186. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  187. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  188. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  189. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  190. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  191. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} \
  195. -A TT_XS_ENABLE=y -A TT_XS_DEFAULT=y -A TT_DBI=n \
  196. -A TT_QUIET=n -A TT_ACCEPT=y \
  197. configure build install
  198. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  199. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  200. %files -f files
  201. %clean
  202. rm -rf $RPM_BUILD_ROOT