xterm.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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_whole 1.85
  27. %define V_xterm 185
  28. %define V_xtermset 0.5.2
  29. %define V_xtermcontrol 2.3
  30. # package information
  31. Name: xterm
  32. Summary: Terminal Emulation for X11
  33. URL: http://invisible-island.net/xterm/
  34. Vendor: X Consortium, Thomas E. Dickey
  35. Packager: The OpenPKG Project
  36. Distribution: OpenPKG
  37. Class: PLUS
  38. Group: XWindow
  39. License: X11
  40. Version: %{V_whole}
  41. Release: 20040305
  42. # list of sources
  43. Source0: ftp://invisible-island.net/xterm/xterm-%{V_xterm}.tgz
  44. Source1: http://osdn.dl.sourceforge.net/sourceforge/clts/xtermset-%{V_xtermset}.tar.gz
  45. Source2: http://www.thrysoee.dk/xtermcontrol/xtermcontrol-%{V_xtermcontrol}.tar.gz
  46. # build information
  47. Prefix: %{l_prefix}
  48. BuildRoot: %{l_buildroot}
  49. BuildPreReq: OpenPKG, openpkg >= 20040130, X11
  50. PreReq: OpenPKG, openpkg >= 20040130, X11
  51. AutoReq: no
  52. AutoReqProv: no
  53. %description
  54. Xterm is a terminal emulator for the X Window System. It provides
  55. DEC VT102 compatible terminals for programs that cannot use the
  56. window system directly. This version implements ISO/ANSI colors
  57. using the "new" color model (i.e., background color erase). It also
  58. implements most of the control sequences for VT220.
  59. %track
  60. prog xterm = {
  61. version = %{V_xterm}
  62. url = ftp://dickey.his.com/xterm/
  63. regex = xterm-(__VER__)\.tgz
  64. }
  65. prog xterm:xtermcontrol = {
  66. version = %{V_xtermcontrol}
  67. url = http://www.thrysoee.dk/xtermcontrol/
  68. regex = xtermcontrol-(__VER__)\.tar\.gz
  69. }
  70. prog xterm:xtermset = {
  71. version = %{V_xtermset}
  72. url = http://prdownloads.sourceforge.net/clts/
  73. regex = xtermset-(__VER__)\.tar\.gz
  74. }
  75. %prep
  76. %setup -q -c
  77. %setup -q -T -D -a 1
  78. %setup -q -T -D -a 2
  79. %{l_shtool} subst \
  80. -e 's;\(ACLOCAL\)=.*;\1=true;g' \
  81. -e 's;\(AUTOCONF\)=.*;\1=true;g' \
  82. -e 's;\(AUTOMAKE\)=.*;\1=true;g' \
  83. -e 's;\(AUTOHEADER\)=.*;\1=true;g' \
  84. -e 's;\(MAKEINFO\)=.*;\1=true;g' \
  85. xtermset-%{V_xtermset}/configure
  86. %build
  87. ( cd xterm-%{V_xterm}
  88. case "%{l_platform -t}" in
  89. *-sunos* )
  90. echo "ac_cv_func_XkbBell=no" >config.cache
  91. ;;
  92. esac
  93. CC="%{l_cc}" \
  94. CFLAGS="%{l_cflags -O}" \
  95. ./configure \
  96. --cache-file=./config.cache \
  97. --prefix=%{l_prefix} \
  98. --with-x \
  99. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  100. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  101. --disable-tek4014 \
  102. --disable-vt52 \
  103. --disable-active-icon \
  104. --disable-i18n
  105. %{l_make} %{l_mflags -O}
  106. ) || exit $?
  107. ( cd xtermset-%{V_xtermset}
  108. CC="%{l_cc}" \
  109. CFLAGS="%{l_cflags -O}" \
  110. ./configure \
  111. --cache-file=./config.cache \
  112. --prefix=%{l_prefix}
  113. %{l_make} %{l_mflags -O}
  114. ) || exit $?
  115. ( cd xtermcontrol-%{V_xtermcontrol}
  116. CC="%{l_cc}" \
  117. CFLAGS="%{l_cflags -O}" \
  118. ./configure \
  119. --prefix=%{l_prefix}
  120. %{l_make} %{l_mflags -O}
  121. ) || exit $?
  122. %install
  123. rm -rf $RPM_BUILD_ROOT
  124. ( cd xterm-%{V_xterm}
  125. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  126. ) || exit $?
  127. ( cd xtermset-%{V_xtermset}
  128. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  129. ) || exit $?
  130. ( cd xtermcontrol-%{V_xtermcontrol}
  131. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  132. ) || exit $?
  133. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  134. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
  135. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  136. %{l_files_std} \
  137. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/xterm'
  138. %files -f files
  139. %clean
  140. rm -rf $RPM_BUILD_ROOT