# The naming scheme in non-Mandriva-based distros %if 0%{!?mklibname:1} %define mklibname(ds) lib%{1}%{?2:%{2}}%{-s:-static}%{-d:-devel} %endif %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif %global major 15 %global libname %mklibname %{name} %{major} %global devname %mklibname %{name} -d %define date 20250116 %define rel 4 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 BuildRequires: gettext Source: https://invisible-mirror.net/archives/dialog/%{name}-%{version}%{?date:-%date}.tgz %if 0%{?mageia} Obsoletes: cdialog <= %{version}-%{release} Provides: cdialog = %{version}-%{release} %endif %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. %package -n %libname Summary: Shared library for %{name} Group: Application/Libraries %description -n %libname %{summary}. %package -n %devname Summary: Development library for %{name} Group: Development/Libraries Provides: %{name}-devel = %{version}-%{release} %description -n %devname %{summary}. %prep %setup -q -n %{name}-%{version}%{?date:-%date} %build %configure \ --enable-nls \ --with-shared \ --with-ncursesw %make_build %install %make_install install-lib %find_lang %{name} %files -f %{name}.lang %doc README %license COPYING %{_bindir}/%{name} %{_mandir}/man1/%{name}.* %files -n %{libname} %{_libdir}/lib%{name}.so.%{major}.* %files -n %{devname} %{_bindir}/dialog-config %{_includedir}/ %{_libdir}/lib%{name}.so %{_libdir}/lib%{name}.so.%{version} %{_mandir}/man3/%{name}.*