xterm.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ##
  2. ## xterm.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 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 222
  26. %define V_xtermset 0.5.2
  27. %define V_xtermcontrol 2.8
  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 Foundation e.V.
  34. Distribution: OpenPKG Community
  35. Class: EVAL
  36. Group: XWindow
  37. License: X11
  38. Version: %{V_xterm}
  39. Release: 20061018
  40. # list of sources
  41. Source0: ftp://invisible-island.net/xterm/xterm-%{V_xterm}.tgz
  42. Source1: http://switch.dl.sourceforge.net/sourceforge/clts/xtermset-%{V_xtermset}.tar.gz
  43. Source2: http://www.thrysoee.dk/xtermcontrol/xtermcontrol-%{V_xtermcontrol}.tar.gz
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20040130, X11
  48. PreReq: OpenPKG, openpkg >= 20040130, X11
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. Xterm is a terminal emulator for the X Window System. It provides
  53. DEC VT102 compatible terminals for programs that cannot use the
  54. window system directly. This version implements ISO/ANSI colors
  55. using the "new" color model (i.e., background color erase). It also
  56. implements most of the control sequences for VT220.
  57. %track
  58. prog xterm = {
  59. version = %{V_xterm}
  60. url = ftp://dickey.his.com/xterm/
  61. regex = xterm-(__VER__)\.tgz
  62. }
  63. prog xterm:xtermcontrol = {
  64. version = %{V_xtermcontrol}
  65. url = http://www.thrysoee.dk/xtermcontrol/
  66. regex = xtermcontrol-(__VER__)\.tar\.gz
  67. }
  68. prog xterm:xtermset = {
  69. version = %{V_xtermset}
  70. url = http://prdownloads.sourceforge.net/clts/
  71. regex = xtermset-(__VER__)\.tar\.gz
  72. }
  73. %prep
  74. %setup -q -c
  75. %setup -q -T -D -a 1
  76. %setup -q -T -D -a 2
  77. %{l_shtool} subst \
  78. -e 's;/usr/contrib/X11R6;%{l_prefix};g' \
  79. xterm-%{V_xterm}/configure
  80. %{l_shtool} subst \
  81. -e 's;\(ACLOCAL\)=.*;\1=true;g' \
  82. -e 's;\(AUTOCONF\)=.*;\1=true;g' \
  83. -e 's;\(AUTOMAKE\)=.*;\1=true;g' \
  84. -e 's;\(AUTOHEADER\)=.*;\1=true;g' \
  85. -e 's;\(MAKEINFO\)=.*;\1=true;g' \
  86. xtermset-%{V_xtermset}/configure
  87. %build
  88. ( cd xterm-%{V_xterm}
  89. case "%{l_platform -t}" in
  90. *-sunos* )
  91. echo "ac_cv_func_XkbBell=no" >config.cache
  92. ;;
  93. esac
  94. CC="%{l_cc}" \
  95. CFLAGS="%{l_cflags -O}" \
  96. ./configure \
  97. --cache-file=./config.cache \
  98. --prefix=%{l_prefix} \
  99. --with-x \
  100. --x-includes=`%{l_rc} --query x11_incdir` \
  101. --x-libraries=`%{l_rc} --query x11_libdir` \
  102. --disable-tek4014 \
  103. --disable-vt52 \
  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