Compare commits
10 Commits
fe022da58e
...
917e905613
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
917e905613 | ||
|
|
3228e76382 | ||
|
|
484c399076 | ||
|
|
a658537fcb | ||
|
|
000f37a359 | ||
|
|
222035cdb8 | ||
|
|
2ddc0d5f86 | ||
|
|
1bf43978d0 | ||
|
|
335a37b78d | ||
|
|
b636cd81fb |
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# x3270
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# x3270
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
||||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
BIN
suite3270-4.2ga10-src.tgz
Normal file
BIN
suite3270-4.2ga10-src.tgz
Normal file
Binary file not shown.
57
x3270-3.5-ibmhostpath.patch
Normal file
57
x3270-3.5-ibmhostpath.patch
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
From 084a4729861de3168a3fd4d1cb7ed9b36071b83b Mon Sep 17 00:00:00 2001
|
||||||
|
From: wang--ge <wang__ge@126.com>
|
||||||
|
Date: Sat, 2 Sep 2023 16:07:39 +0800
|
||||||
|
Subject: [PATCH] x3270 3.5 ibmhostpatch
|
||||||
|
|
||||||
|
---
|
||||||
|
c3270/ibm_hosts.man | 4 ++--
|
||||||
|
x3270/ibm_hosts.man | 4 ++--
|
||||||
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/c3270/ibm_hosts.man b/c3270/ibm_hosts.man
|
||||||
|
index 3377f6d..e6a7a01 100644
|
||||||
|
--- a/c3270/ibm_hosts.man
|
||||||
|
+++ b/c3270/ibm_hosts.man
|
||||||
|
@@ -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 emulator to connect to the host
|
||||||
|
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 --git a/x3270/ibm_hosts.man b/x3270/ibm_hosts.man
|
||||||
|
index f41c165..58ad390 100644
|
||||||
|
--- a/x3270/ibm_hosts.man
|
||||||
|
+++ b/x3270/ibm_hosts.man
|
||||||
|
@@ -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 emulator to connect to the host
|
||||||
|
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)
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
33
x3270-3.5-paths.patch
Normal file
33
x3270-3.5-paths.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From be8d37f0cb06db9b6f7770e9a0d15631a8ae3608 Mon Sep 17 00:00:00 2001
|
||||||
|
From: wang--ge <wang__ge@126.com>
|
||||||
|
Date: Sat, 2 Sep 2023 16:11:41 +0800
|
||||||
|
Subject: [PATCH] x3270 3.5 paths
|
||||||
|
|
||||||
|
---
|
||||||
|
x3270/Examples/cms_logon.bash | 2 +-
|
||||||
|
x3270/Examples/peer_script.expect | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/x3270/Examples/cms_logon.bash b/x3270/Examples/cms_logon.bash
|
||||||
|
index 8002fec..460fc18 100644
|
||||||
|
--- a/x3270/Examples/cms_logon.bash
|
||||||
|
+++ b/x3270/Examples/cms_logon.bash
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#! /usr/local/bin/bash
|
||||||
|
+#! /bin/bash
|
||||||
|
|
||||||
|
# Copyright (c) 1995-2009, Paul Mattes.
|
||||||
|
# All rights reserved.
|
||||||
|
diff --git a/x3270/Examples/peer_script.expect b/x3270/Examples/peer_script.expect
|
||||||
|
index 8d72e01..43a95c3 100644
|
||||||
|
--- a/x3270/Examples/peer_script.expect
|
||||||
|
+++ b/x3270/Examples/peer_script.expect
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#! /usr/local/bin/expect
|
||||||
|
+#! /usr/bin/expect
|
||||||
|
# TSO login script, which runs as a peer of x3270.
|
||||||
|
# expect version
|
||||||
|
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
10
x3270.desktop
Normal file
10
x3270.desktop
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=x3270
|
||||||
|
GenericName=Terminal emulator x3270
|
||||||
|
Type=Application
|
||||||
|
Comment=3270 terminal emulator
|
||||||
|
Exec=x3270
|
||||||
|
Icon=x3270
|
||||||
|
StartupNotify=true
|
||||||
|
Categories=System;Utility;TerminalEmulator;
|
||||||
131
x3270.spec
Normal file
131
x3270.spec
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
%define _majorver 4.2
|
||||||
|
%define _fullname suite3270-%{version}
|
||||||
|
%define _fontpath /etc/X11/fontpath.d
|
||||||
|
%define _deskdir %{_datadir}/applications
|
||||||
|
%define _pngdir %{_datadir}/icons/hicolor/48x48/apps
|
||||||
|
|
||||||
|
Name: x3270
|
||||||
|
Version: 4.2ga10
|
||||||
|
Release: 1
|
||||||
|
Summary: An IBM 3270 terminal emulator for the X Window System and Windows.
|
||||||
|
License: BSD
|
||||||
|
URL: http://x3270.sourceforge.net/
|
||||||
|
Source0: http://prdownloads.sourceforge.net/%{name}/%{_fullname}-src.tgz
|
||||||
|
Source1: x3270.desktop
|
||||||
|
Source2: x3270.png
|
||||||
|
Patch0: x3270-3.5-ibmhostpath.patch
|
||||||
|
Patch1: x3270-3.5-paths.patch
|
||||||
|
|
||||||
|
BuildRequires: desktop-file-utils fontpackages-devel imake libtool
|
||||||
|
BuildRequires: libXaw-devel ncurses-devel openssl-devel readline-devel
|
||||||
|
BuildRequires: xorg-x11-font-utils
|
||||||
|
Requires(post): /usr/bin/mkfontdir
|
||||||
|
Requires(postun): /usr/bin/mkfontdir
|
||||||
|
|
||||||
|
Provides: %{name}-text
|
||||||
|
Provides: %{name}-x11
|
||||||
|
Obsoletes: %{name}-text
|
||||||
|
Obsoletes: %{name}-x11
|
||||||
|
|
||||||
|
%description
|
||||||
|
x3270 runs over a TELNET connection, emulating either an IBM 3279 (color) or
|
||||||
|
3278 (monochrome). It supports:
|
||||||
|
|
||||||
|
* The full TN3270E protocol
|
||||||
|
* SSL/TLS (via the OpenSSL library) for encrypted sessions
|
||||||
|
* APL2 characters
|
||||||
|
* Non-English character sets, including Russian, Turkish, Hebrew and DBCS
|
||||||
|
Chinese and Japanese
|
||||||
|
* IND$FILE file transfer
|
||||||
|
* NVT mode (emulating a color xterm)
|
||||||
|
* A pop-up keypad for 3270-specific keys
|
||||||
|
* A scrollbar
|
||||||
|
* Printer session integration
|
||||||
|
* Extensive debugging and scripting facilities
|
||||||
|
|
||||||
|
It does not yet support graphics.
|
||||||
|
|
||||||
|
x3270 is available in several different forms:
|
||||||
|
|
||||||
|
* x3270 is for use on an X graphics display
|
||||||
|
* c3270 is a curses-based version for use on a dumb terminal (e.g.,
|
||||||
|
a serial terminal or a Linux console)
|
||||||
|
* s3270 is a displayless version for writing screen-scraping scripts
|
||||||
|
* pr3287 is for printer emulation
|
||||||
|
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Man files for x3270
|
||||||
|
Requires: man
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
This contains man files for the using of x3270
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n suite3270-%{_majorver} -p1
|
||||||
|
|
||||||
|
for dir in c3270 pr3287 s3270 x3270; do
|
||||||
|
for file in html; do
|
||||||
|
mv $dir/$file $file.$dir
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--enable-c3270 \
|
||||||
|
--enable-pr3287 \
|
||||||
|
--enable-s3270 \
|
||||||
|
--enable-x3270 \
|
||||||
|
--enable-playback
|
||||||
|
%make_build CCOPTIONS="$RPM_OPT_FLAGS" LIBX3270DIR=%{_sysconfdir}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install CIFONTDIR=%{_fontdir} LIBX3270DIR=%{_sysconfdir}
|
||||||
|
make install.man DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_fontpath}
|
||||||
|
ln -sf %{_fontdir} %{buildroot}%{_fontpath}/%{name}
|
||||||
|
|
||||||
|
install -p -m 755 "$(find ./obj -type f -name playback -print -quit)" %{buildroot}%{_bindir}
|
||||||
|
install -p -m 644 playback/playback.man %{buildroot}%{_mandir}/man1/playback.1
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_deskdir}
|
||||||
|
desktop-file-install --dir %{buildroot}%{_deskdir} %{SOURCE1}
|
||||||
|
|
||||||
|
install -D -p -m 644 %{SOURCE2} %{buildroot}%{_pngdir}/%{basename:%{SOURCE2}}
|
||||||
|
|
||||||
|
%post
|
||||||
|
pushd %{_fontdir}
|
||||||
|
%{_prefix}/bin/mkfontdir
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.* html.*
|
||||||
|
%license wc3270/LICENSE.*
|
||||||
|
%config(noreplace) %{_sysconfdir}/ibm_hosts
|
||||||
|
%{_deskdir}/x3270.desktop
|
||||||
|
%{_pngdir}/x3270.png
|
||||||
|
%{_fontdir}/
|
||||||
|
%{_fontpath}/x3270
|
||||||
|
%{_bindir}/*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Sep 02 2023 Ge Wang <wang__ge@126.com> - 4.2ga10-1
|
||||||
|
- Update to version 4.2
|
||||||
|
|
||||||
|
* Tue Aug 03 2021 linjiaxin5 <linjiaxin5@huawei.com> - 3.6ga5-6
|
||||||
|
- Fix failure caused by GCC upgrade to 10
|
||||||
|
|
||||||
|
* Fri Jul 30 2021 linjiaxin5 <linjiaxin5@huawei.com> - 3.6ga5-5
|
||||||
|
- Fix failure caused by GCC upgrade to 10
|
||||||
|
|
||||||
|
* Sat Nov 30 2019 huyan <hu.huyan@huawei.com> - 3.6ga5-4
|
||||||
|
- Package Initialization
|
||||||
5
x3270.yaml
Normal file
5
x3270.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
version_control: NA
|
||||||
|
src_repo: NA
|
||||||
|
tag_prefix: NA
|
||||||
|
separator: NA
|
||||||
Loading…
x
Reference in New Issue
Block a user