cvsdist ea59fcb
%define _x11bindir /usr/X11R6/bin
cvsdist ea59fcb
%define _x11datadir /usr/X11R6/lib
cvsdist ea59fcb
cvsdist ea59fcb
Summary: xterm terminal emulator for the X Window System
cvsdist ea59fcb
Name: xterm
mharris 485fadb
Version: 200
mharris 977324c
Release: 9
cvsdist ea59fcb
URL: http://dickey.his.com/xterm
cvsdist ea59fcb
License: MIT
cvsdist ea59fcb
Group: User Interface/X
cvsdist ea59fcb
BuildRoot: %{_tmppath}/%{name}-root
cvsdist ea59fcb
Source0: ftp://dickey.his.com/xterm/%{name}-%{version}.tgz
cvsdist ea59fcb
Patch0: xterm-can-2003-0063.patch
cvsdist ea59fcb
Patch1: xterm-resources-redhat.patch
cvsdist ea59fcb
Patch2: xterm-179-ppc-fix-bug-101472.patch
cvsdist ea59fcb
mharris f31af76
BuildRequires: xorg-x11-devel >= 6.7.0
mharris f31af76
BuildRequires: utempter libtermcap-devel
cvsdist ea59fcb
cvsdist ea59fcb
%description
cvsdist ea59fcb
The xterm program is a terminal emulator for the X Window System. It
cvsdist ea59fcb
provides DEC VT102 and Tektronix 4014 compatible terminals for
cvsdist ea59fcb
programs that can't use the window system directly.
cvsdist ea59fcb
cvsdist ea59fcb
%prep
cvsdist ea59fcb
%setup -q
mharris 396a893
# The xterm source code used to decompress with all of the files read-only,
mharris 396a893
# but appears to be fixed now
mharris 396a893
#chmod -R u+w .
cvsdist ea59fcb
%patch0 -p0 -b .can-2003-0063
sandmann f503ebd
%patch1 -p0 -b .resources-redhat
cvsdist ea59fcb
%ifarch ppc ppc64
mharris fe988b1
#%patch2 -p0 -b .ppc-fix-bug-101472
cvsdist ea59fcb
%endif
cvsdist ea59fcb
cvsdist ea59fcb
%build
mharris d17020c
%configure --enable-luit \
mharris d17020c
           --enable-warnings \
mharris d17020c
           --enable-wide-chars \
mharris d17020c
           --with-utempter \
mharris 37be603
           --disable-tek4014 \
mharris d17020c
           %{?_with_256_color:--enable-256-color}
