xterm.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ##
  2. ## xterm.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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. %define V_whole 1.72
  26. %define V_xterm 172
  27. %define V_xtermset 0.5.1
  28. %define V_xtermcontrol 2.0.2
  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 [EVAL]
  36. Group: XWindow
  37. License: X11
  38. Version: %{V_whole}
  39. Release: 20021228
  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. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20020206, X11
  48. PreReq: OpenPKG, openpkg >= 20020206, 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. %prep
  58. %setup0 -q -c
  59. %setup1 -q -T -D -a 1
  60. %setup2 -q -T -D -a 2
  61. %build
  62. ( cd xterm-%{V_xterm}
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --with-x \
  68. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  69. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
  70. --disable-tek4014 \
  71. --disable-vt52 \
  72. --disable-active-icon
  73. %{l_make} %{l_mflags -O}
  74. )
  75. ( cd xtermset-%{V_xtermset}
  76. CC="%{l_cc}" \
  77. CFLAGS="%{l_cflags -O}" \
  78. ./configure \
  79. --prefix=%{l_prefix}
  80. %{l_make} %{l_mflags -O}
  81. )
  82. ( cd xtermcontrol-%{V_xtermcontrol}
  83. CC="%{l_cc}" \
  84. CFLAGS="%{l_cflags -O}" \
  85. ./configure \
  86. --prefix=%{l_prefix}
  87. %{l_make} %{l_mflags -O}
  88. )
  89. %install
  90. rm -rf $RPM_BUILD_ROOT
  91. ( cd xterm-%{V_xterm}
  92. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  93. )
  94. ( cd xtermset-%{V_xtermset}
  95. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  96. )
  97. ( cd xtermcontrol-%{V_xtermcontrol}
  98. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  99. )
  100. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  101. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/aclocal
  102. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  103. %{l_files_std} \
  104. '%attr(4755,root,%{l_mgrp}) %{l_prefix}/bin/xterm'
  105. %files -f files
  106. %clean
  107. rm -rf $RPM_BUILD_ROOT