perl-text.spec 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. ##
  2. ## perl-text.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2005 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.6
  27. %define V_text_template 1.44
  28. %define V_text_wrapper 1.000
  29. %define V_text_reform 1.11
  30. %define V_text_autoformat 1.12
  31. %define V_text_quoted 1.8
  32. %define V_text_shellwords 1.07
  33. %define V_text_vimcolor 0.08
  34. %define V_locale_maketext 1.09
  35. %define V_string_approx 3.24
  36. %define V_string_format 1.13
  37. %define V_string_shellquote 1.00
  38. # package information
  39. Name: perl-text
  40. Summary: Perl Text Manipulating Modules
  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: 20050103
  50. # list of sources
  51. Source0: http://www.cpan.org/modules/by-module/Text/Text-Template-%{V_text_template}.tar.gz
  52. Source1: http://www.cpan.org/modules/by-module/Text/Text-Wrapper-%{V_text_wrapper}.tar.gz
  53. Source2: http://www.cpan.org/modules/by-module/Text/Text-Reform-%{V_text_reform}.tar.gz
  54. Source3: http://www.cpan.org/modules/by-module/Text/Text-Autoformat-%{V_text_autoformat}.tar.gz
  55. Source4: http://www.cpan.org/modules/by-module/Text/Text-Quoted-%{V_text_quoted}.tar.gz
  56. Source5: http://www.cpan.org/modules/by-module/Text/Text-Shellwords-%{V_text_shellwords}.tar.gz
  57. Source6: http://www.cpan.org/modules/by-module/Text/Text-VimColor-%{V_text_vimcolor}.tar.gz
  58. Source7: http://www.cpan.org/modules/by-module/Locale/Locale-Maketext-%{V_locale_maketext}.tar.gz
  59. Source8: http://www.cpan.org/modules/by-module/String/String-Approx-%{V_string_approx}.tar.gz
  60. Source9: http://www.cpan.org/modules/by-module/String/String-Format-%{V_string_format}.tar.gz
  61. Source10: http://www.cpan.org/modules/by-module/String/String-ShellQuote-%{V_string_shellquote}.tar.gz
  62. # build information
  63. Prefix: %{l_prefix}
  64. BuildRoot: %{l_buildroot}
  65. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  66. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  67. BuildPreReq: perl-util
  68. PreReq: perl-util
  69. AutoReq: no
  70. AutoReqProv: no
  71. %description
  72. Various modules for text manipulation with perl
  73. - Text::Template (%{V_text_template})
  74. - Text::Wrapper (%{V_text_wrapper})
  75. - Text::Reform (%{V_text_reform})
  76. - Text::Autoformat (%{V_text_autoformat})
  77. - Text::Quoted (%{V_text_quoted})
  78. - Text::Shellwords (%{V_text_shellwords})
  79. - Text::VimColor (%{V_text_vimcolor})
  80. - Locale::Maketext (%{V_locale_maketext})
  81. - String::Approx (%{V_string_approx})
  82. - String::Format (%{V_string_format})
  83. - String::ShellQuote (%{V_string_shellquote})
  84. %track
  85. prog perl-text:Text-Autoformat = {
  86. version = %{V_text_autoformat}
  87. url = http://www.cpan.org/modules/by-module/Text/
  88. regex = Text-Autoformat-(__VER__)\.tar\.gz
  89. }
  90. prog perl-text:Text-Quoted = {
  91. version = %{V_text_quoted}
  92. url = http://www.cpan.org/modules/by-module/Text/
  93. regex = Text-Quoted-(__VER__)\.tar\.gz
  94. }
  95. prog perl-text:Text-Reform = {
  96. version = %{V_text_reform}
  97. url = http://www.cpan.org/modules/by-module/Text/
  98. regex = Text-Reform-(__VER__)\.tar\.gz
  99. }
  100. prog perl-text:Text-Template = {
  101. version = %{V_text_template}
  102. url = http://www.cpan.org/modules/by-module/Text/
  103. regex = Text-Template-(__VER__)\.tar\.gz
  104. }
  105. prog perl-text:Text-Wrapper = {
  106. version = %{V_text_wrapper}
  107. url = http://www.cpan.org/modules/by-module/Text/
  108. regex = Text-Wrapper-(__VER__)\.tar\.gz
  109. }
  110. prog perl-text:Text-Shellwords = {
  111. version = %{V_text_shellwords}
  112. url = http://www.cpan.org/modules/by-module/Text/
  113. regex = Text-Shellwords-(__VER__)\.tar\.gz
  114. }
  115. prog perl-text:Text-VimColor = {
  116. version = %{V_text_vimcolor}
  117. url = http://www.cpan.org/modules/by-module/Text/
  118. regex = Text-VimColor-(__VER__)\.tar\.gz
  119. }
  120. prog perl-text:Locale-Maketext = {
  121. version = %{V_locale_maketext}
  122. url = http://www.cpan.org/modules/by-module/Locale/
  123. regex = Locale-Maketext-(__VER__)\.tar\.gz
  124. }
  125. prog perl-text:String-Approx = {
  126. version = %{V_string_approx}
  127. url = http://www.cpan.org/modules/by-module/String/
  128. regex = String-Approx-(__VER__)\.tar\.gz
  129. }
  130. prog perl-text:String-Format = {
  131. version = %{V_string_format}
  132. url = http://www.cpan.org/modules/by-module/String/
  133. regex = String-Format-(__VER__)\.tar\.gz
  134. }
  135. prog perl-text:String-ShellQuote = {
  136. version = %{V_string_shellquote}
  137. url = http://www.cpan.org/modules/by-module/String/
  138. regex = String-ShellQuote-(__VER__)\.tar\.gz
  139. }
  140. %prep
  141. %setup -q -c
  142. %setup -q -T -D -a 1
  143. %setup -q -T -D -a 2
  144. %setup -q -T -D -a 3
  145. %setup -q -T -D -a 4
  146. %setup -q -T -D -a 5
  147. %setup -q -T -D -a 6
  148. %setup -q -T -D -a 7
  149. %setup -q -T -D -a 8
  150. %setup -q -T -D -a 9
  151. %setup -q -T -D -a 10
  152. %build
  153. %install
  154. rm -rf $RPM_BUILD_ROOT
  155. %{l_prefix}/bin/perl-openpkg prepare
  156. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  157. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  158. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  159. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  160. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  161. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  162. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  163. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  164. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  165. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  166. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  167. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  168. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  169. %files -f files
  170. %clean
  171. rm -rf $RPM_BUILD_ROOT