perl-text.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. ##
  2. ## perl-text.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.5
  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_locale_maketext 1.09
  34. # package information
  35. Name: perl-text
  36. Summary: Perl Text Manipulating Modules
  37. URL: http://www.cpan.org/
  38. Vendor: Perl Community
  39. Packager: The OpenPKG Project
  40. Distribution: OpenPKG
  41. Class: BASE
  42. Group: Language
  43. License: GPL/Artistic
  44. Version: %{V_perl}
  45. Release: 20040720
  46. # list of sources
  47. Source0: http://www.cpan.org/modules/by-module/Text/Text-Template-%{V_text_template}.tar.gz
  48. Source1: http://www.cpan.org/modules/by-module/Text/Text-Wrapper-%{V_text_wrapper}.tar.gz
  49. Source2: http://www.cpan.org/modules/by-module/Text/Text-Reform-%{V_text_reform}.tar.gz
  50. Source3: http://www.cpan.org/modules/by-module/Text/Text-Autoformat-%{V_text_autoformat}.tar.gz
  51. Source4: http://www.cpan.org/modules/by-module/Text/Text-Quoted-%{V_text_quoted}.tar.gz
  52. Source5: http://www.cpan.org/modules/by-module/Text/Text-Shellwords-%{V_text_shellwords}.tar.gz
  53. Source6: http://www.cpan.org/modules/by-module/Locale/Locale-Maketext-%{V_locale_maketext}.tar.gz
  54. # build information
  55. Prefix: %{l_prefix}
  56. BuildRoot: %{l_buildroot}
  57. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  58. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  59. AutoReq: no
  60. AutoReqProv: no
  61. %description
  62. Various modules for text manipulation with perl
  63. - Text::Template (%{V_text_template})
  64. - Text::Wrapper (%{V_text_wrapper})
  65. - Text::Reform (%{V_text_reform})
  66. - Text::Autoformat (%{V_text_autoformat})
  67. - Text::Quoted (%{V_text_quoted})
  68. - Text::Shellwords (%{V_text_shellwords})
  69. - Locale::Maketext (%{V_locale_maketext})
  70. %track
  71. prog perl-text:Text-Autoformat = {
  72. version = %{V_text_autoformat}
  73. url = http://www.cpan.org/modules/by-module/Text/
  74. regex = Text-Autoformat-(__VER__)\.tar\.gz
  75. }
  76. prog perl-text:Text-Quoted = {
  77. version = %{V_text_quoted}
  78. url = http://www.cpan.org/modules/by-module/Text/
  79. regex = Text-Quoted-(__VER__)\.tar\.gz
  80. }
  81. prog perl-text:Text-Reform = {
  82. version = %{V_text_reform}
  83. url = http://www.cpan.org/modules/by-module/Text/
  84. regex = Text-Reform-(__VER__)\.tar\.gz
  85. }
  86. prog perl-text:Text-Template = {
  87. version = %{V_text_template}
  88. url = http://www.cpan.org/modules/by-module/Text/
  89. regex = Text-Template-(__VER__)\.tar\.gz
  90. }
  91. prog perl-text:Text-Wrapper = {
  92. version = %{V_text_wrapper}
  93. url = http://www.cpan.org/modules/by-module/Text/
  94. regex = Text-Wrapper-(__VER__)\.tar\.gz
  95. }
  96. prog perl-text:Text-Shellwords = {
  97. version = %{V_text_shellwords}
  98. url = http://www.cpan.org/modules/by-module/Text/
  99. regex = Text-Shellwords-(__VER__)\.tar\.gz
  100. }
  101. prog perl-text:Locale-Maketext = {
  102. version = %{V_locale_maketext}
  103. url = http://www.cpan.org/modules/by-module/Locale/
  104. regex = Locale-Maketext-(__VER__)\.tar\.gz
  105. }
  106. %prep
  107. %setup -q -c
  108. %setup -q -T -D -a 1
  109. %setup -q -T -D -a 2
  110. %setup -q -T -D -a 3
  111. %setup -q -T -D -a 4
  112. %setup -q -T -D -a 5
  113. %setup -q -T -D -a 6
  114. %build
  115. %install
  116. rm -rf $RPM_BUILD_ROOT
  117. %{l_prefix}/bin/perl-openpkg prepare
  118. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  119. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  120. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  121. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  122. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  123. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  124. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  125. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  126. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  127. %files -f files
  128. %clean
  129. rm -rf $RPM_BUILD_ROOT