]>
Commit | Line | Data |
---|---|---|
95d85ffe | 1 | Summary: IBM 3270 terminal emulator |
95c8ada4 | 2 | Summary(pl.UTF-8): Emulator terminala IBM 3270 |
95d85ffe | 3 | Name: suite3270 |
d734614e | 4 | Version: 3.3.12ga13 |
018ea568 | 5 | Release: 1 |
95d85ffe JB |
6 | License: MIT-like |
7 | Group: Applications/Terminal | |
add88642 | 8 | Source0: http://x3270.bgp.nu/download/%{name}-%{version}-src.tgz |
d734614e | 9 | # Source0-md5: df11e3f16c0a6b2e5b1ddb3c46fb3f88 |
95d85ffe | 10 | URL: http://x3270.bgp.nu/ |
95d85ffe JB |
11 | BuildRequires: ncurses-devel |
12 | BuildRequires: readline-devel | |
13 | BuildRequires: tcl-devel >= 8.4 | |
67c7182f JR |
14 | BuildRequires: xorg-app-bdftopcf |
15 | BuildRequires: xorg-app-mkfontdir | |
add88642 JR |
16 | BuildRequires: xorg-lib-libX11-devel |
17 | BuildRequires: xorg-lib-libXaw-devel | |
18 | BuildRequires: xorg-lib-libXmu-devel | |
19 | BuildRequires: xorg-lib-libXt-devel | |
20 | BuildRequires: xorg-lib-libXt-devel | |
21 | BuildRequires: xorg-proto-xproto-devel | |
67c7182f | 22 | BuildRequires: xorg-util-imake |
95d85ffe JB |
23 | Requires(post,postun): fontpostinst |
24 | # better separate x3270 (the rest doesn't depend on X) | |
25 | Obsoletes: x3270 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | x3270 is an IBM 3270 terminal emulator. It runs over a TELNET | |
30 | connection, emulating either an IBM 3279 (color) or 3278 (monochrome). | |
31 | It supports: | |
32 | - The full TN3270E protocol | |
33 | - SSL/TLS (via the OpenSSL library) for encrypted sessions | |
34 | - APL2 characters | |
35 | - Non-English character sets, including Russian, Turkish, Hebrew and | |
36 | DBCS Chinese and Japanese | |
37 | - IND$FILE file transfer | |
38 | - NVT mode (emulating a color xterm) | |
39 | - A pop-up keypad for 3270-specific keys | |
40 | - A scrollbar | |
41 | - Printer session integration | |
42 | - Extensive debugging and scripting facilities | |
43 | ||
44 | It does not yet support graphics. | |
45 | ||
46 | x3270 is available in several different forms: | |
47 | - x3270 is for use on a graphics display | |
48 | - c3270 is a curses-based version for use on a dumb terminal (e.g., a | |
49 | serial terminal or a Linux console) | |
50 | - s3270 is a displayless version for writing screen-scraping scripts | |
51 | - tcl3270 is similar to s3270, but integrated with Tcl | |
52 | - pr3287 is for printer emulation | |
53 | ||
69805110 JR |
54 | %description -l pl.UTF-8 |
55 | x3270 to emulator terminala IBM 3270. Działa po połączeniu TELNET, | |
56 | emulując terminal IBM 3279 (kolorowy) lub 3278 (monochromatyczny). | |
57 | Obsługuje: | |
58 | - pełny protokół TN3270E | |
59 | - SSL/TLS (poprzez bibliotekę OpenSSL) do szyfrowanych sesji | |
95d85ffe | 60 | - znaki APL2 |
69805110 JR |
61 | - różne zestawy znaków, włącznie z rosyjskim, tureckim, hebrajskim |
62 | oraz chińskim i japońskim DBCS | |
63 | - przesyłanie plików IND$FILE | |
64 | - tryb NVT (emulację terminala kolorowego) | |
65 | - wyskakujący keypad do klawiszy specyficznych dla 3270 | |
95d85ffe | 66 | - pasek przewijania |
69805110 JR |
67 | - integrację sesji drukarki |
68 | - śledzenie i skrypty. | |
95d85ffe | 69 | |
69805110 | 70 | Nie obsługuje jeszcze grafiki. |
95d85ffe | 71 | |
69805110 JR |
72 | x3270 jest dostępny w kilku różnych postaciach: |
73 | - x3270 do używania na ekranie graficznym | |
74 | - c3270 to wersja oparta o curses do używania na prostym terminalu | |
95d85ffe | 75 | (np. terminalu szeregowym lub konsoli linuksowej) |
69805110 | 76 | - s3270 to wersja niewyświetlająca, do pisania skryptów |
95d85ffe JB |
77 | - tcl3270 to wersja podobna do s3270, ale zintegrowana z Tcl-em |
78 | - pr3287 do emulacji drukarki. | |
79 | ||
80 | %prep | |
81 | %setup -q -c | |
82 | ||
83 | %build | |
84 | export ac_cv_lib_nsl_gethostbyname=no | |
a94b77a1 | 85 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" |
95d85ffe | 86 | cd c3270-3.3 |
a94b77a1 | 87 | %configure \ |
88 | LIBS="-ltinfow" | |
95d85ffe JB |
89 | %{__make} |
90 | cd ../pr3287-3.3 | |
91 | %configure | |
92 | %{__make} | |
93 | cd ../s3270-3.3 | |
94 | %configure | |
95 | %{__make} | |
96 | cd ../tcl3270-3.3 | |
add88642 | 97 | %configure |
95d85ffe JB |
98 | %{__make} |
99 | cd ../x3270-3.3 | |
add88642 JR |
100 | %configure \ |
101 | --with-fontdir=%{_fontsdir}/misc | |
95d85ffe JB |
102 | %{__make} \ |
103 | CDEBUGFLAGS="%{rpmcflags}" | |
104 | ||
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
67c7182f | 108 | %{__make} -j1 -C c3270-3.3 install \ |
95d85ffe JB |
109 | DESTDIR=$RPM_BUILD_ROOT |
110 | ||
67c7182f | 111 | %{__make} -j1 -C pr3287-3.3 install \ |
95d85ffe JB |
112 | DESTDIR=$RPM_BUILD_ROOT |
113 | ||
67c7182f | 114 | %{__make} -j1 -C s3270-3.3 install \ |
95d85ffe JB |
115 | DESTDIR=$RPM_BUILD_ROOT |
116 | ||
67c7182f | 117 | %{__make} -j1 -C tcl3270-3.3 install \ |
95d85ffe JB |
118 | DESTDIR=$RPM_BUILD_ROOT |
119 | ||
67c7182f | 120 | %{__make} -j1 -C x3270-3.3 install \ |
95d85ffe JB |
121 | DESTDIR=$RPM_BUILD_ROOT \ |
122 | BINDIR=%{_bindir} | |
123 | ||
124 | rm -rf doc | |
125 | install -d doc/{c3270,pr3287,s3270,tcl3270,x3270} | |
126 | cp -a c3270-3.3/{LICENSE,README,html} doc/c3270 | |
127 | cp -a pr3287-3.3/{LICENSE,README,html} doc/pr3287 | |
128 | cp -a s3270-3.3/{LICENSE,README,Examples,html} doc/s3270 | |
129 | cp -a tcl3270-3.3/{LICENSE,README,Examples,html} doc/tcl3270 | |
130 | cp -a x3270-3.3/{LICENSE,README*,Examples,html} doc/x3270 | |
131 | ||
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post | |
136 | fontpostinst misc | |
137 | ||
138 | %postun | |
139 | fontpostinst misc | |
140 | ||
141 | %files | |
142 | %defattr(644,root,root,755) | |
143 | %doc doc/* | |
2c4c7e7a JB |
144 | %attr(755,root,root) %{_bindir}/c3270 |
145 | %attr(755,root,root) %{_bindir}/pr3287 | |
146 | %attr(755,root,root) %{_bindir}/s3270 | |
147 | %attr(755,root,root) %{_bindir}/tcl3270 | |
148 | %attr(755,root,root) %{_bindir}/x3270 | |
149 | %attr(755,root,root) %{_bindir}/x3270if | |
95d85ffe JB |
150 | %dir %{_sysconfdir}/x3270 |
151 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/x3270/ibm_hosts | |
2c4c7e7a | 152 | %{_fontsdir}/misc/3270*.pcf.gz |