perl-parse.spec 7.0 KB

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