]> git.pld-linux.org Git - SPECS.git/blob - x3270.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / x3270.spec
1 %define         fversion        %(echo %{version} |tr -d .)
2 %define         mversion        %(echo %{version} |cut -f -2 -d .)
3 Summary:        An X Window System based IBM 3278/3279 terminal emulator
4 Summary(de.UTF-8):      X-basierter 3270-Emulator
5 Summary(fr.UTF-8):      Emulateur 3270 pour X
6 Summary(pl.UTF-8):      Emulator terminala IBM 3278/3279 pod X Window System
7 Summary(ru.UTF-8):      Эмулятор терминала IBM 3278/3279 для X Window
8 Summary(tr.UTF-8):      X tabanlı 3270 öykünümcüsü
9 Summary(uk.UTF-8):      Емулятор терміналу IBM 3278/3279 для X Window
10 Summary(zh_CN.UTF-8):   一个基于 X 窗口系统的 IBM 3278/3279 终端模拟器。
11 Name:           x3270
12 Version:        3.3.4p4
13 Release:        3
14 License:        MIT
15 Group:          X11/Applications
16 Source0:        http://x3270.bgp.nu/download/%{name}-%{fversion}.tgz
17 # Source0-md5:  b90409b190380489f75fea231e8af2d8
18 Source1:        %{name}.desktop
19 Patch0:         %{name}-cc.patch
20 URL:            http://x3270.bgp.nu/
21 BuildRequires:  XFree86
22 BuildRequires:  XFree86-devel
23 BuildRequires:  automake
24 BuildRequires:  icu
25 Requires(post,postun):  /usr/X11R6/bin/mkfontdir
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _appdefsdir     /usr/X11R6/lib/X11/app-defaults
29
30 %description
31 The x3270 program opens a window in the X Window System which emulates
32 the actual look of an IBM 3278/3279 terminal, commonly used with
33 mainframe applications. x3270 also allows you to telnet to an IBM host
34 from the x3270 window.
35
36 %description -l de.UTF-8
37 Dieses Programm emuliert ein IBM 3270-Terminal, das üblicherweise mit
38 Mainframe-Anwendungen in einem X-Fenster ausgeführt wird.
39
40 %description -l fr.UTF-8
41 Ce programme émule un terminal IBM 3270, couramment utilisé sous X
42 window avec les gros systèmes.
43
44 %description -l pl.UTF-8
45 Program x3270 otwiera okienko pod X, które emuluje właściwy wygląd
46 terminala IBM 3278/3279, używanego głównie z aplikacjami mainframe.
47 x3270 pozwala także zatelnetować się na maszynę IBM z okienka x3270.
48
49 %description -l ru.UTF-8
50 Программа x3270 открывает окно в X Window System, эмулирующее вид
51 терминала IBM 3278/3279, часто используемого в мейнфреймах, и
52 позволяющее "telnet-ится" на хосты IBM.
53
54 %description -l tr.UTF-8
55 Bu program IBM 3270 uçbirim öykünümü yapar. IBM 3270 öykünümü bazı
56 eski bilgisayar sistemlerine bağlanmak için gerekebilir.
57
58 %description -l uk.UTF-8
59 Програма x3270 відкриває вікно в X Window System, яке емулює вид
60 терміналу IBM 3278/3279, часто використовуваного в мейнфреймах, і
61 дозволяє "telnet-итися" на хости IBM.
62
63 %description -l zh_CN.UTF-8
64 x3270 程序为 X 窗口系统打开一个窗口,它模拟
65 被普遍使用在大型机器上的程序的 IBM 3278/3279
66 终端的外观。X3270 还允许您从 x3270 窗口上远程
67 登录到一个 IBM 主机上。
68
69 %prep
70 %setup -q -n %{name}-%{mversion}
71 %patch0 -p1
72
73 %build
74 cp -f /usr/share/automake/config.sub .
75 cp -f /usr/share/automake/config.sub pr3287
76 %configure
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_appdefsdir},%{_desktopdir},%{_mandir}/man5}
82
83 %{__make} -j1 install install.man \
84         BINDIR=%{_bindir} \
85         MANDIR=%{_mandir} \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 install X3270.xad $RPM_BUILD_ROOT%{_appdefsdir}/X3270
89
90 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
91
92 mv -f $RPM_BUILD_ROOT%{_mandir}/{x3270.1*,man1}
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post
98 /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
99
100 %postun
101 /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
102
103 %files
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_bindir}/x3270
106 %attr(755,root,root) %{_bindir}/x3270if
107 %attr(755,root,root) %{_bindir}/pr3287
108 %dir %{_sysconfdir}/x3270
109 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/x3270/ibm_hosts
110 %{_desktopdir}/%{name}.desktop
111 %{_appdefsdir}/X3270
112 %{_fontsdir}/misc/3270*.pcf.gz
113 %{_mandir}/man?/*
This page took 0.804186 seconds and 3 git commands to generate.