Summary: test VT100-type terminal

%define AppPatched 20220827

Name: vttest
Version: 2.7.%{AppPatched}
Release: 2%{?dist}
License: MIT
URL: https://invisible-island.net/%{name}/
Source0: https://invisible-mirror.net/archives/%{name}/%{name}-%{AppPatched}.tgz
Patch0: vttest-configure-c99.patch
BuildRequires: gcc
BuildRequires: make

%description
Vttest is a program designed to test the functionality of a VT100
terminal (or emulator thereof).  It tests both display (escape sequence
handling) and keyboard.

The program is menu-driven and contains full on-line operating
instructions.  To run a given menu-item, you must enter its number.  You
can run all menu-items (for a given level) by entering an asterisk, i.e,
`*'.

%prep

%autosetup -p1 -n %{name}-%{AppPatched}

%build

%configure

%make_build

%install
%make_install

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%doc BUGS CHANGES MANIFEST README
%license COPYING

%changelog
* Tue Dec  6 2022 Florian Weimer <fweimer@redhat.com> - 2.7.20220827-2
- Fix glitch in configure script in FIONREAD detection (#2151353)

* Sun Aug 28 2022 Thomas E. Dickey <dickey@his.com> - 2.7.20220827-1
- update to 2.7.20220827 (RHBZ #2055158)

* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.20220215-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Thu Feb 17 2022 Thomas E. Dickey <dickey@his.com> - 2.7.20220215-1
- update to 2.7.20220215 (RHBZ #2055158)

* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.20210210-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Sat Jan 08 2022 Thomas E. Dickey <dickey@his.com> - 2.7.20210210-1
- address review-comments
- install doc, license files used in previous Fedora package