xterm.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. ##
  2. ## xterm.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. # package versions
  26. %define V_xterm 193
  27. %define V_xtermset 0.5.2
  28. %define V_xtermcontrol 2.4
  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
  36. Class: PLUS
  37. Group: XWindow
  38. License: X11
  39. Version: %{V_xterm}
  40. Release: 20040720
  41. # list of sources
  42. Source0: ftp://invisible-island.net/xterm/xterm-%{V_xterm}.tgz
  43. Source1: http://osdn.dl.sourceforge.net/sourceforge/clts/xtermset-%{V_xtermset}.tar.gz
  44. Source2: http://www.thrysoee.dk/xtermcontrol/xtermcontrol-%{V_xtermcontrol}.tar.gz
  45. # build information
  46. Prefix: %{l_prefix}
  47. BuildRoot: %{l_buildroot}
  48. BuildPreReq: OpenPKG, openpkg >= 20040130, X11
  49. PreReq: OpenPKG, openpkg >= 20040130, 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. %track
  59. prog xterm = {
  60. version = %{V_xterm}
  61. url = ftp://dickey.his.com/xterm/
  62. regex = xterm-(__VER__)\.tgz
  63. }
  64. prog xterm:xtermcontrol = {
  65. version = %{V_xtermcontrol}
  66. url = http://www.thrysoee.dk/xtermcontrol/
  67. regex = xtermcontrol-(__VER__)\.tar\.gz
  68. }
  69. prog xterm:xtermset = {
  70. version = %{V_xtermset}
  71. url = http://prdownloads.sourceforge.net/clts/
  72. regex = xtermset-(__VER__)\.tar\.gz
  73. }
  74. %prep
  75. %setup -q -c
  76. %setup -q -T -D -a 1
  77. %setup -q -T -D -a 2
  78. %{l_shtool} subst \
  79. -e 's;\(ACLOCAL\)=.*;\1=true;g' \
  80. -e 's;\(AUTOCONF\)=.*;\1=true;g' \
  81. -e 's;\(AUTOMAKE\)=.*;\1=true;g' \
  82. -e 's;\(AUTOHEADER\)=.*;\1=true;g' \
  83. -e 's;\(MAKEINFO\)=.*;\1=true;g' \
  84. xtermset-%{V_xtermset}/configure
  85. %build
  86. ( cd xterm-%{V_xterm}
  87. case "%{l_platform -t}" in
  88. *-sunos* )
  89. echo "ac_cv_func_XkbBell=no" >config.cache
  90. ;;
  91. esac
  92. CC="%{l_cc}" \
  93. CFLAGS="%{l_cflags -O}" \
  94. ./configure \
  95. --cache-file=./config.cache \
  96. --prefix=%{l_prefix} \
  97. --with-x \
  98. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  99. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  100. --disable-tek4014 \
  101. --disable-vt52 \
  102. --disable-active-icon \
  103. --disable-i18n
  104. %{l_make} %{l_mflags -O}
  105. ) || exit $?
  106. ( cd xtermset-%{V_xtermset}
  107. CC="%{l_cc}" \
  108. CFLAGS="%{l_cflags -O}" \
  109. ./configure \
  110. --cache-file=./config.cache \
  111. --prefix=%{l_prefix}
  112. %{l_make} %{l_mflags -O}
  113. ) || exit $?
  114. ( cd xtermcontrol-%{V_xtermcontrol}
  115. CC="%{l_cc}" \
  116. CFLAGS="%{l_cflags -O}" \
  117. ./configure \
  118. --prefix=%{l_prefix}
  119. %{l_make} %{l_mflags -O}
  120. ) || exit $?
  121. %install
  122. rm -rf $RPM_BUILD_ROOT
  123. ( cd xterm-%{V_xterm}
  124. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  125. ) || exit $?
  126. ( cd xtermset-%{V_xtermset}
  127. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  128. ) || exit $?
  129. ( cd xtermcontrol-%{V_xtermcontrol}
  130. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  131. ) || exit $?
  132. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  133. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
  134. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  135. %{l_files_std} \
  136. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/xterm'
  137. %files -f files
  138. %clean
  139. rm -rf $RPM_BUILD_ROOT