perl-text.spec 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. ##
  2. ## perl-text.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # versions of individual parts
  24. %define V_perl 5.10
  25. %define V_text_template 1.45
  26. %define V_text_wrapper 1.02
  27. %define V_text_reform 1.11
  28. %define V_text_autoformat 1.666.0
  29. %define V_text_quoted 2.05
  30. %define V_text_shellwords 1.08
  31. %define V_text_vimcolor 0.11
  32. %define V_text_bargraph 1.0
  33. %define V_text_graph 0.23
  34. %define V_text_asciitable 0.18
  35. %define V_string_approx 3.26
  36. %define V_string_format 1.16
  37. %define V_string_shellquote 1.03
  38. %define V_pod_escapes 1.04
  39. %define V_pod_simple 3.08
  40. %define V_number_format 1.72
  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: 20090904
  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. Source15: http://www.cpan.org/modules/by-module/Number/Number-Format-%{V_number_format}.tar.gz
  70. # build information
  71. Prefix: %{l_prefix}
  72. BuildRoot: %{l_buildroot}
  73. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  74. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  75. BuildPreReq: perl-util, perl-locale
  76. PreReq: perl-util, perl-locale
  77. AutoReq: no
  78. AutoReqProv: no
  79. %description
  80. Various modules for text manipulation with perl
  81. - Text::Template (%{V_text_template})
  82. - Text::Wrapper (%{V_text_wrapper})
  83. - Text::Reform (%{V_text_reform})
  84. - Text::Autoformat (%{V_text_autoformat})
  85. - Text::Quoted (%{V_text_quoted})
  86. - Text::Shellwords (%{V_text_shellwords})
  87. - Text::VimColor (%{V_text_vimcolor})
  88. - Text::BarGraph (%{V_text_bargraph})
  89. - Text::Graph (%{V_text_graph})
  90. - Text::ASCIITable (%{V_text_asciitable})
  91. - String::Approx (%{V_string_approx})
  92. - String::Format (%{V_string_format})
  93. - String::ShellQuote (%{V_string_shellquote})
  94. - Pod::Escapes (%{V_pod_escapes})
  95. - Pod::Simple (%{V_pod_simple})
  96. - Number::Format (%{V_number_format})
  97. %track
  98. prog perl-text:Text-Autoformat = {
  99. version = %{V_text_autoformat}
  100. url = http://www.cpan.org/modules/by-module/Text/
  101. regex = Text-Autoformat-(__VER__)\.tar\.gz
  102. }
  103. prog perl-text:Text-Quoted = {
  104. version = %{V_text_quoted}
  105. url = http://www.cpan.org/modules/by-module/Text/
  106. regex = Text-Quoted-(__VER__)\.tar\.gz
  107. }
  108. prog perl-text:Text-Reform = {
  109. version = %{V_text_reform}
  110. url = http://www.cpan.org/modules/by-module/Text/
  111. regex = Text-Reform-(__VER__)\.tar\.gz
  112. }
  113. prog perl-text:Text-Template = {
  114. version = %{V_text_template}
  115. url = http://www.cpan.org/modules/by-module/Text/
  116. regex = Text-Template-(__VER__)\.tar\.gz
  117. }
  118. prog perl-text:Text-Wrapper = {
  119. version = %{V_text_wrapper}
  120. url = http://www.cpan.org/modules/by-module/Text/
  121. regex = Text-Wrapper-(__VER__)\.tar\.gz
  122. }
  123. prog perl-text:Text-Shellwords = {
  124. version = %{V_text_shellwords}
  125. url = http://www.cpan.org/modules/by-module/Text/
  126. regex = Text-Shellwords-(__VER__)\.tar\.gz
  127. }
  128. prog perl-text:Text-VimColor = {
  129. version = %{V_text_vimcolor}
  130. url = http://www.cpan.org/modules/by-module/Text/
  131. regex = Text-VimColor-(__VER__)\.tar\.gz
  132. }
  133. prog perl-text:Text-BarGraph = {
  134. version = %{V_text_bargraph}
  135. url = http://www.cpan.org/modules/by-module/Text/
  136. regex = Text-BarGraph-(__VER__)\.tar\.gz
  137. }
  138. prog perl-text:Text-Graph = {
  139. version = %{V_text_graph}
  140. url = http://www.cpan.org/modules/by-module/Text/
  141. regex = Text-Graph-(__VER__)\.tar\.gz
  142. }
  143. prog perl-text:Text-ASCIITable = {
  144. version = %{V_text_asciitable}
  145. url = http://www.cpan.org/modules/by-module/Text/
  146. regex = Text-ASCIITable-(__VER__)\.tar\.gz
  147. }
  148. prog perl-text:String-Approx = {
  149. version = %{V_string_approx}
  150. url = http://www.cpan.org/modules/by-module/String/
  151. regex = String-Approx-(__VER__)\.tar\.gz
  152. }
  153. prog perl-text:String-Format = {
  154. version = %{V_string_format}
  155. url = http://www.cpan.org/modules/by-module/String/
  156. regex = String-Format-(__VER__)\.tar\.gz
  157. }
  158. prog perl-text:String-ShellQuote = {
  159. version = %{V_string_shellquote}
  160. url = http://www.cpan.org/modules/by-module/String/
  161. regex = String-ShellQuote-(__VER__)\.tar\.gz
  162. }
  163. prog perl-text:Pod-Escapes = {
  164. version = %{V_pod_escapes}
  165. url = http://www.cpan.org/modules/by-module/Pod/
  166. regex = Pod-Escapes-(__VER__)\.tar\.gz
  167. }
  168. prog perl-text:Pod-Simple = {
  169. version = %{V_pod_simple}
  170. url = http://www.cpan.org/modules/by-module/Pod/
  171. regex = Pod-Simple-(\d+\.\d+(\.\d+)*)\.tar\.gz
  172. }
  173. prog perl-text:Number-Format = {
  174. version = %{V_number_format}
  175. url = http://www.cpan.org/modules/by-module/Number/
  176. regex = Number-Format-(\d+\.\d+(\.\d+)*)\.tar\.gz
  177. }
  178. %prep
  179. %setup -q -c
  180. %setup -q -T -D -a 1
  181. %setup -q -T -D -a 2
  182. %setup -q -T -D -a 3
  183. %setup -q -T -D -a 4
  184. %setup -q -T -D -a 5
  185. %setup -q -T -D -a 6
  186. %setup -q -T -D -a 7
  187. %setup -q -T -D -a 8
  188. %setup -q -T -D -a 9
  189. %setup -q -T -D -a 10
  190. %setup -q -T -D -a 11
  191. %setup -q -T -D -a 12
  192. %setup -q -T -D -a 13
  193. %setup -q -T -D -a 14
  194. %setup -q -T -D -a 15
  195. %build
  196. %install
  197. rm -rf $RPM_BUILD_ROOT
  198. %{l_prefix}/bin/perl-openpkg prepare
  199. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  200. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  201. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  202. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  203. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  204. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  205. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  206. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  207. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  208. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  209. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  210. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  211. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  212. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  213. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  214. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  215. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  216. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  217. %files -f files
  218. %clean
  219. rm -rf $RPM_BUILD_ROOT