SHA256
1
0
forked from pool/x3270

Accepting request 897582 from home:susnux:branches:Base:System

- Use https for URL and Source
- Update to ga14 of 4.0 series

OBS-URL: https://build.opensuse.org/request/show/897582
OBS-URL: https://build.opensuse.org/package/show/Base:System/x3270?expand=0&rev=56
This commit is contained in:
Dr. Werner Fink 2021-07-09 11:52:45 +00:00 committed by Git OBS Bridge
parent e199036ed3
commit 2632340bd3
7 changed files with 54 additions and 86 deletions

View File

@ -1,24 +0,0 @@
commit d2f9fa8d7f59c357449ab2b69141700cb5527135
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Sun Jun 18 19:49:43 2017 +0200
allow to override build date
to allow reproducible builds of x3270
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable.
diff --git a/Common/mkversion.sh b/Common/mkversion.sh
index f5cd712c..33100743 100755
--- a/Common/mkversion.sh
+++ b/Common/mkversion.sh
# Create an all numeric timestamp for rpqnames.
# rpq.c will return this string of numbers in bcd format
# It is OK to change the length (+ or -), but use
# decimal (0-9) digits only. Length must be even number of digits.
-rpq_timestamp=`date +%Y%m%d%H%M%S`
+rpq_timestamp=`$date +%Y%m%d%H%M%S`
app=${1-x3270}
cat <<EOF

View File

@ -1,30 +0,0 @@
https://sourceforge.net/p/x3270/code/merge-requests/2/
commit f86253bc15060db29063c186b05dc9bbaa38593a
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Sun Jun 18 19:49:43 2017 +0200
allow to override build date
to allow reproducible builds of x3270
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable.
Note: this patch variant only works with GNU date
leftover after incomplete merge in 7591b303beefed762c24386214beca432024c785
diff --git a/Common/mkversion.sh b/Common/mkversion.sh
index ad1c1067..4da3620a 100755
--- a/Common/mkversion.sh
+++ b/Common/mkversion.sh
@@ -50,7 +50,7 @@ user=${LOGNAME-$USER}
# rpq.c will return this string of numbers in bcd format
# It is OK to change the length (+ or -), but use
# decimal (0-9) digits only. Length must be even number of digits.
-rpq_timestamp=`date +%Y%m%d%H%M%S`
+rpq_timestamp=`$date +%Y%m%d%H%M%S`
app=${1-x3270}
cat <<EOF

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af64218a3643605b75996612383459dceb12ecdf7e86956d5860bf2ccb40ede3
size 3299100

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9796f2b47ed222776d4fe2756a0db3617f84dbbf02d0a9374c36a13b1b416375
size 3318277

View File

@ -1,13 +0,0 @@
--- x3270/screen.c 2020-10-30 13:35:58.238416347 +0100
+++ x3270/screen.c 2020-10-30 13:39:12.721353850 +0100
@@ -4686,7 +4686,9 @@
}
}
- g = XLoadQueryFont(display, best);
+ if ((g = XLoadQueryFont(display, best)) == NULL) {
+ return xs_buffer("Font %s could not be loaded", best);
+ }
set_font_globals(g, /*name*/best, best, g->fid, is_dbcs);
return NULL;
}

View File

