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
cvsdist aaa5b94
Version: 191
cvsdist aaa5b94
Release: 1
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
cvsdist ea59fcb
BuildRequires: XFree86-devel >= 4.3.0
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
cvsdist ea59fcb
# The xterm source code decompreses with all of the files read-only, which
cvsdist ea59fcb
# is totally retarded.
cvsdist ea59fcb
chmod -R u+w .
cvsdist ea59fcb
%patch0 -p0 -b .can-2003-0063
cvsdist aaa5b94
#%patch1 -p0 -b .resources-redhat
cvsdist ea59fcb
%ifarch ppc ppc64
cvsdist ea59fcb
%patch2 -p0 -b .ppc-fix-bug-101472
cvsdist ea59fcb
%endif
cvsdist ea59fcb
cvsdist ea59fcb
%build
cvsdist ea59fcb
%configure --enable-luit --enable-warnings --enable-wide-chars --with-utempter
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
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.