xterm.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ##
  2. ## xterm.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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. %define V_whole 1.70
  26. %define V_xterm 170
  27. %define V_xtermset 0.5.1
  28. %define V_xtermcontrol 2.0
  29. # package information
  30. Name: xterm
  31. Summary: Terminal Emulation for X11
  32. URL: http://invisible-island.net/xterm/
  33. Vendor: X Consortium, Thomas E. Dickey
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [EVAL]
  36. Group: XWindow
  37. License: X11
  38. Version: %{V_whole}
  39. Release: 20021014
  40. # list of sources
  41. Source0: ftp://invisible-island.net/xterm/xterm-%{V_xterm}.tgz
  42. Source1: http://belnet.dl.sourceforge.net/sourceforge/clts/xtermset-%{V_xtermset}.tar.gz
  43. Source2: http://www.thrysoee.dk/xtermcontrol/xtermcontrol-%{V_xtermcontrol}.tar.gz
  44. Patch0: xterm.patch
  45. # build information
  46. Prefix: %{l_prefix}
  47. BuildRoot: %{l_buildroot}
  48. BuildPreReq: OpenPKG, openpkg >= 20020206, X11
  49. PreReq: OpenPKG, openpkg >= 20020206, X11
  50. AutoReq: no
  51. AutoReqProv: no
  52. %description
  53. Xterm is a terminal emulator for the X Window System. It provides
  54. DEC VT102 compatible terminals for programs that cannot use the
  55. window system directly. This version implements ISO/ANSI colors
  56. using the "new" color model (i.e., background color erase). It also
  57. implements most of the control sequences for VT220.
  58. %prep
  59. %setup0 -q -c
  60. %setup1 -q -T -D -a 1
  61. %setup2 -q -T -D -a 2
  62. %patch0 -p0
  63. %build
  64. ( cd xterm-%{V_xterm}
  65. CC="%{l_cc}" \
  66. CFLAGS="%{l_cflags -O}" \
  67. ./configure \
  68. --prefix=%{l_prefix} \
  69. --with-x \
  70. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  71. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  72. --disable-tek4014 \
  73. --disable-vt52 \
  74. --disable-active-icon
  75. %{l_make} %{l_mflags -O}
  76. )
  77. ( cd xtermset-%{V_xtermset}
  78. CC="%{l_cc}" \
  79. CFLAGS="%{l_cflags -O}" \
  80. ./configure \
  81. --prefix=%{l_prefix}
  82. %{l_make} %{l_mflags -O}
  83. )
  84. ( cd xtermcontrol-%{V_xtermcontrol}
  85. CC="%{l_cc}" \
  86. CFLAGS="%{l_cflags -O}" \
  87. ./configure \
  88. --prefix=%{l_prefix}
  89. %{l_make} %{l_mflags -O}
  90. )
  91. %install
  92. rm -rf $RPM_BUILD_ROOT
  93. ( cd xterm-%{V_xterm}
  94. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  95. )
  96. ( cd xtermset-%{V_xtermset}
  97. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  98. )
  99. ( cd xtermcontrol-%{V_xtermcontrol}
  100. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  101. )
  102. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  103. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
  104. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  105. %{l_files_std} \
  106. '%attr(4755,root,%{l_mgrp}) %{l_prefix}/bin/xterm'
  107. %files -f files
  108. %clean
  109. rm -rf $RPM_BUILD_ROOT