cvsdist ea59fcb
Summary: xterm terminal emulator for the X Window System
jvdias 48344af
Name:    xterm
jvdias bc49892
Version: 213
215fd36
Release: 2.1%{?dist}
jvdias 48344af
URL:     http://dickey.his.com/xterm
cvsdist ea59fcb
License: MIT
jvdias 48344af
Group:   User Interface/X
cvsdist ea59fcb
BuildRoot: %{_tmppath}/%{name}-root
jvdias 015713d
Source0: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz
jvdias 015713d
Source1: ftp://invisible-island.net/xterm/ctlseqs.txt.gz
jvdias 015713d
Source2: ftp://invisible-island.net/xterm/UnicodeData-Latest.txt.gz
jvdias 015713d
Source3: ftp://invisible-island.net/xterm/16colors.txt
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
jvdias f6d0acd
Patch3: xterm-tty-group-name.patch
jvdias 48344af
Patch4: xterm-206-appsdir.patch
jvdias 0582258
Patch5: xterm-207-freetype.patch
jvdias 8d09f28
Patch6: xterm-207-eightBitInput_false.patch
jvdias 8692292
Patch7: xterm-209-redhat-resources.patch
jvdias eb8c187
Patch8: xterm-208-root-grab-console.patch
jvdias 8873885
Patch9: xterm-209-bz182382.patch
jvdias 6cde1f8
Patch10: xterm-209-bz183993.patch
jvdias df65fe1
Patch11: xterm-211-bz186094.patch
jvdias 079a6ba
Patch12: xterm-212-bz186935.patch
jvdias 079a6ba
Patch13: xterm-212-redhat-resources.patch
jvdias 079a6ba
Patch14: xterm-212-man-page_paths.patch
jvdias bc49892
Patch15: xterm-213-bz189161.patch
jvdias 48344af
BuildRequires: libXft-devel
jvdias 48344af
BuildRequires: freetype-devel
jvdias 48344af
BuildRequires: libXrender-devel
jvdias 48344af
BuildRequires: libXaw-devel
jvdias 48344af
BuildRequires: libXmu-devel
jvdias 48344af
BuildRequires: libXext-devel
jvdias 48344af
BuildRequires: libXt-devel
jvdias 48344af
BuildRequires: libSM-devel
jvdias 48344af
BuildRequires: libICE-devel
jvdias 48344af
BuildRequires: libX11-devel
jvdias 48344af
BuildRequires: libXpm-devel
jvdias 48344af
BuildRequires: libtermcap-devel
jvdias 48344af
BuildRequires: fontconfig-devel
jvdias 48344af
BuildRequires: expat-devel
jvdias 48344af
BuildRequires: zlib-devel
jvdias 48344af
BuildRequires: libtermcap-devel
jvdias 48344af
BuildRequires: utempter
cvsdist ea59fcb
jvdias 090a2ee
%{?!DEBUGINFO:     %define DEBUGINFO    1}
jvdias 090a2ee
%{?!enable_trace:  %define enable_trace 0}
jvdias df65fe1
%if !%{DEBUGINFO}
jvdias df65fe1
%define debug_package %{nil}
jvdias df65fe1
%endif
jvdias df65fe1
jvdias 015713d
%define x11_app_defaults_dir %{_datadir}/X11/app-defaults
jvdias 015713d
%{?!_with_256_color: %define _with_256_color 1}
jvdias dacc656
%{?!_with_tek4014: %define _with_tek4014 1}
jvdias 015713d
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
jvdias df01876
#%patch1 -p1 -b .resources-redhat
jvdias f6d0acd
%patch3 -p1 -b .tty-group-name
jvdias 48344af
%patch4 -p1 -b .appsdir
jvdias eb8c187
#%patch5 -p1 -b .freetype
jvdias eb8c187
#^- now fixed upstream in 208
jvdias eb8c187
#%patch6 -p1 -b .eightBitInput_false
jvdias 079a6ba
#%patch7 -p1 -b .redhat-resources
jvdias 079a6ba
#      ^- patch now in patch13
jvdias eb8c187
%patch8 -p1 -b .root-grab-console
jvdias df65fe1
#%patch9 -p1 -b .bz182382
jvdias df65fe1
#      ^- patch now upstream
jvdias df65fe1
#%patch10 -p1 -b .bz183993
jvdias df65fe1
#      ^- patch now upstream
jvdias 079a6ba
#%patch11 -p1 -b .bz186094
jvdias 079a6ba
#      ^- patch now in redhat-resources
jvdias 090a2ee
%patch12 -p1 -b .bz186935
jvdias 079a6ba
%patch13 -p1 -b .redhat-resources
jvdias 079a6ba
%patch14 -p1 -b .man-page_paths
jvdias bc49892
%patch15 -p1 -b .bz189161
cvsdist ea59fcb
cvsdist ea59fcb
%build
jvdias e5de706
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DPROJECTROOT='\"/usr\"'"
jvdias 090a2ee
%if %{DEBUGINFO}
jvdias e5de706
export CFLAGS="$RPM_OPT_FLAGS"
jvdias 090a2ee
%else
jvdias 090a2ee
export CFLAGS=`echo $RPM_OPT_FLAGS | sed 's/-O2 -g/-g3 -gdwarf-2/g'`;
jvdias 090a2ee
%endif
mharris d17020c
%configure --enable-luit \
mharris d17020c
           --enable-warnings \
