1Summary: dialog - display dialog boxes from shell scripts 2%define AppProgram dialog 3%define AppVersion 1.2 4%define AppRelease 20130923 5%define ActualProg c%{AppProgram} 6# $XTermId: dialog.spec,v 1.54 2013/09/23 23:08:24 tom Exp $ 7Name: %{ActualProg} 8Version: %{AppVersion} 9Release: %{AppRelease} 10License: LGPL 11Group: Applications/Development 12URL: ftp://invisible-island.net/%{AppProgram} 13Source0: %{AppProgram}-%{AppVersion}-%{AppRelease}.tgz 14Packager: Thomas Dickey <dickey@invisible-island.net> 15 16%description 17Dialog is a program that will let you to present a variety of questions 18or display messages using dialog boxes from a shell script. These 19types of dialog boxes are implemented (though not all are necessarily 20compiled into dialog): 21 22 calendar, checklist, dselect, editbox, form, fselect, gauge, 23 infobox, inputbox, inputmenu, menu, mixedform, mixedgauge, 24 msgbox (message), passwordbox, passwordform, pause, progressbox, 25 radiolist, tailbox, tailboxbg, textbox, timebox, and yesno 26 (yes/no). 27 28This package installs as "cdialog" to avoid conflict with other packages. 29%prep 30 31%define debug_package %{nil} 32 33%setup -q -n %{AppProgram}-%{AppVersion}-%{AppRelease} 34 35%build 36 37INSTALL_PROGRAM='${INSTALL}' \ 38 ./configure \ 39 --target %{_target_platform} \ 40 --prefix=%{_prefix} \ 41 --bindir=%{_bindir} \ 42 --libdir=%{_libdir} \ 43 --mandir=%{_mandir} \ 44 --with-package=%{ActualProg} \ 45 --enable-header-subdir \ 46 --enable-nls \ 47 --enable-widec \ 48 --with-libtool \ 49 --with-ncursesw \ 50 --disable-rpath-hack 51 52make 53 54%install 55[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 56 57make install-full DESTDIR=$RPM_BUILD_ROOT 58libtool --finish %{_libdir} 59 60strip $RPM_BUILD_ROOT%{_bindir}/%{ActualProg} 61chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib%{ActualProg}.so.*.*.* 62rm -f $RPM_BUILD_ROOT%{_libdir}/lib%{ActualProg}.la 63 64%clean 65[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 66 67%files 68%defattr(-,root,root) 69%{_bindir}/%{ActualProg} 70%{_bindir}/%{ActualProg}-config 71%{_mandir}/man1/%{ActualProg}.* 72%{_mandir}/man3/%{ActualProg}.* 73%{_includedir}/%{ActualProg}.h 74%{_includedir}/%{ActualProg}/dlg_colors.h 75%{_includedir}/%{ActualProg}/dlg_config.h 76%{_includedir}/%{ActualProg}/dlg_keys.h 77%{_libdir}/lib%{ActualProg}.* 78%{_datadir}/locale/*/LC_MESSAGES/%{ActualProg}.mo 79 80%changelog 81# each patch should add its ChangeLog entries here 82 83* Tue Oct 18 2011 Thomas Dickey 84- add executable permissions for shared libraries, discard ".la" file. 85 86* Thu Dec 30 2010 Thomas Dickey 87- initial version 88