perl-text.spec 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. ##
  2. ## perl-text.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 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.10.0
  26. %define V_text_template 1.44
  27. %define V_text_wrapper 1.01
  28. %define V_text_reform 1.11
  29. %define V_text_autoformat 1.13
  30. %define V_text_quoted 2.03
  31. %define V_text_shellwords 1.08
  32. %define V_text_vimcolor 0.11
  33. %define V_text_bargraph 1.0
  34. %define V_text_graph 0.23
  35. %define V_text_asciitable 0.18
  36. %define V_string_approx 3.26
  37. %define V_string_format 1.14
  38. %define V_string_shellquote 1.03
  39. %define V_pod_escapes 1.04
  40. %define V_pod_simple 3.05
  41. # package information
  42. Name: perl-text
  43. Summary: Perl Text Manipulating Modules
  44. URL: http://www.cpan.org/
  45. Vendor: Perl Community
  46. Packager: OpenPKG Foundation e.V.
  47. Distribution: OpenPKG Community
  48. Class: BASE
  49. Group: Perl
  50. License: GPL/Artistic
  51. Version: %{V_perl}
  52. Release: 20071219
  53. # list of sources
  54. Source0: http://www.cpan.org/modules/by-module/Text/Text-Template-%{V_text_template}.tar.gz
  55. Source1: http://www.cpan.org/modules/by-module/Text/Text-Wrapper-%{V_text_wrapper}.tar.gz
  56. Source2: http://www.cpan.org/modules/by-module/Text/Text-Reform-%{V_text_reform}.tar.gz
  57. Source3: http://www.cpan.org/modules/by-module/Text/Text-Autoformat-%{V_text_autoformat}.tar.gz
  58. Source4: http://www.cpan.org/modules/by-module/Text/Text-Quoted-%{V_text_quoted}.tar.gz
  59. Source5: http://www.cpan.org/modules/by-module/Text/Text-Shellwords-%{V_text_shellwords}.tar.gz
  60. Source6: http://www.cpan.org/modules/by-module/Text/Text-VimColor-%{V_text_vimcolor}.tar.gz
  61. Source7: http://www.cpan.org/modules/by-module/Text/Text-BarGraph-%{V_text_bargraph}.tar.gz
  62. Source8: http://www.cpan.org/modules/by-module/Text/Text-Graph-%{V_text_graph}.tar.gz
  63. Source9: http://www.cpan.org/modules/by-module/Text/Text-ASCIITable-%{V_text_asciitable}.tar.gz
  64. Source10: http://www.cpan.org/modules/by-module/String/String-Approx-%{V_string_approx}.tar.gz
  65. Source11: http://www.cpan.org/modules/by-module/String/String-Format-%{V_string_format}.tar.gz
  66. Source12: http://www.cpan.org/modules/by-module/String/String-ShellQuote-%{V_string_shellquote}.tar.gz
  67. Source13: http://www.cpan.org/modules/by-module/Pod/Pod-Escapes-%{V_pod_escapes}.tar.gz
  68. Source14: http://www.cpan.org/modules/by-module/Pod/Pod-Simple-%{V_pod_simple}.tar.gz
  69. # build information
  70. Prefix: %{l_prefix}
  71. BuildRoot: %{l_buildroot}
  72. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  73. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  74. BuildPreReq: perl-util, perl-locale
  75. PreReq: perl-util, perl-locale
  76. AutoReq: no
  77. AutoReqProv: no
  78. %description
  79. Various modules for text manipulation with perl
  80. - Text::Template (%{V_text_template})
  81. - Text::Wrapper (%{V_text_wrapper})
  82. - Text::Reform (%{V_text_reform})
  83. - Text::Autoformat (%{V_text_autoformat})
  84. - Text::Quoted (%{V_text_quoted})
  85. - Text::Shellwords (%{V_text_shellwords})
  86. - Text::VimColor (%{V_text_vimcolor})
  87. - Text::BarGraph (%{V_text_bargraph})
  88. - Text::Graph (%{V_text_graph})
  89. - Text::ASCIITable (%{V_text_asciitable})
  90. - String::Approx (%{V_string_approx})
  91. - String::Format (%{V_string_format})
  92. - String::ShellQuote (%{V_string_shellquote})
  93. - Pod::Escapes (%{V_pod_escapes})
  94. - Pod::Simple (%{V_pod_simple})
  95. %track
  96. prog perl-text:Text-Autoformat = {
  97. version = %{V_text_autoformat}
  98. url = http://www.cpan.org/modules/by-module/Text/
  99. regex = Text-Autoformat-(__VER__)\.tar\.gz
  100. }
  101. prog perl-text:Text-Quoted = {
  102. version = %{V_text_quoted}
  103. url = http://www.cpan.org/modules/by-module/Text/
  104. regex = Text-Quoted-(__VER__)\.tar\.gz
  105. }
  106. prog perl-text:Text-Reform = {
  107. version = %{V_text_reform}
  108. url = http://www.cpan.org/modules/by-module/Text/
  109. regex = Text-Reform-(__VER__)\.tar\.gz
  110. }
  111. prog perl-text:Text-Template = {
  112. version = %{V_text_template}
  113. url = http://www.cpan.org/modules/by-module/Text/
  114. regex = Text-Template-(__VER__)\.tar\.gz
  115. }
  116. prog perl-text:Text-Wrapper = {
  117. version = %{V_text_wrapper}
  118. url = http://www.cpan.org/modules/by-module/Text/
  119. regex = Text-Wrapper-(__VER__)\.tar\.gz
  120. }
  121. prog perl-text:Text-Shellwords = {
  122. version = %{V_text_shellwords}
  123. url = http://www.cpan.org/modules/by-module/Text/
  124. regex = Text-Shellwords-(__VER__)\.tar\.gz
  125. }
  126. prog perl-text:Text-VimColor = {
  127. version = %{V_text_vimcolor}
  128. url = http://www.cpan.org/modules/by-module/Text/
  129. regex = Text-VimColor-(__VER__)\.tar\.gz
  130. }
  131. prog perl-text:Text-BarGraph = {
  132. version = %{V_text_bargraph}
  133. url = http://www.cpan.org/modules/by-module/Text/
  134. regex = Text-BarGraph-(__VER__)\.tar\.gz
  135. }
  136. prog perl-text:Text-Graph = {
  137. version = %{V_text_graph}
  138. url = http://www.cpan.org/modules/by-module/Text/
  139. regex = Text-Graph-(__VER__)\.tar\.gz
  140. }
  141. prog perl-text:Text-ASCIITable = {
  142. version = %{V_text_asciitable}
  143. url = http://www.cpan.org/modules/by-module/Text/
  144. regex = Text-ASCIITable-(__VER__)\.tar\.gz
  145. }
  146. prog perl-text:String-Approx = {
  147. version = %{V_string_approx}
  148. url = http://www.cpan.org/modules/by-module/String/
  149. regex = String-Approx-(__VER__)\.tar\.gz
  150. }
  151. prog perl-text:String-Format = {
  152. version = %{V_string_format}
  153. url = http://www.cpan.org/modules/by-module/String/
  154. regex = String-Format-(__VER__)\.tar\.gz
  155. }
  156. prog perl-text:String-ShellQuote = {
  157. version = %{V_string_shellquote}
  158. url = http://www.cpan.org/modules/by-module/String/
  159. regex = String-ShellQuote-(__VER__)\.tar\.gz
  160. }
  161. prog perl-text:Pod-Escapes = {
  162. version = %{V_pod_escapes}
  163. url = http://www.cpan.org/modules/by-module/Pod/
  164. regex = Pod-Escapes-(__VER__)\.tar\.gz
  165. }
  166. prog perl-text:Pod-Simple = {
  167. version = %{V_pod_simple}
  168. url = http://www.cpan.org/modules/by-module/Pod/
  169. regex = Pod-Simple-(\d+\.\d+(\.\d+)*)\.tar\.gz
  170. }
  171. %prep
  172. %setup -q -c
  173. %setup -q -T -D -a 1
  174. %setup -q -T -D -a 2
  175. %setup -q -T -D -a 3
  176. %setup -q -T -D -a 4
  177. %setup -q -T -D -a 5
  178. %setup -q -T -D -a 6
  179. %setup -q -T -D -a 7
  180. %setup -q -T -D -a 8
  181. %setup -q -T -D -a 9
  182. %setup -q -T -D -a 10
  183. %setup -q -T -D -a 11
  184. %setup -q -T -D -a 12
  185. %setup -q -T -D -a 13
  186. %setup -q -T -D -a 14
  187. %build
  188. %install
  189. rm -rf $RPM_BUILD_ROOT
  190. %{l_prefix}/bin/perl-openpkg prepare
  191. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  195. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  196. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  197. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  198. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  199. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  200. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  201. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  202. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  203. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  204. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  205. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  206. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  207. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  208. %files -f files
  209. %clean
  210. rm -rf $RPM_BUILD_ROOT