xterm.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. ##
  2. ## xterm.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package versions
  25. %define V_xterm 205
  26. %define V_xtermset 0.5.2
  27. %define V_xtermcontrol 2.7
  28. # package information
  29. Name: xterm
  30. Summary: Terminal Emulation for X11
  31. URL: http://invisible-island.net/xterm/
  32. Vendor: X Consortium, Thomas E. Dickey
  33. Packager: OpenPKG
  34. Distribution: OpenPKG
  35. Class: PLUS
  36. Group: XWindow
  37. License: X11
  38. Version: %{V_xterm}
  39. Release: 20051014
  40. # list of sources
  41. Source0: ftp://invisible-island.net/xterm/xterm-%{V_xterm}.tgz
  42. Source1: http://osdn.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 >= 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. %patch -p0 -d xterm-%{V_xterm}
  79. %{l_shtool} subst \
  80. -e 's;/usr/contrib/X11R6;%{l_prefix};g' \
  81. xterm-%{V_xterm}/configure
  82. %{l_shtool} subst \
  83. -e 's;\(ACLOCAL\)=.*;\1=true;g' \
  84. -e 's;\(AUTOCONF\)=.*;\1=true;g' \
  85. -e 's;\(AUTOMAKE\)=.*;\1=true;g' \
  86. -e 's;\(AUTOHEADER\)=.*;\1=true;g' \
  87. -e 's;\(MAKEINFO\)=.*;\1=true;g' \
  88. xtermset-%{V_xtermset}/configure
  89. %build
  90. ( cd xterm-%{V_xterm}
  91. case "%{l_platform -t}" in
  92. *-sunos* )
  93. echo "ac_cv_func_XkbBell=no" >config.cache
  94. ;;
  95. esac
  96. CC="%{l_cc}" \
  97. CFLAGS="%{l_cflags -O}" \
  98. ./configure \
  99. --cache-file=./config.cache \
  100. --prefix=%{l_prefix} \
  101. --with-x \
  102. --x-includes=`%{l_rc} --query x11_incdir` \
  103. --x-libraries=`%{l_rc} --query x11_libdir` \
  104. --disable-tek4014 \
  105. --disable-vt52 \
  106. --disable-i18n
  107. %{l_make} %{l_mflags -O}
  108. ) || exit $?
  109. ( cd xtermset-%{V_xtermset}
  110. CC="%{l_cc}" \
  111. CFLAGS="%{l_cflags -O}" \
  112. ./configure \
  113. --cache-file=./config.cache \
  114. --prefix=%{l_prefix}
  115. %{l_make} %{l_mflags -O}
  116. ) || exit $?
  117. ( cd xtermcontrol-%{V_xtermcontrol}
  118. CC="%{l_cc}" \
  119. CFLAGS="%{l_cflags -O}" \
  120. ./configure \
  121. --prefix=%{l_prefix}
  122. %{l_make} %{l_mflags -O}
  123. ) || exit $?
  124. %install
  125. rm -rf $RPM_BUILD_ROOT
  126. ( cd xterm-%{V_xterm}
  127. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  128. ) || exit $?
  129. ( cd xtermset-%{V_xtermset}
  130. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  131. ) || exit $?
  132. ( cd xtermcontrol-%{V_xtermcontrol}
  133. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  134. ) || exit $?
  135. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  136. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
  137. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  138. %{l_files_std} \
  139. '%attr(4755,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/xterm'
  140. %files -f files
  141. %clean
  142. rm -rf $RPM_BUILD_ROOT