xterm.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ##
  2. ## xterm.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package versions
  24. %define V_xterm 243
  25. %define V_xtermset 0.5.2
  26. %define V_xtermcontrol 2.9
  27. # package information
  28. Name: xterm
  29. Summary: Terminal Emulation for X11
  30. URL: http://invisible-island.net/xterm/
  31. Vendor: Thomas E. Dickey
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: EVAL
  35. Group: XWindow
  36. License: X11
  37. Version: %{V_xterm}
  38. Release: 20090329
  39. # list of sources
  40. Source0: ftp://invisible-island.net/xterm/xterm-%{V_xterm}.tgz
  41. Source1: http://switch.dl.sourceforge.net/sourceforge/clts/xtermset-%{V_xtermset}.tar.gz
  42. Source2: http://www.thrysoee.dk/xtermcontrol/xtermcontrol-%{V_xtermcontrol}.tar.gz
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130, X11
  47. PreReq: OpenPKG, openpkg >= 20040130, X11
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. Xterm is a terminal emulator for the X Window System. It provides
  52. DEC VT102 compatible terminals for programs that cannot use the
  53. window system directly. This version implements ISO/ANSI colors
  54. using the "new" color model (i.e., background color erase). It also
  55. implements most of the control sequences for VT220.
  56. %track
  57. prog xterm = {
  58. version = %{V_xterm}
  59. url = ftp://dickey.his.com/xterm/
  60. regex = xterm-(__VER__)\.tgz
  61. }
  62. prog xterm:xtermcontrol = {
  63. version = %{V_xtermcontrol}
  64. url = http://www.thrysoee.dk/xtermcontrol/
  65. regex = xtermcontrol-(__VER__)\.tar\.gz
  66. }
  67. prog xterm:xtermset = {
  68. version = %{V_xtermset}
  69. url = http://prdownloads.sourceforge.net/clts/
  70. regex = xtermset-(__VER__)\.tar\.gz
  71. }
  72. %prep
  73. %setup -q -c
  74. %setup -q -T -D -a 1
  75. %setup -q -T -D -a 2
  76. %{l_shtool} subst \
  77. -e 's;/usr/contrib/X11R6;%{l_prefix};g' \
  78. xterm-%{V_xterm}/configure
  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_rc} --query x11_incdir` \
  100. --x-libraries=`%{l_rc} --query x11_libdir` \
  101. --disable-tek4014 \
  102. --disable-vt52 \
  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. --mandir=%{l_prefix}/man
  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