diff --git a/xterm.spec b/xterm.spec index 73ac35d536fde0da1db85a1138e70ac1df5209d6..a294036dcf8610bd2079beb9e12c5ab019b20028 100644 --- a/xterm.spec +++ b/xterm.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: Terminal emulator for the X Window System Name: xterm Version: 331 -Release: 1%{?dist}.2 +Release: 1%{anolis_release}%{?dist}.2 URL: https://invisible-island.net/xterm License: MIT Group: User Interface/X @@ -10,6 +11,8 @@ BuildRequires: libXft-devel libXaw-devel libXext-devel desktop-file-utils BuildRequires: libxkbfile-devel xorg-x11-apps Requires: xterm-resize = %{version}-%{release} Recommends: xorg-x11-fonts-misc +Requires: glibc +Provides: /usr/bin/xterm Source0: ftp://ftp.invisible-island.net/xterm/%{name}-%{version}.tgz Source1: ftp://ftp.invisible-island.net/xterm/16colors.txt @@ -35,6 +38,14 @@ Summary: Set environment and terminal settings to current window size Prints a shell command for setting the appropriate environment variables to indicate the current size of the window from which the command is run. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q @@ -83,7 +94,6 @@ 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 @@ -102,7 +112,13 @@ install -m644 -p xterm.appdata.xml $RPM_BUILD_ROOT%{_datadir}/appdata %{_bindir}/resize %{_mandir}/man1/resize.1* +%files doc +%doc xterm.log.html ctlseqs.txt 16colors.txt README.i18n THANKS + %changelog +* Fri Jul 15 2022 Liwei Ge - 331-1.2.0.1 +- Add doc sub package + * Fri Feb 12 2021 Tomas Korbar - 331-1.2 - Fix issue found by covcan - Related: rhbz#1927567