From 4bc4ebefd0b61870ce05d0d44378afa97d9348cc Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Mar 29 2013 01:19:26 +0000 Subject: import x3270-3.3.12ga12-2.el7.src.rpm --- diff --git a/.x3270.metadata b/.x3270.metadata new file mode 100644 index 0000000..c08661f --- /dev/null +++ b/.x3270.metadata @@ -0,0 +1,2 @@ +23a25021b6a0c9442cbd59aec9907c37f48d1c36 SOURCES/suite3270-3.3.12ga12-src.tgz +eb1aaf6836d92ee72fd1d1f2bec43cc412548102 SOURCES/x3270.png diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/x3270-3.3.10-ibmhostpath.patch b/SOURCES/x3270-3.3.10-ibmhostpath.patch new file mode 100644 index 0000000..afb64a6 --- /dev/null +++ b/SOURCES/x3270-3.3.10-ibmhostpath.patch @@ -0,0 +1,175 @@ +diff -up x3270-3.3.10ga4/c3270-3.3/c3270.man.ibmhostspath x3270-3.3.10ga4/c3270-3.3/c3270.man +--- x3270-3.3.10ga4/c3270-3.3/c3270.man.ibmhostspath 2009-12-07 13:06:22.000000000 +0100 ++++ x3270-3.3.10ga4/c3270-3.3/c3270.man 2009-12-07 13:09:17.000000000 +0100 +@@ -3204,7 +3204,7 @@ backslash character. + If more than one \fB\-xrm\fP option is given for the same resource, + the last one on the command line is used. + .SH "FILES" +-/usr/local/lib/x3270/ibm_hosts ++/etc/ibm_hosts + .br + $HOME/.c3270pro + +diff -up x3270-3.3.10ga4/c3270-3.3/glue.c.ibmhostspath x3270-3.3.10ga4/c3270-3.3/glue.c +diff -up x3270-3.3.10ga4/c3270-3.3/host.c.ibmhostspath x3270-3.3.10ga4/c3270-3.3/host.c +--- x3270-3.3.10ga4/c3270-3.3/host.c.ibmhostspath 2009-12-07 13:13:03.000000000 +0100 ++++ x3270-3.3.10ga4/c3270-3.3/host.c 2009-12-07 13:14:35.000000000 +0100 +@@ -126,7 +126,7 @@ hostfile_init(void) + hostfile_initted = True; + hostfile_name = appres.hostsfile; + if (hostfile_name == CN) +- hostfile_name = xs_buffer("%s/ibm_hosts", appres.conf_dir); ++ hostfile_name = xs_buffer("%s/ibm_hosts", "/etc"); + else + hostfile_name = do_subst(appres.hostsfile, True, True); + hf = fopen(hostfile_name, "r"); +diff -up x3270-3.3.10ga4/c3270-3.3/html/c3270-man.html.ibmhostspath x3270-3.3.10ga4/c3270-3.3/html/c3270-man.html +diff -up x3270-3.3.10ga4/c3270-3.3/html/Resources.html.ibmhostspath x3270-3.3.10ga4/c3270-3.3/html/Resources.html +diff -up x3270-3.3.10ga4/c3270-3.3/Makefile.ibmhostspath x3270-3.3.10ga4/c3270-3.3/Makefile +diff -up x3270-3.3.10ga4/c3270-3.3/Makefile.in.ibmhostspath x3270-3.3.10ga4/c3270-3.3/Makefile.in +--- x3270-3.3.10ga4/c3270-3.3/Makefile.in.ibmhostspath 2009-12-07 13:06:43.000000000 +0100 ++++ x3270-3.3.10ga4/c3270-3.3/Makefile.in 2009-12-07 13:12:43.000000000 +0100 +@@ -84,10 +84,10 @@ install:: c3270 x3270if + $(INSTALL_PROGRAM) c3270 $(DESTDIR)$(BINDIR)/c3270 + $(INSTALL_PROGRAM) x3270if $(DESTDIR)$(BINDIR)/x3270if + install:: +- [ -d $(DESTDIR)$(LIBX3270DIR) ] || \ +- mkdir -p $(DESTDIR)$(LIBX3270DIR) +- [ -r $(DESTDIR)$(LIBX3270DIR)/ibm_hosts ] || \ +- $(INSTALL_DATA) ibm_hosts $(DESTDIR)$(LIBX3270DIR)/ibm_hosts ++ [ -d $(DESTDIR)/etc ] || \ ++ mkdir -p $(DESTDIR)/etc ++ [ -r $(DESTDIR)/etc/ibm_hosts ] || \ ++ $(INSTALL_DATA) ibm_hosts $(DESTDIR)/etc/ibm_hosts + @PR@install:: + + install.man: +diff -up x3270-3.3.10ga4/s3270-3.3/host.c.ibmhostspath x3270-3.3.10ga4/s3270-3.3/host.c +--- x3270-3.3.10ga4/s3270-3.3/host.c.ibmhostspath 2009-12-07 13:17:07.000000000 +0100 ++++ x3270-3.3.10ga4/s3270-3.3/host.c 2009-12-07 13:18:19.000000000 +0100 +@@ -126,7 +126,7 @@ hostfile_init(void) + hostfile_initted = True; + hostfile_name = appres.hostsfile; + if (hostfile_name == CN) +- hostfile_name = xs_buffer("%s/ibm_hosts", appres.conf_dir); ++ hostfile_name = xs_buffer("%s/ibm_hosts", "/etc"); + else + hostfile_name = do_subst(appres.hostsfile, True, True); + hf = fopen(hostfile_name, "r"); +diff -up x3270-3.3.10ga4/s3270-3.3/html/Resources.html.ibmhostspath x3270-3.3.10ga4/s3270-3.3/html/Resources.html +diff -up x3270-3.3.10ga4/s3270-3.3/html/s3270-man.html.ibmhostspath x3270-3.3.10ga4/s3270-3.3/html/s3270-man.html +diff -up x3270-3.3.10ga4/s3270-3.3/s3270.man.ibmhostspath x3270-3.3.10ga4/s3270-3.3/s3270.man +--- x3270-3.3.10ga4/s3270-3.3/s3270.man.ibmhostspath 2009-12-07 13:16:49.000000000 +0100 ++++ x3270-3.3.10ga4/s3270-3.3/s3270.man 2009-12-07 13:18:34.000000000 +0100 +@@ -2015,7 +2015,7 @@ the \fBtraceDir\fP resource. + If more than one \fB\-xrm\fP option is given for the same resource, + the last one on the command line is used. + .SH "FILES" +-/usr/local/lib/x3270/ibm_hosts ++/etc/ibm_hosts + .br + + .SH "SEE ALSO" +diff -up x3270-3.3.10ga4/s3270-3.3/X3270.xad.ibmhostspath x3270-3.3.10ga4/s3270-3.3/X3270.xad +--- x3270-3.3.10ga4/s3270-3.3/X3270.xad.ibmhostspath 2009-12-07 13:17:00.000000000 +0100 ++++ x3270-3.3.10ga4/s3270-3.3/X3270.xad 2009-12-07 13:18:45.000000000 +0100 +@@ -221,7 +221,7 @@ x3270.charsetList: U.S. English (CP 03 + ! x3270.doConfirms: true + ! x3270.debugTracing: true + ! x3270.disconnectClear: false +-! x3270.hostsFile: /usr/lib/X11/x3270/ibm_hosts ++! x3270.hostsFile: /etc/ibm_hosts + ! x3270.highlightSelect: true + ! x3270.idleCommand: + ! x3270.idleTimeout: ~7m +diff -up x3270-3.3.10ga4/x3270-3.3/html/ibm_hosts.html.ibmhostspath x3270-3.3.10ga4/x3270-3.3/html/ibm_hosts.html +diff -up x3270-3.3.10ga4/x3270-3.3/html/Resources.html.ibmhostspath x3270-3.3.10ga4/x3270-3.3/html/Resources.html +diff -up x3270-3.3.10ga4/x3270-3.3/html/x3270-man.html.ibmhostspath x3270-3.3.10ga4/x3270-3.3/html/x3270-man.html +diff -up x3270-3.3.10ga4/x3270-3.3/ibm_hosts.man.ibmhostspath x3270-3.3.10ga4/x3270-3.3/ibm_hosts.man +--- x3270-3.3.10ga4/x3270-3.3/ibm_hosts.man.ibmhostspath 2009-12-07 12:59:42.000000000 +0100 ++++ x3270-3.3.10ga4/x3270-3.3/ibm_hosts.man 2009-12-07 13:01:03.000000000 +0100 +@@ -3,7 +3,7 @@ + .SH "NAME" + ibm_hosts \- host database for x3270 and c3270 + .SH "SYNOPSIS" +-/usr/lib/X11/x3270/ibm_hosts ++/etc/ibm_hosts + .SH "DESCRIPTION" + The \fBibm_hosts\fP + file contains information regarding IBM hosts on the network. +@@ -82,7 +82,7 @@ The name \fBvm\fP will cause the 3270 em + enter the string `3' on the second data-entry field on the screen, and + send the Enter \s-1AID\s+1 sequence. + .SH "FILES" +-/usr/lib/X11/x3270/ibm_hosts ++/etc/ibm_hosts + .SH "SEE ALSO" + x3270(1), + c3270(1) +diff -up x3270-3.3.10ga4/x3270-3.3/Imakefile.in.ibmhostspath x3270-3.3.10ga4/x3270-3.3/Imakefile.in +--- x3270-3.3.10ga4/x3270-3.3/Imakefile.in.ibmhostspath 2009-12-07 12:57:19.000000000 +0100 ++++ x3270-3.3.10ga4/x3270-3.3/Imakefile.in 2009-12-07 13:03:46.000000000 +0100 +@@ -190,8 +190,8 @@ $(DESTDIR)$(FONTINSTDIR)/fonts.dir:: + /* Extra install rule for the sample ibm_hosts file (runs only if there is + no ibm_hosts file installed yet). */ + install:: $(HOSTSFILE) +- @[ -r $(DESTDIR)$(LIBX3270DIR)/$(HOSTSFILE) ] || \ +- $(INSTALL) -c $(INSTDATFLAGS) $(HOSTSFILE) $(DESTDIR)$(LIBX3270DIR)/$(HOSTSFILE) ++ @[ -r $(DESTDIR)/etc/$(HOSTSFILE) ] || \ ++ $(INSTALL) -c $(INSTDATFLAGS) $(HOSTSFILE) $(DESTDIR)/etc/$(HOSTSFILE) + + /* + * Install rules for x3270if, x3270-script and ibm_hosts man pages. +@@ -220,8 +220,8 @@ install.byprefix:: + $(MKFONTDIR) $(DESTDIR)$(autoconf_fontinstdir) + chmod u=rwx,go=rx $(DESTDIR)$(autoconf_fontinstdir) + chmod a=r $(DESTDIR)$(autoconf_fontinstdir)/fonts.dir +- @[ -r $(DESTDIR)$(LIBX3270DIR)/$(HOSTSFILE) ] || \ +- (set -x; $(INSTALL) -c $(INSTDATFLAGS) $(HOSTSFILE) $(DESTDIR)$(LIBX3270DIR)/$(HOSTSFILE)) ++ @[ -r $(DESTDIR)/etc/$(HOSTSFILE) ] || \ ++ (set -x; $(INSTALL) -c $(INSTDATFLAGS) $(HOSTSFILE) $(DESTDIR)/etc/$(HOSTSFILE)) + + /****************************************************************************** + * Clean rules. * +diff -up x3270-3.3.10ga4/x3270-3.3/Makefile.in.ibmhostspath x3270-3.3.10ga4/x3270-3.3/Makefile.in +--- x3270-3.3.10ga4/x3270-3.3/Makefile.in.ibmhostspath 2009-12-07 12:59:22.000000000 +0100 ++++ x3270-3.3.10ga4/x3270-3.3/Makefile.in 2009-12-07 13:16:01.000000000 +0100 +@@ -127,10 +127,10 @@ install:: x3270 x3270if + $(INSTALL_PROGRAM) x3270 $(DESTDIR)$(BINDIR)/x3270 + $(INSTALL_PROGRAM) x3270if $(DESTDIR)$(BINDIR)/x3270if + install:: +- [ -d $(DESTDIR)$(LIBX3270DIR) ] || \ +- mkdir -p $(DESTDIR)$(LIBX3270DIR) +- [ -r $(DESTDIR)$(LIBX3270DIR)/ibm_hosts ] || \ +- $(INSTALL_DATA) ibm_hosts $(DESTDIR)$(LIBX3270DIR)/ibm_hosts ++ [ -d $(DESTDIR)/etc ] || \ ++ mkdir -p $(DESTDIR)/etc ++ [ -r $(DESTDIR)/etc/ibm_hosts ] || \ ++ $(INSTALL_DATA) ibm_hosts $(DESTDIR)/etc/ibm_hosts + install:: + [ -d $(DESTDIR)$(CIFONTDIR) ] || \ + mkdir -p $(DESTDIR)$(CIFONTDIR) +diff -up x3270-3.3.10ga4/x3270-3.3/X3270.ad.ibmhostspath x3270-3.3.10ga4/x3270-3.3/X3270.ad +--- x3270-3.3.10ga4/x3270-3.3/X3270.xad.ibmhostspath 2009-12-07 12:59:53.000000000 +0100 ++++ x3270-3.3.10ga4/x3270-3.3/X3270.xad 2009-12-07 13:05:28.000000000 +0100 +@@ -214,7 +214,7 @@ x3270.charsetList: U.S. English (CP 03 + ! x3270.doConfirms: true + ! x3270.debugTracing: true + ! x3270.disconnectClear: false +-! x3270.hostsFile: /usr/lib/X11/x3270/ibm_hosts ++! x3270.hostsFile: /etc/ibm_hosts + ! x3270.highlightSelect: true + ! x3270.idleCommand: + ! x3270.idleTimeout: ~7m +diff -up x3270-3.3.10ga4/x3270-3.3/x3270.man.ibmhostspath x3270-3.3.10ga4/x3270-3.3/x3270.man +--- x3270-3.3.10ga4/x3270-3.3/x3270.man.ibmhostspath 2009-12-07 12:59:05.000000000 +0100 ++++ x3270-3.3.10ga4/x3270-3.3/x3270.man 2009-12-07 13:05:42.000000000 +0100 +@@ -5008,7 +5008,7 @@ T} + The special types \fBsocks4a\fP and \fBsocks5d\fP can also be used to force + the proxy server to do the hostname resolution for the SOCKS protocol. + .SH "FILES" +-/usr/lib/X11/x3270/ibm_hosts ++/etc/ibm_hosts + .br + $HOME/.x3270pro + diff --git a/SOURCES/x3270-3.3.10-paths.patch b/SOURCES/x3270-3.3.10-paths.patch new file mode 100644 index 0000000..e3e9a3a --- /dev/null +++ b/SOURCES/x3270-3.3.10-paths.patch @@ -0,0 +1,18 @@ +diff -up x3270-3.3.10ga4/x3270-3.3/Examples/peer_script.expect.expectpath x3270-3.3.10ga4/x3270-3.3/Examples/peer_script.expect +--- x3270-3.3.10ga4/x3270-3.3/Examples/peer_script.expect.expectpath 2009-12-04 13:56:39.000000000 +0100 ++++ x3270-3.3.10ga4/x3270-3.3/Examples/peer_script.expect 2009-12-04 13:56:44.000000000 +0100 +@@ -1,4 +1,4 @@ +-#! /usr/local/bin/expect ++#! /usr/bin/expect + # TSO login script, which runs as a peer of x3270. + # expect version + +diff -up x3270-3.3.10ga4/x3270-3.3/Examples/cms_logon.bash.bashpath x3270-3.3.10ga4/x3270-3.3/Examples/cms_logon.bash +--- x3270-3.3.10ga4/x3270-3.3/Examples/cms_logon.bash.bashpath 2009-12-04 13:58:21.000000000 +0100 ++++ x3270-3.3.10ga4/x3270-3.3/Examples/cms_logon.bash 2009-12-04 13:59:25.000000000 +0100 +@@ -1,4 +1,4 @@ +-#! /usr/local/bin/bash ++#! /bin/bash + + # Copyright (c) 1995-2009, Paul Mattes. + # All rights reserved. diff --git a/SOURCES/x3270.desktop b/SOURCES/x3270.desktop new file mode 100644 index 0000000..d87ab9f --- /dev/null +++ b/SOURCES/x3270.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=x3270 +GenericName=Terminal emulator +Type=Application +Comment=3270 terminal emulator +Exec=x3270 +Icon=x3270 +StartupNotify=true +Categories=System;Utility;TerminalEmulator; diff --git a/SPECS/x3270.spec b/SPECS/x3270.spec new file mode 100644 index 0000000..875e423 --- /dev/null +++ b/SPECS/x3270.spec @@ -0,0 +1,504 @@ +%global fontdir %{_datadir}/x3270/fonts +%global catalogue /etc/X11/fontpath.d + +%define majorver 3.3 +Summary: An X Window System based IBM 3278/3279 terminal emulator +Name: x3270 +Version: 3.3.12ga12 +Release: 2%{?dist} +License: BSD +Group: Applications/Internet +URL: http://x3270.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/suite3270-%{version}-src.tgz +# c3270-3.3 pr3287-3.3 s3270-3.3 tcl3270-3.3 wc3270-3.3 wpr3287-3.3 ws3270-3.3 x3270-3.3 +# +Source1: x3270.png +Source2: x3270.desktop +Patch0: x3270-3.3.10-paths.patch +Patch1: x3270-3.3.10-ibmhostpath.patch + +BuildRequires: ncurses-devel +BuildRequires: readline-devel +BuildRequires: openssl-devel +BuildRequires: libtool +BuildRequires: desktop-file-utils + +%package x11 +Summary: IBM 3278/3279 terminal emulator for the X Window System +Group: Applications/Internet +BuildRequires: imake +BuildRequires: xorg-x11-font-utils +BuildRequires: libXaw-devel +Requires: %{name} = %{version} +Requires(post): /usr/bin/mkfontdir +Requires(postun): /usr/bin/mkfontdir + +%package text +Summary: IBM 3278/3279 terminal emulator for text mode +Group: Applications/Internet +Requires: %{name} = %{version} + + +%description +The x3270 package contains files needed for emulating the IBM 3278/3279 +terminals, commonly used with mainframe applications. + +You will also need to install a frontend for %{name}. Available frontends +are %{name}-x11 (for the X Window System) and %{name}-text (for text mode). + +%description x11 +The x3270 program opens a window in the X Window System which emulates +the actual look of an IBM 3278/3279 terminal, commonly used with +mainframe applications. x3270 also allows you to telnet to an IBM +host from the x3270 window. + +Install the %{name}-x11 package if you need to access IBM hosts using an IBM +3278/3279 terminal emulator from X11. + +%description text +The c3270 program opens a 3270 terminal which emulates the actual look of an +IBM 3278/3279 terminal, commonly used with mainframe applications. +x3270 also allows you to telnet to an IBM host from the x3270 window. + +Install the %{name}-text package if you need to access IBM hosts using an IBM +3278/3279 terminal emulator without running X. + + +%prep +%setup -q -c +# delete windows and tcl sources: +rm -rf wpr3287* wc3270* ws3270* tcl3270* +%patch0 -p1 +%patch1 -p1 + +# update for aarch64 (#926737) +for i in x3270-%{majorver} c3270-%{majorver} pr3287-%{majorver} s3270-%{majorver}; do +( cd $i +cp -p %{_datadir}/automake-*/config.{guess,sub} . +autoconf +) +done + + +%build +# Fix end of line encodings +perl -pi -e "s/ +//" */html/Keymap.html */html/Build.html +# Set LIBX3270DIR to something we can share with x3270-text +perl -pi -e "s,LIBX3270DIR =.*,LIBX3270DIR = %{_datadir}/x3270,g" x3270-%{majorver}/Imakefile.in +# use rpmoptflags for x3270if +perl -pi -e 's/ -o x3270if x3270if.c/ \$(CCOPTIONS) -o x3270if x3270if.c/g' x3270-%{majorver}/Imakefile.in + +for i in x3270-%{majorver} c3270-%{majorver} pr3287-%{majorver} s3270-%{majorver}; do +( cd $i +%configure --with-fontdir=%{fontdir} --x-includes=/usr/include/X11 --x-libraries=/%{_libdir}/X11 --enable-app-defaults +make %{?_smp_mflags} CCOPTIONS="$RPM_OPT_FLAGS" +) +done + + +%install +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/x3270 +mkdir -p $RPM_BUILD_ROOT%{_bindir} +mkdir -p $RPM_BUILD_ROOT%{_datadir}/x3270 +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5 +mkdir -p $RPM_BUILD_ROOT%{fontdir} +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps +mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults +mkdir -p $RPM_BUILD_ROOT%{catalogue} + +install -p -m755 x3270-%{majorver}/x3270 $RPM_BUILD_ROOT%{_bindir} +install -p -m755 x3270-%{majorver}/x3270if $RPM_BUILD_ROOT%{_bindir} +install -p -m644 x3270-%{majorver}/*pcf.gz $RPM_BUILD_ROOT%{fontdir} +install -p -m644 x3270-%{majorver}/ibm_hosts $RPM_BUILD_ROOT%{_sysconfdir}/ +install -p -m644 x3270-%{majorver}/X3270.ad $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults/X3270 +install -p -m644 x3270-%{majorver}/x3270.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270.1 +install -p -m644 x3270-%{majorver}/x3270if.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270if.1 +install -p -m644 x3270-%{majorver}/x3270-script.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270-script.1 +install -p -m644 x3270-%{majorver}/ibm_hosts.man $RPM_BUILD_ROOT%{_mandir}/man5/ibm_hosts.5 + +install -p -m755 pr3287-%{majorver}/pr3287 $RPM_BUILD_ROOT%{_bindir} +install -p -m644 pr3287-%{majorver}/pr3287.man $RPM_BUILD_ROOT%{_mandir}/man1/pr3287.1x + +install -p -m755 c3270-%{majorver}/c3270 $RPM_BUILD_ROOT%{_bindir} +install -p -m644 c3270-%{majorver}/c3270.man $RPM_BUILD_ROOT%{_mandir}/man1/c3270.1 + +install -p -m755 s3270-%{majorver}/s3270 $RPM_BUILD_ROOT%{_bindir} +install -p -m644 s3270-%{majorver}/s3270.man $RPM_BUILD_ROOT%{_mandir}/man1/s3270.1 + +install -p -m644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/48x48/apps +ln -sf %{fontdir} $RPM_BUILD_ROOT%{catalogue}/x3270 +mv x3270-%{majorver}/README* x3270-%{majorver}/LICENSE x3270-%{majorver}/Examples x3270-%{majorver}/html . +mv c3270-%{majorver}/README README.c3270 +mv c3270-%{majorver}/html html_c3270 +mv pr3287-%{majorver}/README README.pr3287 +mv pr3287-%{majorver}/html html_pr3287 +mv s3270-%{majorver}/README README.s3270 +mv s3270-%{majorver}/html html_s3270 + +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications +desktop-file-install \ + --dir $RPM_BUILD_ROOT/%{_datadir}/applications \ + %{SOURCE2} + +rm -f */Examples/*.rh */Examples/*.orig +chmod -x Examples/* html*/* + + +%post x11 +cd %{fontdir} && %{_prefix}/bin/mkfontdir +touch --no-create %{_datadir}/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q %{_datadir}/icons/hicolor +fi + +%postun x11 +if [ "$1" = "0" ]; then + cd %{fontdir} && %{_prefix}/bin/mkfontdir +fi +touch --no-create %{_datadir}/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q %{_datadir}/icons/hicolor +fi + + +%files +%doc README* LICENSE Examples html* +%{_bindir}/s3270 +%{_bindir}/pr3287 +%{_bindir}/x3270if +%exclude %{_mandir}/man1/c3270* +%{_mandir}/man1/* +%{_mandir}/man5/* +%dir %{_datadir}/x3270 +%config(noreplace) %{_sysconfdir}/ibm_hosts + +%files x11 +%{_bindir}/x3270 +%dir %{fontdir} +%{fontdir}/* +%{catalogue}/x3270 +%{_datadir}/icons/hicolor/48x48/apps/x3270.png +%{_datadir}/X11/app-defaults/X3270 +%{_datadir}/applications/* + +%files text +%{_bindir}/c3270 +%{_mandir}/man1/c3270* + + +%changelog +* Mon Mar 25 2013 Samantha N. Bueno - 3.3.12ga12-2 +- Rebuilt to include fix for #926737 + +* Mon Mar 25 2013 Samantha N. Bueno - 3.3.12ga12-1 +- updated to 3.3.12ga12 +- fixes CVE-2012-5662 (#889373, #924228) +- add support for aarch64 to build system (#926737) + +* Sun Feb 10 2013 Parag Nemade - 3.3.12ga11-5 +- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 +- Cleanup spec as per recently changed packaging guidelines + +* Thu Nov 22 2012 Dan Horák - 3.3.12ga11-4 +- fix license (BSD instead of MIT) + +* Thu Sep 27 2012 Dan Horák - 3.3.12ga11-3 +- cleanup of BuildRequires + +* Fri Sep 21 2012 Dan Horák - 3.3.12ga11-2 +- enable DBCS character sets (#801139) + +* Fri Sep 07 2012 Dan Horák - 3.3.12ga11-1 +- updated to 3.3.12ga11 + +* Sun Jul 22 2012 Fedora Release Engineering - 3.3.12ga7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Apr 12 2012 Dan Horák - 3.3.12ga7-1 +- updated to 3.3.12ga7 +- spec cleanup + +* Sat Jan 14 2012 Fedora Release Engineering - 3.3.10ga4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 3.3.10ga4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 08 2009 Karsten Hopp 3.3.10ga4-1 +- update to 3.3.10ga4-1 + +* Fri Aug 21 2009 Tomas Mraz - 3.3.6-10 +- rebuilt with new openssl + +* Mon Jul 27 2009 Fedora Release Engineering - 3.3.6-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 3.3.6-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Jan 18 2009 Tomas Mraz 3.3.6-7 +- rebuild with new openssl + +* Thu Oct 02 2008 Karsten Hopp 3.3.6-6 +- update redhat patch for fuzz=0 (#465087) + +* Thu Mar 20 2008 Karsten Hopp 3.3.6-5 +- fix compiler flags for FORTIFY_SOURCE + +* Tue Feb 19 2008 Fedora Release Engineering - 3.3.6-4 +- Autorebuild for GCC 4.3 + +* Wed Dec 05 2007 Karsten Hopp 3.3.6-3 +- rebuild with new openssl libs + +* Tue Aug 21 2007 Karsten Hopp 3.3.6-2 +- drop chkfontpath dependency (#252274) + +* Wed Aug 08 2007 Karsten Hopp 3.3.6-1 +- version 3.3.6 +- fix font resize issue +- enable app-defaults + +* Sun Aug 27 2006 Karsten Hopp 3.3.4p7-5 +- rebuild + +* Tue Aug 15 2006 Karsten Hopp 3.3.4p7-4 +- fix requirements of -X11 subpackage + +* Wed Jul 12 2006 Karsten Hopp 3.3.4p7-3 +- fix fileconflicts in subpackages + +* Wed Jul 05 2006 Karsten Hopp 3.3.4p7-2 +- silence chkconfig +- rpmlint fixes: + - replace PreReq/BuildPrereq with Requires/BuildRequires + - move ibm_hosts to %%{_sysconfdir} + - fix end of line encodings in docs + +* Tue Jun 13 2006 Karsten Hopp 3.3.4p6-6 +- update to 3.3.4p7 +- buildrequire libtool + +* Fri Feb 17 2006 Karsten Hopp 3.3.4p6-5 +- rebuild + +* Mon Dec 19 2005 Karsten Hopp 3.3.4p6-4 +- test build without modular-X patch + +* Wed Nov 23 2005 Karsten Hopp 3.3.4p6-3 +- update release again + +* Wed Nov 23 2005 Karsten Hopp 3.3.4p6-2 +- update release + +* Thu Nov 17 2005 Karsten Hopp 3.3.4p6-1 +- update to patchlevel 6 +- drop obsolete segfault patch +- build with modular X +- build with current openssl +- gccmakedep is gone, use makedepend wrapper instead + +* Wed Oct 19 2005 Karsten Hopp 3.3.4-6 +- move x3270-x11 files from /usr/X11R6 to /usr (#170938) + +* Thu Sep 08 2005 Karsten Hopp 3.3.4-5 +- add missing buildrequires so that x3270 will be built with SSL support + (#159527) + +* Wed Jul 20 2005 Karsten Hopp 3.3.4-4 +- buildrequires xorg-x11-font-utils (#160737) +- add disttag + +* Wed Apr 27 2005 Jeremy Katz +- silence gtk-update-icon-cache in %%post + +* Wed Apr 20 2005 Karsten Hopp 3.3.4-3 +- more fixes, enable StartupNotify + +* Wed Apr 20 2005 Karsten Hopp 3.3.4-2 +- spec file cleanups from Chris Ricker +- remove backup files from rpm patch process + +* Mon Apr 18 2005 Karsten Hopp 3.3.4-1 +- rpmlint fix +- buildroot fix +- use _smp_mflags + +* Tue Apr 12 2005 Karsten Hopp 3.3.4-1 +- Version 3.3.4, fixes mouse selection and timing problems with scripted + logins in ~/.ibm_hosts + +* Mon Mar 28 2005 Christopher Aillon +- rebuilt + +* Fri Mar 25 2005 Christopher Aillon 3.3.3.b2-2 +- Update the GTK+ theme icon cache on (un)install + +* Tue Mar 08 2005 Karsten Hopp 3.3.3.b2-1 +- update to b2, which fixes a segfault when login is done with + an entry in .ibm_hosts (via emulate_input) + +* Wed Mar 02 2005 Karsten Hopp 3.3.3.b1-2 +- build with gcc-4 + +* Thu Jan 13 2005 Karsten Hopp 3.3.3.b1-1 +- update to fix ibm_hosts file parsing and c3270 color support + +* Wed Jan 12 2005 Tim Waugh 3.3.2.p1-10 +- Rebuilt for new readline. + +* Wed Dec 08 2004 Karsten Hopp 3.3.2.p1-9 +- add icon (#141599, #125577) +- fix variable usage (local variable overwrite) (#116660) + +* Wed Dec 08 2004 Karsten Hopp 3.3.2.p1-8 +- rebuild + +* Thu Oct 21 2004 Karsten Hopp 3.3.2.p1-7 +- enable builds on ppc(64) again (#136703) + +* Wed Jul 07 2004 Karsten Hopp 3.3.2.p1-6 +- rebuild with new gcc + +* Mon Jul 05 2004 Karsten Hopp 3.3.2.p1-5 +- update c3270 package to patchlevel2 +- fix buildrequires (#124280) +- fix compiler warnings (#106312, #78479) + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Tue Feb 17 2004 Karsten Hopp 3.3.2.p1-3 +- include license file + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Thu Jan 15 2004 Karsten Hopp 3.3.2.p1-1 +- update to 3.3.2.p1 + +* Wed Dec 03 2003 Karsten Hopp 3.3.2-1 +- update to latest stable release, now with SSL and DBCS support + +* Tue Aug 12 2003 Karsten Hopp 3.2.20-4.2 +- check for libncursesw and use it if available + +* Wed Jul 09 2003 Karsten Hopp 3.2.20-4.1 +- rebuilt + +* Wed Jul 09 2003 Karsten Hopp 3.2.20-4 +- fix segfault when ~/.x3270connect isn't writable by the user + +* Tue Jun 17 2003 Karsten Hopp 3.2.20-3.1 +- rebuilt + +* Tue Jun 17 2003 Karsten Hopp 3.2.20-3 +- rebuild + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Mon May 05 2003 Karsten Hopp 3.2.20-1 +- update to 3.2.20 + +* Tue Apr 1 2003 Thomas Woerner +- fixed inclusion of time header file (sys/time.h -> time.h) + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Tue Nov 19 2002 Karsten Hopp 3.2.19-3 +- update to patchlevel 4: + Re-enable the automatic font switching when the + x3270 window is resized + +* Tue Nov 19 2002 Tim Powers +- rebuild for all arches +- remove cruft from the buildroot we aren't shipping + +* Wed Jul 24 2002 Karsten Hopp +- 3.2.19 +- use desktop-file-utils + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Mon Mar 4 2002 Bernhard Rosenkraenzer 3.2.18-2 +- Update to 3.2.18 patchlevel 14 + +* Wed Jan 16 2002 Bernhard Rosenkraenzer 3.2.18-1 +- 3.2.18 +- Don't ship x3270-tcl anymore + +* Mon Jul 16 2001 Bernhard Rosenkraenzer 3.2.16-4 +- Add build dependencies (#48930) + +* Sat Jun 09 2001 Florian La Roche +- remove all provides/requires for x3270-frontend + +* Sun May 13 2001 Bernhard Rosenkraenzer 3.2.16-2 +- Rebuild with new readline + +* Thu May 10 2001 Bernhard Rosenkraenzer 3.2.16-1 +- 3.2.16 +- adapt patches +- get rid of the **** pdksh requirement +- split the tcl version into a different package, no need to require tcl for + normal use +- split the x11 frontend into a separate package. + We don't necessarily have X on a machine where we want to run + 3270 sessions (e.g. s390...) + +* Fri Dec 22 2000 Bernhard Rosenkraenzer +- 3.2.14 +- Add c3270 (textmode x3270) in x3270-text package +- Fix build +- Make ibm_hosts a %%config(noreplace) + +* Tue Oct 24 2000 Jeff Johnson +- remove /usr/local paths in Examples. + +* Sun Oct 22 2000 Jeff Johnson +- update to 3.2.13. + +* Thu Jul 13 2000 Prospector +- automatic rebuild + +* Fri Jun 2 2000 Jeff Johnson +- rebuild for 7.0 + +* Mon Feb 07 2000 Preston Brown +- wmconfig -> desktop + +* Mon Feb 7 2000 Jeff Johnson +- compress man pages. + +* Fri Jan 14 2000 Jeff Johnson +- update to 3.1.1.9 (see URL for pending 3.2alpha version). + +* Fri Sep 24 1999 Preston Brown +- change to directory before doing a mkfontdir + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 7) + +* Tue Jan 12 1999 Jeff Johnson +- ibm_hosts needed %%config (#788) + +* Fri Aug 7 1998 Jeff Johnson +- build root + +* Fri May 01 1998 Prospector System +- translations modified for de, fr, tr + +* Wed Oct 22 1997 Marc Ewing +- new version +- added wmconfig entry + +* Mon Jul 21 1997 Erik Troan +- built against glibc