diff --git a/16colors.txt b/16colors.txt new file mode 100644 index 0000000000000000000000000000000000000000..9b09e77f20d08088f191560a4a2c5ceb0cd90b3a --- /dev/null +++ b/16colors.txt @@ -0,0 +1,24 @@ +ANSI-Colors v1.0 +(c)1994 by: Pablo Ariel Kohan + |3 9 3 9 3 9 3 9 3 9 3 9 3 9 3 9| + |0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7| +---+-------------------------------+--- +040|X X X X X X X X X X X X X X X X|040 +100|X X X X X X X X X X X X X X X X|100 +041|X X X X X X X X X X X X X X X X|041 +101|X X X X X X X X X X X X X X X X|101 +042|X X X X X X X X X X X X X X X X|042 +102|X X X X X X X X X X X X X X X X|102 +043|X X X X X X X X X X X X X X X X|043 +103|X X X X X X X X X X X X X X X X|103 +044|X X X X X X X X X X X X X X X X|044 +104|X X X X X X X X X X X X X X X X|104 +045|X X X X X X X X X X X X X X X X|045 +105|X X X X X X X X X X X X X X X X|105 +046|X X X X X X X X X X X X X X X X|046 +106|X X X X X X X X X X X X X X X X|106 +047|X X X X X X X X X X X X X X X X|047 +107|X X X X X X X X X X X X X X X X|107 +---+-------------------------------+--- + |3 9 3 9 3 9 3 9 3 9 3 9 3 9 3 9| + |0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7| diff --git a/xterm-371.tgz b/xterm-371.tgz new file mode 100644 index 0000000000000000000000000000000000000000..a7a6d27aee32f94cb176bf241aa6ada997ea3e49 Binary files /dev/null and b/xterm-371.tgz differ diff --git a/xterm.spec b/xterm.spec new file mode 100644 index 0000000000000000000000000000000000000000..d3879a8a27dac38f5f0251f8286ad3761abed404 --- /dev/null +++ b/xterm.spec @@ -0,0 +1,93 @@ +%define anolis_release +%bcond_with trace + +Summary: Terminal emulator for the X Window System +Name: xterm +Version: 371 +Release: %{anolis_release}%{?dist} +URL: https://invisible-island.net/xterm +License: MIT +BuildRequires: make +BuildRequires: gcc pkgconfig ncurses-devel libutempter-devel +BuildRequires: libXft-devel libXaw-devel libXext-devel desktop-file-utils +BuildRequires: libxkbfile-devel pcre2-devel pkgconfig(libpcre2-posix) +Requires: xterm-resize = %{version}-%{release} +Recommends: xorg-x11-fonts-misc + +Source0: ftp://ftp.invisible-island.net/xterm/%{name}-%{version}.tgz +Source1: ftp://ftp.invisible-island.net/xterm/16colors.txt + +%global x11_app_defaults_dir %(pkg-config --variable appdefaultdir xt) + +%description +The xterm program is a terminal emulator for the X Window System. It +provides DEC VT102 and Tektronix 4014 compatible terminals for +programs that can't use the window system directly. + +%package resize +Summary: Set environment and terminal settings to current window size + +%description resize +Prints a shell command for setting the appropriate environment variables to +indicate the current size of the window from which the command is run. + +%prep +%setup -q + +for f in THANKS; do + iconv -f iso8859-1 -t utf8 -o ${f}{_,} && + touch -r ${f}{,_} && mv -f ${f}{_,} +done + +%build +%configure \ + --enable-meta-sends-esc \ + --disable-backarrow-key \ + --enable-exec-xterm \ +%{?with_trace: --enable-trace} \ + --enable-warnings \ + --with-app-defaults=%{x11_app_defaults_dir} \ + --with-icon-theme=hicolor \ + --with-icondir=%{_datadir}/icons \ + --with-utempter \ + --with-tty-group=tty \ + --disable-full-tgetent \ + --with-pcre2 + +%make_build + +%install +%make_install + +cp -fp %{SOURCE1} 16colors.txt + +desktop-file-install \ + --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ + xterm.desktop + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +install -m644 -p xterm.appdata.xml $RPM_BUILD_ROOT%{_datadir}/appdata + +%files +%doc xterm.log.html ctlseqs.txt 16colors.txt README.i18n THANKS +%{_bindir}/xterm +%{_bindir}/koi8rxterm +%{_bindir}/uxterm +%{_mandir}/man1/koi8rxterm.1* +%{_mandir}/man1/uxterm.1* +%{_mandir}/man1/xterm.1* +%{_datadir}/appdata/xterm.appdata.xml +%{_datadir}/applications/*xterm.desktop +%{_datadir}/icons/hicolor/*/apps/*xterm* +%{_datadir}/pixmaps/*xterm*.xpm +%{x11_app_defaults_dir}/KOI8RXTerm* +%{x11_app_defaults_dir}/UXTerm* +%{x11_app_defaults_dir}/XTerm* + +%files resize +%{_bindir}/resize +%{_mandir}/man1/resize.1* + +%changelog +* Fri Mar 11 2022 Chunmei Xu - 371-1 +- init from upstream version 371