1 |
%global sum Standard terminal emulator for the X window system |
2 |
|
3 |
Summary: %{sum} |
4 |
Name: xterm |
5 |
Version: 372 |
6 |
Release: %mkrel 1 |
7 |
License: MIT |
8 |
Group: Terminals |
9 |
Url: https://invisible-island.net/xterm/ |
10 |
# URL with a list of downloads / tarballs: |
11 |
# ftp://ftp.invisible-island.net/xterm |
12 |
Source0: ftp://ftp.invisible-island.net/xterm/%{name}-%{version}.tgz |
13 |
Source1: ftp://ftp.invisible-island.net/xterm/%{name}-%{version}.tgz.asc |
14 |
|
15 |
# from https://www.vim.org/scripts/script.php?script_id=1349, public domain |
16 |
Source20: colortest.pl |
17 |
|
18 |
BuildRequires: pkgconfig(x11) |
19 |
BuildRequires: pkgconfig(xaw7) |
20 |
BuildRequires: pkgconfig(xft) |
21 |
BuildRequires: pkgconfig(xmu) |
22 |
BuildRequires: pkgconfig(xt) |
23 |
BuildRequires: pkgconfig(fontconfig) |
24 |
BuildRequires: pkgconfig(ncurses) |
25 |
BuildRequires: luit |
26 |
Requires: luit |
27 |
|
28 |
%description |
29 |
The XTerm program is the standard terminal emulator for the X Window System. It |
30 |
provides DEC VT102/VT220 and Tektronix 4014 compatible terminals for programs |
31 |
that can't use the window system directly. If the underlying operating system |
32 |
supports terminal resizing capabilities (for example, the SIGWINCH signal in |
33 |
systems derived from 4.3bsd), xterm will use the facilities to notify programs |
34 |
running in the window whenever it is resized. |
35 |
|
36 |
The xterm included in this package has support for 256 colors enabled. |
37 |
|
38 |
%prep |
39 |
%setup -q |
40 |
%autopatch -p1 |
41 |
|
42 |
cp %{SOURCE20} . |
43 |
|
44 |
%build |
45 |
%configure \ |
46 |
--disable-full-tgetent \ |
47 |
--enable-wide-chars \ |
48 |
--x-includes=%{_includedir}/freetype2 \ |
49 |
--enable-luit \ |
50 |
--enable-256-color \ |
51 |
--with-app-defaults=%{_libdir}/X11/app-defaults \ |
52 |
--with-icon-theme=hicolor \ |
53 |
--with-icondir=%{_datadir}/icons |
54 |
|
55 |
%make_build |
56 |
|
57 |
%install |
58 |
make DESTDIR=%{buildroot} install |
59 |
|
60 |
# NOTE: encodingMode: locale means to follow the charset encoding of the |
61 |
# locale. A quite complete unicode font is set as the default (instead of the |
62 |
# very poor "fixed" one). a quick cat is used instead of patching the sources; |
63 |
# it shoulmd be made the default imho |
64 |
# locale: true means to use luit to convert locale encoding to unicode |
65 |
# for display. |
66 |
# luit support is needed for it to work -- pablo |
67 |
cat << EOF >> %{buildroot}%{_libdir}/X11/app-defaults/XTerm |
68 |
|
69 |
*.vt100.font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1 |
70 |
*.vt100.encodingMode: locale |
71 |
*.locale: true |
72 |
*.PtyInitialErase: on |
73 |
*.backarrowKeyIsErase: on |
74 |
*.allowFontOps: false |
75 |
*.allowTcapOps: false |
76 |
*.disallowedWindowOps: 1,2,3,4,5,6,7,8,9,11,13,14,18,19,20,21,GetSelection,SetSelection,SetWinLines,SetXprop |
77 |
EOF |
78 |
|
79 |
mkdir -p %{buildroot}%{_datadir}/applications |
80 |
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF |
81 |
[Desktop Entry] |
82 |
Name=XTerm |
83 |
GenericName=Terminal |
84 |
GenericName[ru]=Терминал |
85 |
Comment=%{sum} |
86 |
Comment[ar]=برنامج سطر الأوامر القياسي لنظام نوافذ إكس |
87 |
Comment[az]=X Windows sistemi üçün standart terminal emulyator |
88 |
Comment[bg]=Стандартният терминален емулатор за Х |
89 |
Comment[bn]=এক্স উইন্ডো সিস্টেমের সাধারণ টার্মিনাল এমুলেটর |
90 |
Comment[bs]=Standardni simulator terminala za X Window sistem |
91 |
Comment[ca]=L'emulador estàndard de terminal per al sistema de finestres X |
92 |
Comment[cs]=Standardní emulátor terminálu pro X Window Systém |
93 |
Comment[cy]=Efelychydd terfynell safonol ar gyfer System Ffenestr X |
94 |
Comment[da]=Den almindelige terminalemulator for X vinduessystemet |
95 |
Comment[de]=Die Standard-Terminal-Emulation des X Window Systems |
96 |
Comment[el]=Ο προκαθορισμένος εξομοιωτής τερματικού για το Σύστημα Παραθύρων Χ |
97 |
Comment[es]=El emulador de terminal estándar para el X Window System |
98 |
Comment[et]=Tavaline terminaliemulaator X Window süsteemi jaoks |
99 |
Comment[eu]=X Window sistemaren terminal-emulatzaile estandarra |
100 |
Comment[fa]=شبیهساز پایانه استاندارد در سیستم پنجره X |
101 |
Comment[fi]=X-ikkunointijärjestelmän oletuspääte-emulaattori |
102 |
Comment[fr]=L'émulateur de terminal standard du système X Window |
103 |
Comment[gl]=O emulador de terminal estandar para o Sistema X Window |
104 |
Comment[he]=אמולטור המסוף הסטנדרטי של מערכת X |
105 |
Comment[hi]=एक्स विण्डो प्रणाली के लिए मानक टर्मिनल ऐम्यूलेटर |
106 |
Comment[hu]=Az X ablakrendszer standard terminálemulátora |
107 |
Comment[id]=Emulator terminal standar untuk Sistem Window X |
108 |
Comment[is]=Staðlaði skjáhermirinn fyrir X gluggakerfið |
109 |
Comment[it]=L'emulatore di terminale standard per il sistema X Window |
110 |
Comment[ja]=X ウィンドウシステムの標準ターミナル |
111 |
Comment[ko]=X용 표준 터미널 에뮬레이터 |
112 |
Comment[ky]=X Window Системасы үчүн стндарттык терминал эмулятору |
113 |
Comment[lt]=Standartinis terminalo emuliatorius X Window sistemai |
114 |
Comment[lv]=Standarta termināļa emulators priekš X logu sistēmas |
115 |
Comment[mk]=Стандардниот терминал-емулатор за системот „X Window“ |
116 |
Comment[mt]=L-emulatur ta' terminal standard tas-sistema X Windows |
117 |
Comment[nb]=Standard terminalemulatoren for X |
118 |
Comment[nl]=De standaard terminal emulator voor het X Window systeem |
119 |
Comment[nn]=Standard terminalemulator for X |
120 |
Comment[pl]=Standardowy emulator terminala dla systemu X Window |
121 |
Comment[pt]=O emulador de terminal padrão para o Sistema de Janelas X |
122 |
Comment[pt_BR]=Emulador de terminal padrão do Sistema de Janelas X |
123 |
Comment[ro]=Emulator de terminal standard pentru sistemul X Window |
124 |
Comment[ru]=Стандартный эмулятор терминала для системы X Window |
125 |
Comment[sc]=S'emuladori de terminali standard po su X Window System |
126 |
Comment[sk]=Štandardný emulátor terminálu pre X Window Systém |
127 |
Comment[sl]=Standardna kozola za X okna |
128 |
Comment[sq]=Një imitues standard i terminalit për Sistemin X Windows |
129 |
Comment[sr]=Стандардни емулатор терминала за X Window Систем |
130 |
Comment[sr@Latn]=Standardni emulator terminala za X Window Sistem |
131 |
Comment[sv]=Den förvalda terminalemulatorn för X |
132 |
Comment[ta]=கொடாநிலை முனையம் |
133 |
Comment[tg]=Намунасози низоммеъёри поёна барои X Системаи Тирезавӣ |
134 |
Comment[th]=โปรแกรมเทอร์มินัลมาตรฐานบน X Windows |
135 |
Comment[tl]=And standard terminal emulator (manggagaya terminal) para sa X Window System |
136 |
Comment[tr]=X Window Sistemi için bir standart Uçbirim Emülasyonu |
137 |
Comment[uk]=Емулятор стандартного терміналу для системи X Window |
138 |
Comment[vi]=Trình mô phỏng Terminal chuẩn cho Hệ thống Cửa sổ X |
139 |
Comment[wa]=Li terminå standård pol sistinme di purneas X |
140 |
Comment[zh_CN]=X 窗口系统模拟终端 |
141 |
Comment[zh_TW]=X Window 系統的標準終端機模擬器 |
142 |
Exec=%{name} -name Terminal |
143 |
Icon=xterm-color |
144 |
Terminal=false |
145 |
Type=Application |
146 |
StartupNotify=true |
147 |
Categories=TerminalEmulator;System;Utility; |
148 |
EOF |
149 |
|
150 |
for xpm in *xterm{-color_32x32,-color_48x48,_32x32,_48x48}.xpm; do |
151 |
rm -f %{buildroot}%{_datadir}/pixmaps/$xpm |
152 |
done |
153 |
|
154 |
%files |
155 |
%doc ctlseqs.txt colortest.pl |
156 |
%{_bindir}/* |
157 |
%{_mandir}/*/* |
158 |
%{_libdir}/X11/app-defaults/* |
159 |
%{_datadir}/applications/%{name}.desktop |
160 |
%{_iconsdir}/hicolor/*/apps/*xterm*.* |