perl-parse.spec 7.7 KB

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