%if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif %define date 20250116 %define rel 1 Summary: A utility for creating TTY dialog boxes Name: dialog Version: 1.3 Release: %mkrel %{?date:%date.}%{rel} License: LGPLv2+ URL: https://invisible-island.net/dialog/ Group: Development/Other BuildRequires: pkgconfig(ncursesw) BuildRequires: make BuildRequires: gcc Source: https://invisible-mirror.net/archives/dialog/%{name}-%{version}%{?date:-%date}.tgz Obsoletes: cdialog <= %{version}-%{release} %description Dialog is a utility that allows you to show dialog boxes (containing questions or messages) in TTY (text mode) interfaces. Dialog is called from within a shell script. The following dialog boxes are implemented: yes/no, menu, input, message, text, info, checklist, radiolist, and gauge. Install dialog if you would like to create TTY dialog boxes. %prep %setup -q -n %{name}-%{version}%{?date:-%date} %build %configure \ --enable-nls \ --with-ncursesw %make_build %install %make_install rm -f %{buildroot}%{_libdir}/*.a %find_lang %{name} %files -f %{name}.lang %doc README %license COPYING %{_bindir}/%{name} %{_mandir}/man1/%{name}.*