perl-text.spec 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. ##
  2. ## perl-text.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # versions of individual parts
  25. %define V_perl 5.8.6
  26. %define V_text_template 1.44
  27. %define V_text_wrapper 1.000
  28. %define V_text_reform 1.11
  29. %define V_text_autoformat 1.13
  30. %define V_text_quoted 1.8
  31. %define V_text_shellwords 1.07
  32. %define V_text_vimcolor 0.09
  33. %define V_locale_maketext 1.09
  34. %define V_string_approx 3.25
  35. %define V_string_format 1.13
  36. %define V_string_shellquote 1.03
  37. %define V_pod_escapes 1.04
  38. %define V_pod_simple 3.02
  39. # package information
  40. Name: perl-text
  41. Summary: Perl Text Manipulating Modules
  42. URL: http://www.cpan.org/
  43. Vendor: Perl Community
  44. Packager: OpenPKG
  45. Distribution: OpenPKG
  46. Class: BASE
  47. Group: Language
  48. License: GPL/Artistic
  49. Version: %{V_perl}
  50. Release: 20050525
  51. # list of sources
  52. Source0: http://www.cpan.org/modules/by-module/Text/Text-Template-%{V_text_template}.tar.gz
  53. Source1: http://www.cpan.org/modules/by-module/Text/Text-Wrapper-%{V_text_wrapper}.tar.gz
  54. Source2: http://www.cpan.org/modules/by-module/Text/Text-Reform-%{V_text_reform}.tar.gz
  55. Source3: http://www.cpan.org/modules/by-module/Text/Text-Autoformat-%{V_text_autoformat}.tar.gz
  56. Source4: http://www.cpan.org/modules/by-module/Text/Text-Quoted-%{V_text_quoted}.tar.gz
  57. Source5: http://www.cpan.org/modules/by-module/Text/Text-Shellwords-%{V_text_shellwords}.tar.gz
  58. Source6: http://www.cpan.org/modules/by-module/Text/Text-VimColor-%{V_text_vimcolor}.tar.gz
  59. Source7: http://www.cpan.org/modules/by-module/Locale/Locale-Maketext-%{V_locale_maketext}.tar.gz
  60. Source8: http://www.cpan.org/modules/by-module/String/String-Approx-%{V_string_approx}.tar.gz
  61. Source9: http://www.cpan.org/modules/by-module/String/String-Format-%{V_string_format}.tar.gz
  62. Source10: http://www.cpan.org/modules/by-module/String/String-ShellQuote-%{V_string_shellquote}.tar.gz
  63. Source11: http://www.cpan.org/modules/by-module/Pod/Pod-Escapes-%{V_pod_escapes}.tar.gz
  64. Source12: http://www.cpan.org/modules/by-module/Pod/Pod-Simple-%{V_pod_simple}.tar.gz
  65. # build information
  66. Prefix: %{l_prefix}
  67. BuildRoot: %{l_buildroot}
  68. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  69. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  70. BuildPreReq: perl-util
  71. PreReq: perl-util
  72. AutoReq: no
  73. AutoReqProv: no
  74. %description
  75. Various modules for text manipulation with perl
  76. - Text::Template (%{V_text_template})
  77. - Text::Wrapper (%{V_text_wrapper})
  78. - Text::Reform (%{V_text_reform})
  79. - Text::Autoformat (%{V_text_autoformat})
  80. - Text::Quoted (%{V_text_quoted})
  81. - Text::Shellwords (%{V_text_shellwords})
  82. - Text::VimColor (%{V_text_vimcolor})
  83. - Locale::Maketext (%{V_locale_maketext})
  84. - String::Approx (%{V_string_approx})
  85. - String::Format (%{V_string_format})
  86. - String::ShellQuote (%{V_string_shellquote})
  87. - Pod::Escapes (%{V_pod_escapes})
  88. - Pod::Simple (%{V_pod_simple})
  89. %track
  90. prog perl-text:Text-Autoformat = {
  91. version = %{V_text_autoformat}
  92. url = http://www.cpan.org/modules/by-module/Text/
  93. regex = Text-Autoformat-(__VER__)\.tar\.gz
  94. }
  95. prog perl-text:Text-Quoted = {
  96. version = %{V_text_quoted}
  97. url = http://www.cpan.org/modules/by-module/Text/
  98. regex = Text-Quoted-(__VER__)\.tar\.gz
  99. }
  100. prog perl-text:Text-Reform = {
  101. version = %{V_text_reform}
  102. url = http://www.cpan.org/modules/by-module/Text/
  103. regex = Text-Reform-(__VER__)\.tar\.gz
  104. }
  105. prog perl-text:Text-Template = {
  106. version = %{V_text_template}
  107. url = http://www.cpan.org/modules/by-module/Text/
  108. regex = Text-Template-(__VER__)\.tar\.gz
  109. }
  110. prog perl-text:Text-Wrapper = {
  111. version = %{V_text_wrapper}
  112. url = http://www.cpan.org/modules/by-module/Text/
  113. regex = Text-Wrapper-(__VER__)\.tar\.gz
  114. }
  115. prog perl-text:Text-Shellwords = {
  116. version = %{V_text_shellwords}
  117. url = http://www.cpan.org/modules/by-module/Text/
  118. regex = Text-Shellwords-(__VER__)\.tar\.gz
  119. }
  120. prog perl-text:Text-VimColor = {
  121. version = %{V_text_vimcolor}
  122. url = http://www.cpan.org/modules/by-module/Text/
  123. regex = Text-VimColor-(__VER__)\.tar\.gz
  124. }
  125. prog perl-text:Locale-Maketext = {
  126. version = %{V_locale_maketext}
  127. url = http://www.cpan.org/modules/by-module/Locale/
  128. regex = Locale-Maketext-(__VER__)\.tar\.gz
  129. }
  130. prog perl-text:String-Approx = {
  131. version = %{V_string_approx}
  132. url = http://www.cpan.org/modules/by-module/String/
  133. regex = String-Approx-(__VER__)\.tar\.gz
  134. }
  135. prog perl-text:String-Format = {
  136. version = %{V_string_format}
  137. url = http://www.cpan.org/modules/by-module/String/
  138. regex = String-Format-(__VER__)\.tar\.gz
  139. }
  140. prog perl-text:String-ShellQuote = {
  141. version = %{V_string_shellquote}
  142. url = http://www.cpan.org/modules/by-module/String/
  143. regex = String-ShellQuote-(__VER__)\.tar\.gz
  144. }
  145. prog perl-text:Pod-Escapes = {
  146. version = %{V_pod_escapes}
  147. url = http://www.cpan.org/modules/by-module/Pod/
  148. regex = Pod-Escapes-(__VER__)\.tar\.gz
  149. }
  150. prog perl-text:Pod-Simple = {
  151. version = %{V_pod_simple}
  152. url = http://www.cpan.org/modules/by-module/Pod/
  153. regex = Pod-Simple-(\d+\.\d+(\.\d+)*)\.tar\.gz
  154. }
  155. %prep
  156. %setup -q -c
  157. %setup -q -T -D -a 1
  158. %setup -q -T -D -a 2
  159. %setup -q -T -D -a 3
  160. %setup -q -T -D -a 4
  161. %setup -q -T -D -a 5
  162. %setup -q -T -D -a 6
  163. %setup -q -T -D -a 7
  164. %setup -q -T -D -a 8
  165. %setup -q -T -D -a 9
  166. %setup -q -T -D -a 10
  167. %setup -q -T -D -a 11
  168. %setup -q -T -D -a 12
  169. %build
  170. %install
  171. rm -rf $RPM_BUILD_ROOT
  172. %{l_prefix}/bin/perl-openpkg prepare
  173. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  174. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  175. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  176. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  177. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  178. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  179. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  180. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  181. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  182. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  183. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  184. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  185. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  186. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  187. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  188. %files -f files
  189. %clean
  190. rm -rf $RPM_BUILD_ROOT