mharris d17020c
           --enable-wide-chars \
mharris d17020c
           --with-utempter \
jvdias 48344af
	   --enable-narrowproto \
jvdias 015713d
	   --with-app-defaults=%{x11_app_defaults_dir} \
jvdias dacc656
%if !%{_with_tek4014}
jvdias dacc656
           --disable-tek4014 \
jvdias dacc656
%endif
jvdias 015713d
%if %{_with_256_color}
jvdias 015713d
	   --enable-256-color \
jvdias 015713d
%endif
jvdias 090a2ee
%if %{enable_trace}
jvdias 090a2ee
	   --enable-trace \
jvdias 090a2ee
%endif
jvdias 015713d
;
jvdias f6d0acd
export XTERM_TTY_GROUP_NAME=tty;
cvsdist ea59fcb
make
cvsdist ea59fcb
cvsdist ea59fcb
%install
cvsdist ea59fcb
rm -rf $RPM_BUILD_ROOT
jvdias 079a6ba
%makeinstall appsdir=$RPM_BUILD_ROOT/%{x11_app_defaults_dir} apploaddir=%{x11_app_defaults_dir}
cvsdist ea59fcb
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
cvsdist ea59fcb
mv $RPM_BUILD_ROOT/%{_mandir}/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
jvdias 015713d
gunzip < %SOURCE1 > ctlseqs.txt
jvdias 015713d
gunzip < %SOURCE2 > UnicodeData.txt
jvdias 015713d
cp -fp %SOURCE3 16colors.txt
jvdias df65fe1
%if !%{DEBUGINFO}
jvdias df65fe1
/usr/lib/rpm/brp-compress
jvdias df65fe1
exit 0
jvdias df65fe1
%endif
cvsdist ea59fcb
cvsdist ea59fcb
%clean
jvdias f6d0acd
#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*
jvdias 015713d
%{x11_app_defaults_dir}/UXTerm
jvdias 015713d
%{x11_app_defaults_dir}/XTerm
jvdias 015713d
%{x11_app_defaults_dir}/XTerm-color
jvdias 015713d
%doc xterm.log.html ctlseqs.ms ctlseqs.txt UnicodeData.txt 16colors.txt README.i18n
cvsdist ea59fcb
cvsdist ea59fcb
%changelog
215fd36
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 213-2.1
215fd36
- rebuild
215fd36
4f60a97
* Tue Jul 11 2006 Adam Jackson <ajackson@redhat.com> - 213-2.fc6
4f60a97
- Use correct dist tag in Release string.
4f60a97
jvdias bc49892
* Wed May 31 2006 Jason Vas Dias <jvdias@redhat.com> - 213-1
jvdias bc49892
- Upgrade to upstream version 213 (fixes bug 192627)
jvdias bc49892
- fix bug 189161 : make -r/-rv do reverseVideo with or without
jvdias bc49892
                   xterm*{fore,back}ground set
jvdias bc49892
 
jvdias 079a6ba
* Thu Apr 13 2006 Jason Vas Dias <jvdias@redhat.com> - 212-1
jvdias 079a6ba
- Upgrade to upstream version 212
jvdias 079a6ba
- fix bug 188031 : paths in man-page
jvdias 079a6ba
 
