/[packages]/cauldron/xterm/current/SPECS/xterm.spec
ViewVC logotype

Contents of /cauldron/xterm/current/SPECS/xterm.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30