@ -1,3 +1,32 @@
-------------------------------------------------------------------
Mon May 31 13:18:05 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Use https for URL and Source
-------------------------------------------------------------------
Mon Feb 22 20:03:25 UTC 2021 - Predrag Ivanović <predivan@mts.rs>
- Update to ga14 of 4.0 series:
* The scripting infrastructure has been rewritten and renamed to
task engine.
* No artificial dependencies between actions initiated by
different sources.
* Accidental blocking behavior has been eliminated.
* Unrelated operations are now properly concurrent
* A new emulator has been created, b3270, as a common back-end
process that handles the 3270 protocol and host interactions,
using a simple XML-based protocol.
* The c3270 prompt has been generalized and is available to all
of the 3270 emulators as the x3270 prompt.
* The prompt now uses color to distinguish error messages.
* APL keyboard operation on x3270 has changed, fixed APL keymap
was removed in favor of key combination Shift-Escape toggling
a new APL mode
* Many other bug fixes and features
- Removed x3270-handle-missing-font.patch, mkversion.patch, and
reproducible.patch, merged upstream.
- Expat added as its BuildRequires
-------------------------------------------------------------------
Thu Feb 11 22:21:36 UTC 2021 - Mark Post <mpost@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package x3270
#
# Copyright (c) 2016,2020,2021 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,28 +16,25 @@
#
%define _suffix ga12
%define _suffix ga14
%define _fullname suite3270-%{version}%{_suffix}
%define _x026ver 1.2
Name: x3270
Version: 3.6
Version: 4.0
Release: 0
Summary: A Family of IBM 3270 Terminal Emulators
License: MIT
Group: System/X11/Terminals
URL: http://x3270.bgp.nu
URL: https://x3270.miraheze.org
#Git-Clone: https://github.com/pmattes/x3270
Source0: http://download.sourceforge.net/%{name}/%{_fullname}-src.tgz
Source1: http://download.sourceforge.net/%{name}/x026-%{_x026ver}.tgz
Source0: https://download.sourceforge.net/x3270/%{_fullname}-src.tgz
Source1: https://download.sourceforge.net/x3270/x026-%{_x026ver}.tgz
Source2: x3270.desktop
Patch0: mknod.patch
Patch1: x3270-handle-missing-font.patch
Patch100: usr_local_bin.patch
Patch102: x026-offset.diff
Patch105: x3270-missing-include.patch
Patch106: x3270-missing-file.patch
Patch108: mkversion.patch
Patch109: reproducible.patch
BuildRequires: bdftopcf
BuildRequires: fdupes
BuildRequires: fontpackages-devel
@ -50,6 +47,7 @@ BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: tcl-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xaw7)
BuildRequires: pkgconfig(xmu)
@ -77,6 +75,15 @@ characters, IND$FILE file transfer, NVT mode, a pop-up keypad for
3270-specific keys, alternative keymaps, 3287 printer sessions, and a
scrollbar and has extensive debugging and scripting facilities.
x3270a is a script that computes the correct font sizes for
higher-resolution displays, then runs x3270.
(x3270 handles scaling of visual elements automatically,
but it cannot adjust the font sizes by itself.)
b3270 is a generic back-end for 3270 emulators.
It implements the 3270 protocol and host input/output,
and communicates with a front end application using a simple XML-based protocol.
c3270 is the curses-based version of x3270. It runs on any dumb
terminal (an xterm or a console, for example), and supports (almost)
all of the x3270 features. c3270 scripts are compatible with x3270
@ -104,17 +111,10 @@ x026 is a fun toy which emulates an x026 puncher.
# -a fter changing into all3270, expand sources
%setup -q -n suite3270-%{version} -a1
%patch0
%patch1
%patch100
%patch102
%patch105 -p1
%patch106 -p1
for d in x3270 c3270 s3270 tcl3270 pr3287 ; do
(cd $d
%patch108 -p2
%patch109 -p2
)
done
%build
export CFLAGS="%{optflags}"
@ -165,6 +165,7 @@ rm %{buildroot}%{_miscfontsdir}/fonts.dir
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -pr --parents Playback %{buildroot}%{_docdir}/%{name}
cp -pr --parents x3270/{Examples,html} %{buildroot}%{_docdir}/%{name}
cp -pr --parents b3270/html %{buildroot}%{_docdir}/%{name}
cp -pr --parents c3270/html %{buildroot}%{_docdir}/%{name}
cp -pr --parents pr3287/html %{buildroot}%{_docdir}/%{name}
cp -pr --parents s3270/{Examples,html} %{buildroot}%{_docdir}/%{name}
@ -199,6 +200,7 @@ install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/x3270.desktop
%{_bindir}/x3270if
# x3270
%{_bindir}/x3270
%{_bindir}/x3270a
%dir %{_miscfontsdir}
%{_miscfontsdir}/*
%{_mandir}/man1/x3270.1%{?ext_man}
@ -206,6 +208,10 @@ install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/x3270.desktop
%doc %{_docdir}/%{name}/x3270/html
%doc %{_docdir}/%{name}/Playback
%{_datadir}/applications/x3270.desktop
# b3270
%{_bindir}/b3270
%{_mandir}/man1/b3270.1%{?ext_man}
%doc %{_docdir}/%{name}/b3270/html
# c3270
%{_bindir}/c3270
%{_mandir}/man1/c3270.1%{?ext_man}