perl-term.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ##
  2. ## perl-term.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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_term_readkey 2.21
  27. %define V_term_inkey 1.02
  28. %define V_term_size 0.2
  29. %define V_term_query 2.0
  30. %define V_term_vt102 0.78
  31. %define V_term_ansiscreen 1.40
  32. %define V_term_readline_gnu 1.13
  33. %define V_term_readline_perl 1.0203
  34. %define V_io_tty 1.02
  35. # package information
  36. Name: perl-term
  37. Summary: Perl Modules for use with Terminals
  38. URL: http://www.cpan.org/
  39. Vendor: Perl Community
  40. Packager: The OpenPKG Project
  41. Distribution: OpenPKG [BASE]
  42. Group: Language
  43. License: GPL/Artistic
  44. Version: 20021214
  45. Release: 20021214
  46. # list of sources
  47. Source0: http://www.cpan.org/modules/by-module/Term/TermReadKey-%{V_term_readkey}.tar.gz
  48. Source1: http://www.cpan.org/modules/by-module/Term/Term-InKey-%{V_term_inkey}.tar.gz
  49. Source2: http://www.cpan.org/modules/by-module/Term/Term-Size-%{V_term_size}.tar.gz
  50. Source3: http://www.cpan.org/modules/by-module/Term/Term-Query-%{V_term_query}.tar.gz
  51. Source5: http://www.cpan.org/modules/by-module/Term/Term-ANSIScreen-%{V_term_ansiscreen}.tar.gz
  52. Source4: http://www.cpan.org/modules/by-module/Term/Term-VT102-%{V_term_vt102}.tar.gz
  53. Source6: http://www.cpan.org/modules/by-module/IO/IO-Tty-%{V_io_tty}.tar.gz
  54. Source7: http://www.cpan.org/modules/by-module/Term/Term-ReadLine-Perl-%{V_term_readline_perl}.tar.gz
  55. Source8: http://www.cpan.org/modules/by-module/Term/Term-ReadLine-Gnu-%{V_term_readline_gnu}.tar.gz
  56. # build information
  57. Prefix: %{l_prefix}
  58. BuildRoot: %{l_buildroot}
  59. BuildPreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0, readline
  60. PreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0
  61. AutoReq: no
  62. AutoReqProv: no
  63. %description
  64. Various Perl modules for use on Terminals:
  65. - Term::ReadKey (%{V_term_readkey})
  66. - Term::InKey (%{V_term_inkey})
  67. - Term::Size (%{V_term_size})
  68. - Term::Query (%{V_term_query})
  69. - Term::ANSIScreen (%{V_term_ansiscreen})
  70. - Term::VT102 (%{V_term_vt102})
  71. - Term::ReadLine::Gnu (%{V_term_readline_gnu})
  72. - Term::ReadLine::Perl (%{V_term_readline_perl})
  73. - IO::Tty (%{V_io_tty})
  74. - IO::Pty (%{V_io_tty})
  75. %prep
  76. %setup0 -q -c
  77. %setup1 -q -T -D -a 1
  78. %setup2 -q -T -D -a 2
  79. %setup3 -q -T -D -a 3
  80. %setup4 -q -T -D -a 4
  81. %setup5 -q -T -D -a 5
  82. %setup6 -q -T -D -a 6
  83. %setup7 -q -T -D -a 7
  84. %setup8 -q -T -D -a 8
  85. %build
  86. %install
  87. # perform common prolog operations
  88. %{l_prefix}/bin/perl-openpkg prolog
  89. # build and install individual modules
  90. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  91. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  92. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  93. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  94. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  95. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  96. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}
  97. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE7}
  98. # build Term::ReadLine::Gnu
  99. ( cd Term-ReadLine-Gnu-%{V_term_readline_gnu}
  100. %{l_prefix}/bin/perl-openpkg install \
  101. --includedir=%{l_prefix}/include/readline \
  102. --libdir=%{l_prefix}/lib
  103. )
  104. # perform common epilog operations
  105. %{l_prefix}/bin/perl-openpkg epilog
  106. %files -f files
  107. %clean
  108. rm -rf $RPM_BUILD_ROOT