jvdias 090a2ee
* Wed Mar 29 2006 Jason Vas Dias <jvdias@redhat.com> - 211-4
jvdias 090a2ee
- fix bug 186935: cursor GCs must be freed with XtReleaseGC
jvdias 090a2ee
jvdias df65fe1
* Tue Mar 21 2006 Jason Vas Dias <jvdias@redhat.com> - 211-1
jvdias df65fe1
- Upgrade to upstream version 211 (fixes bug 186094).
jvdias df65fe1
- Enable new 'utf8Title' resource by default
jvdias df65fe1
 
jvdias 6cde1f8
* Tue Mar 07 2006 Jason Vas Dias <jvdias@redhat.com> - 209-4
jvdias 6cde1f8
- fix bug 183993: call set_cursor_gcs in ReverseVideo
jvdias 6cde1f8
jvdias 8873885
* Wed Feb 22 2006 Jason Vas Dias <jvdias@redhat.com> - 209-2
jvdias 8873885
- fix bug 182382: check for (VWindow(screen)!=0) in set_cursor_gcs
jvdias 8873885
- further fix for bug 178302: allow *vt100*cursorColor to be same as fg
jvdias 8873885
jvdias 8692292
* Tue Feb 14 2006 Jason Vas Dias <jvdias@redhat.com> - 209-1
jvdias 8692292
- Upgrade to upstream version 209 (fixes bug 180450)
jvdias 8692292
1359f43
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 208-1.2
1359f43
- bump again for double-long bug on ppc(64)
1359f43
a4945bd
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 208-1.1
a4945bd
- rebuilt for new gcc4.1 snapshot and glibc changes
a4945bd
jvdias eb8c187
* Tue Jan 17 2006 Jason Vas Dias<jvdias@redhat.com> - 208-1
jvdias eb8c187
- Upgrade to upstream version 208
jvdias eb8c187
- Allow root user to grab the console, even if /dev/console 
jvdias eb8c187
  not owned by root
jvdias eb8c187
- restore Red Hat '*VT100*scrollBar:1' default Xresource
jvdias eb8c187
jvdias dacc656
* Wed Dec 21 2005 Jason Vas Dias<jvdias@redhat.com> - 207-10
jvdias dacc656
- Fix bug 164210: tek4014 support should be enabled by default
jvdias dacc656
jvdias 015713d
* Wed Dec 14 2005 Jason Vas Dias<jvdias@redhat.com> - 207-8
jvdias 015713d
- Fix bug 175684: compile with --enable-256-color
jvdias 015713d
- Fix bug 155538 addenda - restore '*VT100*backarrowKey:0'
jvdias 015713d
68baf10
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
68baf10
- rebuilt
68baf10
jvdias e5de706
* Mon Nov 21 2005 Jason Vas Dias<jvdias@redhat.com> - 207-5
jvdias e5de706
- fix bug 173703: remove reference to /usr/X11R6/bin/luit :
jvdias e5de706
  PROJECTROOT should be /usr, not /usr/X11R6
jvdias e5de706
jvdias e5de706
* Thu Nov 18 2005 Jason Vas Dias<jvdias@redhat.com> - 207-4
jvdias e5de706
- fix bug 173541: better fix for freetype configuration problem
jvdias e5de706
jvdias 9e3a1cc
* Mon Nov 14 2005 Jason Vas Dias<jvdias@redhat.com> - 207-1
jvdias 9e3a1cc
- Upgrade to upstream version 207
jvdias 9e3a1cc
- Fix app-defaults directory for modular X11
jvdias 9e3a1cc
6d542e9
* Sun Nov 13 2005 Jeremy Katz <katzj@redhat.com> - 206-4
6d542e9
- rebuild for newer modular X
6d542e9
jvdias ef746ef
* Fri Nov 04 2005 Jason Vas Dias <jvdias@redhat.com> 206-1
jvdias ef746ef
- Upgrade to upstream version 206
jvdias ef746ef
jvdias f6d0acd
* Wed Oct 12 2005 Jason Vas Dias <jvdias@redhat.com> 205-1
jvdias f6d0acd
- Upgrade to upstream version 205 
jvdias f6d0acd
  fixes bugs: 124421, 129146, 159562, 161894, 169347
jvdias f6d0acd
 
mharris f99f506
* Sat Sep 24 2005 Mike A. Harris <mharris@redhat.com> 200-10
mharris f99f506
- Updated xterm-resources-redhat.patch to add "xterm*ttyModes: erase ^?"
mharris 3d0df27
  resource to fix bug (#155538,160354,163812,162549)
mharris f99f506
  
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.