# -*- rpm-spec -*- # $Id: dialog,v 1.5 2003/09/05 10:17:48 grigory Exp $ Name: dialog Version: 1.1 Release: PG1 %define snapshot 20070930 Packager: Philip Gwyn Summary: A utility for creating TTY dialog boxes License: GPL Group: Development/Other Url: http://invisible-island.net/dialog/ Source: ftp://invisible-island.net/dialog/%name-%version-%snapshot.tar.gz Patch0: dialog-1.1-truetab-passwd.patch Provides: cdialog Obsoletes: cdialog BuildRoot: %{_tmppath}/%{name}-%{version}-%snapshot-root # Requires: terminfo BuildPreReq: ncurses-devel %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 devel Summary: The header files and static library for dialog Group: Development/Libraries Requires: %{name} = %{version}-%{release} Obsoletes: cdialog-devel Provides: cdialog-devel %description devel This package contains the static libraries and header files needed for developing applications based on the dialog library. %prep %setup -q -n %name-%version-%snapshot %patch0 -p1 -b .truetab-passwd %build %configure --enable-nls --with-ncursesw %__make %clean rm -rf $RPM_BUILD_ROOT %install # sed -i.bk -e 's/(MAKE)/(MAKE) prefix=$(prefix)/' makefile %__make DESTDIR=$RPM_BUILD_ROOT install %__make DESTDIR=$RPM_BUILD_ROOT install-lib find samples -type f -print0 |xargs -r0 %__chmod a-x %find_lang %name %files -f %name.lang %doc README samples %{_bindir}/dialog %{_mandir}/man1/dialog.* %files devel %{_includedir}/*.h %{_libdir}/lib*.a %{_bindir}/dialog-config %{_mandir}/man3/dialog.* %changelog * Thu Oct 25 2007 Philip Gwyn 1.1-PG1 - Ported to CentOS 4.5 - 20070930 - Include the passwd: and --truetab patch * Fri Apr 13 2007 Stanislav Ievlev 1.1-alt1 - 1.1 - build with ncursesw * Thu Dec 30 2004 Stanislav Ievlev 1.0-alt2 - new snapshot * Thu Aug 12 2004 Stanislav Ievlev 1.0-alt1 - 1.0 * Fri Apr 02 2004 Stanislav Ievlev 0.9b-alt8 - 20040316 * Thu Dec 04 2003 Stanislav Ievlev 0.9b-alt7 - latest snapshot * Fri Sep 5 2003 Grigory Milev 0.9b-alt6 - latest snapshot * Mon Sep 1 2003 Grigory Milev 0.9b-alt5 - added 2 gauges patch * Fri Aug 29 2003 Stanislav Ievlev 0.9b-alt4 - new snapshot, patch for gauge temporary removed * Tue Mar 25 2003 Stanislav Ievlev 0.9b-alt3 - latest snapshot * Wed Sep 04 2002 Stanislav Ievlev 0.9b-alt2 - rebuild with gcc3 * Tue Jun 25 2002 Stanislav Ievlev 0.9b-alt1 - 0.9b * Wed Apr 03 2002 Stanislav Ievlev 0.9a-alt9 - new snapshot - changes by Amon Ott (ao@rsbac.org) added to upstream - dropped patch to man-page * Tue Feb 12 2002 Grigory Milev 0.9a-alt8 - added requires to ncurses, with out it dilog can't work - added patch for gauge, now may create 2 lines * Thu Jan 24 2002 Stanislav Ievlev 0.9a-alt7 - latest snapshot - added patch to fselect from Owl * Fri Nov 16 2001 Stanislav Ievlev 0.9a-alt6 - 20011111 - fix charsets * Thu Sep 06 2001 Stanislav Ievlev 0.9a-alt5 - 20010811 * Mon Jul 09 2001 Stanislav Ievlev 0.9a-alt4 - Up to 0.9-20010527 * Wed May 16 2001 Stanislav Ievlev 0.9a-alt3 - Up to 0.9-20010429 * Fri May 04 2001 Stanislav Ievlev 0.9a-alt2 - Up to 0.9-20010415. * Tue Apr 03 2001 Stanislav Ievlev 0.9a-alt1 - Up to 0.9-20010115. Some adopt bugfixes * Mon Dec 4 2000 AEN - build for RE * Mon Aug 7 2000 Bill Nottingham - fix one of the examples (#14073) * Wed Jul 12 2000 Prospector - automatic rebuild * Wed Apr 5 2000 Bill Nottingham - rebuild against current ncurses/readline * Thu Feb 3 2000 Bill Nottingham - handle compressed man pages * Thu Jan 20 2000 Bill Nottingham - fix loop patch for reading from pipe * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 14) * Fri Dec 18 1998 Bill Nottingham - build for 6.0 * Tue Aug 11 1998 Jeff Johnson - build root * Thu May 7 1998 Michael Maher - Added Sean Reifschneider patches for infinite loop problems. * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Wed Apr 15 1998 Erik Troan - built against new ncurses * Thu Jul 10 1997 Erik Troan - built against glibc