cvsdist ea59fcb
make
cvsdist ea59fcb
cvsdist ea59fcb
%install
cvsdist ea59fcb
rm -rf $RPM_BUILD_ROOT
cvsdist ea59fcb
%makeinstall 
cvsdist ea59fcb
#install-ti
cvsdist ea59fcb
cvsdist ea59fcb
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
cvsdist ea59fcb
mkdir -p $RPM_BUILD_ROOT/%{_x11datadir}/X11/app-defaults
cvsdist ea59fcb
cvsdist ea59fcb
mv $RPM_BUILD_ROOT/%{_mandir}/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
cvsdist ea59fcb
mv $RPM_BUILD_ROOT/usr/%{_lib}/X11/app-defaults/* $RPM_BUILD_ROOT/%{_x11datadir}/X11/app-defaults/
cvsdist ea59fcb
cvsdist ea59fcb
# Make a compatibility symlink for xterm, so that applications and scripts
cvsdist ea59fcb
# which invoke xterm explicitly as /usr/X11R6/bin/xterm, will continue to work
cvsdist ea59fcb
# correctly without surprises
cvsdist ea59fcb
{
cvsdist ea59fcb
  mkdir -p $RPM_BUILD_ROOT%{_x11bindir}
cvsdist ea59fcb
  ln -sf ../../bin/xterm $RPM_BUILD_ROOT%{_x11bindir}/xterm
cvsdist ea59fcb
}
cvsdist ea59fcb
cvsdist ea59fcb
%clean
cvsdist ea59fcb
rm -rf $RPM_BUILD_ROOT
cvsdist ea59fcb
cvsdist ea59fcb
%files
cvsdist ea59fcb
%defattr(-,root,root)
cvsdist ea59fcb
%{_bindir}/resize
cvsdist ea59fcb
%{_bindir}/uxterm
cvsdist ea59fcb
%{_bindir}/xterm
cvsdist ea59fcb
%{_mandir}/man1/resize.1*
cvsdist ea59fcb
%{_mandir}/man1/xterm.1*
cvsdist ea59fcb
%{_x11datadir}/X11/app-defaults/UXTerm
cvsdist ea59fcb
%{_x11datadir}/X11/app-defaults/XTerm
cvsdist ea59fcb
%{_x11datadir}/X11/app-defaults/XTerm-color
cvsdist ea59fcb
%{_x11bindir}/xterm
cvsdist ea59fcb
cvsdist ea59fcb
%changelog
mharris 977324c
* Wed Sep 14 2005 Mike A. Harris <mharris@redhat.com> 200-9
mharris 977324c
- Updated xterm-resources-redhat.patch to remove utf8 resource which was
mharris 977324c
  added in the 200-7 build, as it was incorrectly set to 'true' instead
mharris 977324c
  of '1', and bug #138681 turned out to be a gdm bug instead of an xterm
mharris 977324c
  bug.  This fixes bug (#163568).
mharris 977324c
  
mharris 37be603
* Mon Aug 29 2005 Mike A. Harris <mharris@redhat.com> 200-8
mharris 37be603
- Added --disable-tek4014 to ./configure flags, to disable tek support
mharris 37be603
  for bug (#164210)
mharris 37be603
mharris 761c05b
* Mon May 2 2005 Mike A. Harris <mharris@redhat.com> 200-7
mharris 761c05b
- Updated xterm-resources-redhat.patch to enable xterm utf8 resource by
mharris 761c05b
  default, as our default OS environment is UTF-8, for bug (#138681)
mharris 761c05b
mharris d17020c
* Sat Apr 16 2005 Mike A. Harris <mharris@redhat.com> 200-6
mharris d17020c
- Added option to spec file to allow easy rebuilding with 256 color option
mharris d17020c
  for those who prefer this non-default behaviour (#103402)
mharris d17020c
sandmann f503ebd
* Tue Mar 8 2005 Soeren Sandmann <sandmann@redhat.com> 200-5
sandmann f503ebd
- Ported xterm-resources-redhat.patch to newer xterms. (#126855)
sandmann f503ebd
mharris f31af76
* Sun Mar 6 2005 Mike A. Harris <mharris@redhat.com> 200-4
mharris f31af76
- Added libtermcap-devel and utempter to BuildRequires
mharris f31af76
- Changed BuildRequires from XFree86-devel to xorg-x11-devel
mharris f31af76
mharris 3334fcd
* Sun Mar 6 2005 Mike A. Harris <mharris@redhat.com> 200-3
mharris 3334fcd
- Rebuild with gcc 4 for FC4 development
mharris 3334fcd
mharris 396a893
* Mon Feb 7 2005 Mike A. Harris <mharris@redhat.com> 200-2
mharris 396a893
- Removed chmod from prep, and updated comment to refect (#128341c12)
mharris 396a893
mharris 396a893
* Mon Feb 7 2005 Mike A. Harris <mharris@redhat.com> 200-1
mharris 485fadb
- Updated main tarball to xterm-200 for FC4 devel
mharris fe988b1
- Disabled xterm-179-ppc-fix-bug-101472.patch for now, to see if the problem
mharris fe988b1
  occurs on ppc still or not.
mharris 485fadb
cvsdist 6307e19
* Fri Jul 13 2004 Mike A. Harris <mharris@redhat.com> 192-1
cvsdist 6307e19
- Updated main tarball to xterm-192 for FC3 devel
cvsdist 6307e19
- Resolved bugs #126569,127132
cvsdist 6307e19
cvsdist aaa5b94
* Fri Jun 18 2004 Mike A. Harris <mharris@redhat.com> 191-1
cvsdist aaa5b94
- Updated main tarball to xterm-191 for FC3 devel
cvsdist aaa5b94
- Disabled xterm-resources-redhat.patch to see what if anything breaks, as
cvsdist aaa5b94
  it no longer applies cleanly.  Hopefully we can just ship stock xterm
cvsdist aaa5b94
  resources now, although I realize that is more likely to be a pie in the
cvsdist aaa5b94
  sky fantasy once the bug reports trickle in from this change.  ;o)
cvsdist aaa5b94
  
cvsdist aaa5b94
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 179-8
cvsdist aaa5b94
- rebuilt
cvsdist aaa5b94
cvsdist aaa5b94
* Thu Jun  3 2004 Mike A. Harris <mharris@redhat.com> 179-7
cvsdist aaa5b94
- Rebuilt for FC3 devel
cvsdist aaa5b94
cvsdist aaa5b94
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 179-6.EL
cvsdist 401cdb6
- rebuilt
cvsdist 401cdb6
cvsdist 401cdb6
* Mon Sep  8 2003 Mike A. Harris <mharris@redhat.com> 179-5.EL
cvsdist 401cdb6
- Rebuilt 179-5 for Taroon
cvsdist 401cdb6
cvsdist ea59fcb
* Mon Sep  8 2003 Mike A. Harris <mharris@redhat.com> 179-5
cvsdist ea59fcb
- Added xterm-179-ppc-fix-bug-101472.patch ifarch ppc ppc64 to fix bug (#101472)
cvsdist ea59fcb
cvsdist ea59fcb
* Wed Aug 27 2003 Bill Nottingham <notting@redhat.com> 179-4.1
cvsdist ea59fcb
- fix symlink
cvsdist ea59fcb
- rebuild
cvsdist ea59fcb
cvsdist ea59fcb
* Wed Aug 13 2003 Mike A. Harris <mharris@redhat.com> 179-3.EL
cvsdist ea59fcb
- Rebuilt for Taroon with symlink fixes.
cvsdist ea59fcb
cvsdist ea59fcb
* Wed Aug 13 2003 Mike A. Harris <mharris@redhat.com> 179-3
cvsdist ea59fcb
- Added symlink /usr/X11R6/bin/xterm pointing to _bindir/xterm so that apps
cvsdist ea59fcb
  and scripts which invoke xterm explicitly as /usr/X11R6/bin/xterm, will
cvsdist ea59fcb
  continue to work correctly without surprises (#101994)
cvsdist ea59fcb
cvsdist ea59fcb
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 179-2.EL
cvsdist ea59fcb
- rebuilt
cvsdist ea59fcb
cvsdist ea59fcb
* Fri May 30 2003 Mike A. Harris <mharris@redhat.com> 179-1.EL
cvsdist ea59fcb
- Bump release to 1.EL for Red Hat Enterprise Linux build
cvsdist ea59fcb
cvsdist ea59fcb
* Mon May 26 2003 Mike A. Harris <mharris@redhat.com> 179-1
cvsdist ea59fcb
- Updated to upstream xterm 179
cvsdist ea59fcb
- [SECURITY] Added xterm-can-2003-0063.patch from XFree86 4.3.0-12 package
cvsdist ea59fcb
- Added Red Hat xterm-resources-redhat.patch from XFree86 4.3.0-12 package
cvsdist ea59fcb
- Added "chmod -R u+w *" after source is decompressed or else patches can not
cvsdist ea59fcb
  be applied due to upstream source being read only files
cvsdist ea59fcb
- Built xterm 179-1 in rawhide
cvsdist ea59fcb
cvsdist ea59fcb
* Mon May  5 2003 Mike A. Harris <mharris@redhat.com> 177-2.0.EL
cvsdist ea59fcb
- Bump release to 2.0.EL for Red Hat Enterprise Linux build
cvsdist ea59fcb
cvsdist ea59fcb
* Mon May  5 2003 Mike A. Harris <mharris@redhat.com> 177-2
cvsdist ea59fcb
- Build fix for lib64:  _x11datadir == /usr/X11R6/lib
cvsdist ea59fcb
- Another lib64 build fix:  xterm uses /usr/%%{_lib}/X11/app-defaults when it
cvsdist ea59fcb
  should be using an arch-neutral dir {_x11datadir}/X11/app-defaults instead
cvsdist ea59fcb
cvsdist ea59fcb
* Tue Apr 15 2003 Mike A. Harris <mharris@redhat.com> 177-1
cvsdist ea59fcb
- Call configure with "--enable-luit --enable-warnings --enable-wide-chars
cvsdist ea59fcb
  --with-utempter"
cvsdist ea59fcb
- Initial build.