Compare commits

..

2 commits

Author SHA1 Message Date
Samantha N. Bueno
c5b259b3b4 Update .gitignore for 3.3.12ga12 2013-03-26 08:34:27 -04:00
Samantha N. Bueno
2ac963ec2b updated to 3.3.12ga12
- fixes CVE-2012-5662 (#924183, #924228)
2013-03-26 08:32:23 -04:00
8 changed files with 301 additions and 369 deletions

5
.gitignore vendored
View file

@ -1 +1,4 @@
/suite3270-*-src.tgz
suite3270-3.3.10ga4-src.tgz
/suite3270-3.3.12ga7-src.tgz
/suite3270-3.3.12ga11-src.tgz
/suite3270-3.3.12ga12-src.tgz

View file

@ -1,21 +0,0 @@
diff -up suite3270-4.5/x3270/CmeP.h.c23 suite3270-4.5/x3270/CmeP.h
--- suite3270-4.5/x3270/CmeP.h.c23 2026-02-23 17:11:47.532461550 +0100
+++ suite3270-4.5/x3270/CmeP.h 2026-02-23 17:12:44.818297155 +0100
@@ -120,16 +120,7 @@ typedef struct _CmeRec {
*
************************************************************/
-#if defined(__clang__) /*[*/
-# pragma clang diagnostic push
-# pragma clang diagnostic ignored "-Wstrict-prototypes"
-#endif /*]*/
-typedef void (*_XawEntryVoidFunc)();
-#if defined(__clang__) /*[*/
-# pragma clang diagnostic pop
-#endif /*]*/
-
-#define XtInheritHighlight ((_XawEntryVoidFunc) _XtInherit)
+#define XtInheritHighlight (void (*)(struct _WidgetRec *)) _XtInherit
#define XtInheritUnhighlight XtInheritHighlight
#define XtInheritNotify XtInheritHighlight

View file

@ -1,12 +0,0 @@
diff -up suite3270-4.5/Common/mkversion.py.orig suite3270-4.5/Common/mkversion.py
--- suite3270-4.5/Common/mkversion.py.orig 2026-02-23 17:23:54.155112220 +0100
+++ suite3270-4.5/Common/mkversion.py 2026-02-23 17:24:19.943983520 +0100
@@ -111,7 +111,7 @@ def mkversion(outfile_name: str, program
# Get the date.
if 'SOURCE_DATE_EPOCH' in os.environ:
- now = datetime.fromtimestamp(int(os.environ['SOURCE_DATE_EPOCH'])).replace(tzinfo=timezone.utc)
+ now = datetime.utcfromtimestamp(int(os.environ['SOURCE_DATE_EPOCH']))
else:
now = datetime.now(timezone.utc)
builddate = datetime.strftime(now, '%a %b %d %H:%M:%S %Z %Y')

View file

@ -1 +1 @@
SHA512 (suite3270-4.5ga5-src.tgz) = 4d80f4d31b88a5d99862b6a2c0fbb6c4f45ea55d393d306cd0cb7e989a85759da7df5afcda1ba24e6608ab9a61a5385d8d63786b5e83c6ba192d1b682546d02e
a768cb6a519698a6ec035d7782928e46 suite3270-3.3.12ga12-src.tgz

View file

@ -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

18
x3270-3.3.10-paths.patch Normal file
View file

@ -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.

View file

@ -1,18 +0,0 @@
diff -up suite3270-3.5/x3270/Examples/cms_logon.bash.paths suite3270-3.5/x3270/Examples/cms_logon.bash
--- suite3270-3.5/x3270/Examples/cms_logon.bash.paths 2015-09-20 01:04:56.000000000 +0200
+++ suite3270-3.5/x3270/Examples/cms_logon.bash 2016-05-12 12:00:57.000000000 +0200
@@ -1,4 +1,4 @@
-#! /usr/local/bin/bash
+#! /bin/bash
# Copyright (c) 1995-2009, Paul Mattes.
# All rights reserved.
diff -up suite3270-3.5/x3270/Examples/peer_script.expect.paths suite3270-3.5/x3270/Examples/peer_script.expect
--- suite3270-3.5/x3270/Examples/peer_script.expect.paths 2015-09-20 01:04:56.000000000 +0200
+++ suite3270-3.5/x3270/Examples/peer_script.expect 2016-05-12 12:00:57.000000000 +0200
@@ -1,4 +1,4 @@
-#! /usr/local/bin/expect
+#! /usr/bin/expect
# TSO login script, which runs as a peer of x3270.
# expect version

View file

@ -1,37 +1,41 @@
%global catalogue /etc/X11/fontpath.d
%define fontdir %{_datadir}/x3270/fonts
%define catalogue /etc/X11/fontpath.d
%global majorver 4.5
%define majorver 3.3
Summary: An X Window System based IBM 3278/3279 terminal emulator
Name: x3270
Version: 4.5ga5
Release: 3%{?dist}
License: BSD-3-Clause AND HPND-sell-variant AND MIT AND Apache-2.0
URL: https://x3270.miraheze.org/wiki/Main_Page
Version: 3.3.12ga12
Release: 1%{?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.5-paths.patch
# workaround C23 related issues
Patch1: c23.patch
Patch2: mkversion.patch
Patch0: x3270-3.3.10-paths.patch
Patch1: x3270-3.3.10-ibmhostpath.patch
BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: readline-devel
BuildRequires: openssl-devel
BuildRequires: libtool
BuildRequires: desktop-file-utils
BuildRequires: fonts-rpm-macros
%package x11
Summary: IBM 3278/3279 terminal emulator for the X Window System
BuildRequires: mkfontdir bdftopcf
Group: Applications/Internet
BuildRequires: imake
BuildRequires: xorg-x11-font-utils
BuildRequires: libXaw-devel
Requires: %{name} = %{version}
Requires: xrdb
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}
@ -61,341 +65,124 @@ Install the %{name}-text package if you need to access IBM hosts using an IBM
%prep
%autosetup -p1 -n suite3270-%{majorver}
%setup -q -c
# delete windows and tcl sources:
rm -rf wpr3287* wc3270* ws3270* tcl3270*
%patch0 -p1
%patch1 -p1
%build
%configure --enable-x3270 --enable-c3270 --enable-s3270 --enable-pr3287 --disable-tcl3270 --disable-b3270 --enable-playback
make %{?_smp_mflags} CCOPTIONS="$RPM_OPT_FLAGS" LIBX3270DIR=%{_sysconfdir}
# 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
make install DESTDIR=$RPM_BUILD_ROOT CIFONTDIR=%{_fontdir} LIBX3270DIR=%{_sysconfdir}
make install.man DESTDIR=$RPM_BUILD_ROOT
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}
ln -sf %{_fontdir} $RPM_BUILD_ROOT%{catalogue}/x3270
install -p -m755 "$(find ./obj -type f -name playback -print -quit)" $RPM_BUILD_ROOT%{_bindir}
install -p -m644 playback/playback.man $RPM_BUILD_ROOT%{_mandir}/man1/playback.1
install -m755 x3270-%{majorver}/x3270 $RPM_BUILD_ROOT%{_bindir}
install -m755 x3270-%{majorver}/x3270if $RPM_BUILD_ROOT%{_bindir}
install -m644 x3270-%{majorver}/*pcf.gz $RPM_BUILD_ROOT%{fontdir}
install -m644 x3270-%{majorver}/ibm_hosts $RPM_BUILD_ROOT%{_sysconfdir}/
install -m644 x3270-%{majorver}/X3270.ad $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults/X3270
install -m644 x3270-%{majorver}/x3270.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270.1
install -m644 x3270-%{majorver}/x3270if.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270if.1
install -m644 x3270-%{majorver}/x3270-script.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270-script.1
install -m644 x3270-%{majorver}/ibm_hosts.man $RPM_BUILD_ROOT%{_mandir}/man5/ibm_hosts.5
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/48x48/apps
install -m755 pr3287-%{majorver}/pr3287 $RPM_BUILD_ROOT%{_bindir}
install -m644 pr3287-%{majorver}/pr3287.man $RPM_BUILD_ROOT%{_mandir}/man1/pr3287.1x
install -m755 c3270-%{majorver}/c3270 $RPM_BUILD_ROOT%{_bindir}
install -m644 c3270-%{majorver}/c3270.man $RPM_BUILD_ROOT%{_mandir}/man1/c3270.1
install -m755 s3270-%{majorver}/s3270 $RPM_BUILD_ROOT%{_bindir}
install -m644 s3270-%{majorver}/s3270.man $RPM_BUILD_ROOT%{_mandir}/man1/s3270.1
install -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 \
desktop-file-install --vendor fedora \
--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.md
%doc README* LICENSE Examples html*
%{_bindir}/s3270
%{_bindir}/pr3287
%{_bindir}/prtodir
%{_bindir}/x3270if
%{_bindir}/playback
%{_mandir}/man1/s3270.1*
%{_mandir}/man1/pr3287.1*
%{_mandir}/man1/x3270if.1*
%{_mandir}/man1/playback.1*
%{_mandir}/man5/ibm_hosts.5*
%exclude %{_mandir}/man1/c3270*
%{_mandir}/man1/*
%{_mandir}/man5/*
%dir %{_datadir}/x3270
%config(noreplace) %{_sysconfdir}/ibm_hosts
%files x11
%{_bindir}/x3270
%{_bindir}/x3270a
%{_fontdir}/
%dir %{fontdir}
%{fontdir}/*
%{catalogue}/x3270
%{_mandir}/man1/x3270.1*
%{_datadir}/icons/hicolor/48x48/apps/x3270.png
%{_datadir}/applications/x3270.desktop
%{_datadir}/X11/app-defaults/X3270
%{_datadir}/applications/*
%files text
%{_bindir}/c3270
%{_mandir}/man1/c3270.1*
%{_mandir}/man1/c3270*
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.5ga5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sat Jun 13 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 4.5ga5-2
- Rebuilt for openssl 4.0
* Mon Feb 23 2026 Dan Horák <dan[at]danny.cz> - 4.5ga5-1
- updated to 4.5ga5(rhbz#2368663)
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.4ga6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Sun Nov 16 2025 Yaakov Selkowitz <yselkowi@redhat.com> - 4.4ga6-3
- Add xrdb dependency
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.4ga6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Wed May 7 2025 Jakub Čajka <jcajka@redhat.com> 4.4ga6-1
- updated to 4.4ga6(rhbz#2362329)
* Fri Mar 28 2025 Jakub Čajka <jcajka@redhat.com> 4.4ga5-1
- updated to 4.4ga5(rhbz#2344000)
* Mon Jan 27 2025 Jakub Čajka <jcajka@redhat.com> 4.4alpha1-1
- updated to 4.4alpha1(rhbz#2332509)
- workaround C23 related issues(rhbz#2341559)
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.3ga8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.3ga8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Apr 08 2024 Jakub Čajka <jcajka@redhat.com> 4.3ga8-1
- updated to 4.3ga8(rhbz#2272416)
* Mon Mar 25 2024 Jakub Čajka <jcajka@redhat.com> 4.3ga7-1
- updated to 4.3ga7(rhbz#2270739)
* Tue Mar 05 2024 Jakub Čajka <jcajka@redhat.com> 4.3ga6-1
- updated to 4.3ga6(#2267465)
* Mon Feb 19 2024 Jakub Čajka <jcajka@redhat.com> 4.3ga5-1
- updated to 4.3ga5(#2264784)
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.3ga4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Oct 16 2023 Jakub Čajka <jcajka@redhat.com> 4.3ga4-1
- updated to 4.3ga4(#2244223)
* Fri Sep 08 2023 Jakub Čajka <jcajka@redhat.com> 4.3ga3-1
- updated to 4.3ga3(#2237932)
* Tue Aug 01 2023 Jakub Čajka <jcajka@redhat.com> 4.3beta1-1
- updated to 4.3beta2(#2227482)
- converted to the SPDX
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.3beta1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue May 30 2023 Jakub Čajka <jcajka@redhat.com> 4.3beta1-1
- updated to 4.3beta1(#2210893)
* Thu Mar 09 2023 Jakub Čajka <jcajka@redhat.com> 4.2ga9-1
- updated to 4.2ga9 (#2175581)
* Thu Feb 09 2023 Jakub Čajka <jcajka@redhat.com> 4.2ga8-1
- updated to 4.2ga8 (#2165415)
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2ga7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jan 05 2023 Jakub Čajka <jcajka@redhat.com> 4.2ga7-1
- updated to 4.2ga7 (#2156835)
* Fri Sep 30 2022 Jakub Čajka <jcajka@redhat.com> 4.2ga6-1
- updated to 4.2ga6 (#2130398)
* Tue Sep 06 2022 Jakub Čajka <jcajka@redhat.com> 4.2ga5-1
- updated to 4.2ga5 (#2124138)
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1ga13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon May 02 2022 Jakub Čajka <jcajka@redhat.com> 4.1ga13-1
- updated to 4.1ga13 (#2068796)
* Thu Feb 24 2022 Jakub Čajka <jcajka@redhat.com> 4.1ga12-1
- updated to 4.1ga12 (#2057250)
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1ga11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Jan 03 2022 Jakub Čajka <jcajka@redhat.com> 4.1ga11-1
- updated to 4.1ga11 (#2034061)
* Mon Nov 01 2021 Dan Horák <dan[at]danny.cz> - 4.1ga10-1
- updated to 4.1ga10 (#2018771)
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 4.0ga14-4
- Rebuilt with OpenSSL 3.0.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0ga14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Mar 01 2021 Dan Horák <dan[at]danny.cz> - 4.0ga14-2
- update BRs (#1933647)
* Mon Feb 01 2021 Dan Horák <dan[at]danny.cz> - 4.0ga14-1
- updated to 4.0ga14 (#1922848)
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0ga13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jan 04 2021 Dan Horák <dan[at]danny.cz> - 4.0ga13-1
- updated to 4.0ga13 (#1911117)
* Mon Sep 28 2020 Dan Horák <dan[at]danny.cz> - 4.0ga12-1
- updated to 4.0ga12 (#1882956)
* Tue Aug 18 2020 Dan Horák <dan[at]danny.cz> - 4.0ga11-1
- updated to 4.0ga11 (#1869461)
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0ga10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Dan Horák <dan[at]danny.cz> - 4.0ga10-1
- updated to 4.0ga10 (#1860639)
* Fri May 29 2020 Dan Horák <dan[at]danny.cz> - 4.0ga9-1
- updated to 4.0ga9 (#1840492)
* Sat Apr 11 2020 Dan Horák <dan[at]danny.cz> - 3.6ga12-1
- updated to 3.6ga12 (#1823121)
* Tue Mar 17 2020 Dan Horák <dan[at]danny.cz> - 3.6ga11-1
- updated to 3.6ga11 (#1814079)
* Mon Feb 24 2020 Dan Horák <dan[at]danny.cz> - 3.6ga10-1
- updated to 3.6ga10 (#1806341)
* Fri Feb 21 2020 Dan Horák <dan[at]danny.cz> - 3.6ga9-1
- updated to 3.6ga9 (#1803972)
* Wed Feb 05 2020 Than Ngo <than@redhat.com> - 3.6ga8-5
- fixed FTBFS against gcc10
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6ga8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jan 17 2020 Jeff Law <law@redhat.com> - 3.6ga8-3
- Fix symbol with multiple incompatible definitions which triggers
an error with LTO
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6ga8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Jun 04 2019 Dan Horák <dan[at]danny.cz> - 3.6ga8-1
- updated to 3.6ga8 (#1716585)
* Tue Mar 26 2019 Dan Horák <dan[at]danny.cz> - 3.6ga6-1
- updated to 3.6ga6 (#1692775)
* Fri Mar 08 2019 Dan Horák <dan[at]danny.cz> - 3.6ga5-6
- drop scriptlets
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6ga5-5
- Rebuild for readline 8.0
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6ga5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Aug 14 2018 Adam Jackson <ajax@redhat.com> - 3.6ga5-3
- Drop BuildRequires: imake, no longer needed
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6ga5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Feb 12 2018 Dan Horák <dan[at]danny.cz> - 3.6ga5-1
- updated to 3.6ga5 (#1544168)
* Fri Feb 9 2018 Florian Weimer <fweimer@redhat.com> - 3.6ga4-3
- Build playback with LDFLAGS from redhat-rpm-config
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org>
- Remove obsolete scriptlets
* Sun Dec 31 2017 Dan Horák <dan[at]danny.cz> - 3.6ga4-1
- updated to 3.6ga4 (#1529910)
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5ga11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5ga11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Jun 29 2017 Dan Horák <dan[at]danny.cz> - 3.5ga11-1
- updated to 3.5ga11 (#1465201)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5ga10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jan 17 2017 Dan Horák <dan[at]danny.cz> - 3.5ga10-1
- updated to 3.5ga10 (#1413799)
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 3.5ga9-2
- Rebuild for readline 7.x
* Tue Dec 27 2016 Dan Horák <dan[at]danny.cz> - 3.5ga9-1
- updated to 3.5ga9 (#1408735)
* Mon May 16 2016 Dan Horák <dan[at]danny.cz> - 3.5ga8-1
- updated to 3.5ga8 (#1335153)
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.15ga9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Jun 19 2015 Dan Horák <dan[at]danny.cz> - 3.3.15ga9-1
- updated to 3.3.15ga9
- fix FTBFS in s3270 due hardening
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.15ga8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Jan 04 2015 Dan Horák <dan[at]danny.cz> - 3.3.15ga8-1
- updated to 3.3.15ga8 (#1178449)
* Wed Dec 17 2014 Dan Horák <dan[at]danny.cz> - 3.3.15ga7-1
- updated to 3.3.15ga7 (#1175247)
* Sat Dec 06 2014 Dan Horák <dan[at]danny.cz> - 3.3.15ga6-1
- updated to 3.3.15ga6 (#1171097)
* Fri Oct 17 2014 Dan Horák <dan[at]danny.cz> - 3.3.15ga5-1
- updated to 3.3.15ga5 (#1154010)
* Fri Oct 10 2014 Dan Horák <dan[at]danny.cz> - 3.3.15ga4-1
- updated to 3.3.15ga4 (#1150568)
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.14ga11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.14ga11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu May 08 2014 Dan Horák <dan[at]danny.cz> - 3.3.14ga11-1
- updated to 3.3.14ga11 (#1095670)
* Mon Apr 14 2014 Dan Horák <dan[at]danny.cz> - 3.3.14ga9-1
- updated to 3.3.14ga9 (#1087398)
* Thu Mar 13 2014 Dan Horák <dan[at]danny.cz> - 3.3.14ga7-1
- updated to 3.3.14ga7 (#1075007)
* Mon Sep 16 2013 Dan Horák <dan[at]danny.cz> - 3.3.13ga7-1
- updated to 3.3.13ga7 (#1008442)
* Tue Sep 10 2013 Dan Horák <dan[at]danny.cz> - 3.3.13ga6-1
- updated to 3.3.13ga6 (#1006023)
* Fri Aug 23 2013 Dan Horák <dan[at]danny.cz> - 3.3.12ga13-1
- updated to 3.3.12ga13 (#959961)
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.12ga12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Mon Mar 25 2013 Samantha N. Bueno <sbueno[at]redhat.com> - 3.3.12ga12-2
- Rebuilt to include fix for #926737
* Mon Mar 25 2013 Samantha N. Bueno <sbueno[at]redhat.com> - 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 <paragn AT fedoraproject DOT org> - 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 <dan[at]danny.cz> - 3.3.12ga11-4
- fix license (BSD instead of MIT)