perl-parse.spec 8.6 KB

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