# 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 %define rname dialog %global libname %mklibname %{rname} %{major} %global devname %mklibname %{rname} -d %define date 20251001 %define rel 2 Summary: A utility for creating TTY dialog boxes Name: cdialog 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/%{rname}-%{version}%{?date:-%date}.tgz %if 0%{?mageia} Obsoletes: %{rname} <= %{version}-%{release} Provides: %{rname} = %{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} Requires: %libname = %{version}-%{release} %description -n %devname %{summary}. %prep %autosetup -p1 -n %{rname}-%{version}%{?date:-%date} %build %configure \ --enable-nls \ --with-shared \ --with-ncursesw %make_build %install %make_install install-lib %find_lang %{rname} %files -f %{rname}.lang %doc README %license COPYING %{_bindir}/%{rname} %{_mandir}/man1/%{rname}.* %files -n %{libname} %{_libdir}/lib%{rname}.so.%{major}.* %{_libdir}/lib%{rname}.so.%{version} %files -n %{devname} %{_bindir}/%{rname}-config %{_includedir}/ %{_libdir}/lib%{rname}.so %{_mandir}/man3/%{rname}.*