%define majver %(echo %version|cut -d. -f1-2) %define pck_date %(echo %version|cut -d. -f3) Name: ncurses-dialog Version: 1.1.20120706 Release: 1mamba2 Epoch: 2 Summary: A script interpreter of curses widgets Group: System/Libraries Vendor: openmamba Distribution: openmamba License: LGPL Packager: Silvan Calarco URL: http://dickey.his.com/dialog/dialog.html Source: ftp://invisible-island.net/dialog/dialog-%{majver}-%{pck_date}.tgz Source1: qilinux.rc ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libncurses-devel ## AUTOBUILDREQ-END Requires: libncurses >= 5.3 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Dialog is a a script interpreter of curses widgets which can be linked into your application. Widgets are objects whose appearance and behavior can be customized. %package samples Summary: Samples for ncurses-dialog Group: Development/Tools Requires: ncurses-dialog = %{epoch}:%{version} %description samples Dialog is a script interpreter of curses widgets which can be linked into your application. Widgets are objects whose appearance and behavior can be customized This package contains a lot of useful sample scripts. %prep %setup -q -n dialog-%{majver}-%{pck_date} %build %configure --enable-nls %make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall install -d %{buildroot}%{_datadir}/dialog cp -r samples %{buildroot}%{_datadir}/dialog #install -D -m 0644 %{SOURCE1} \ # %{buildroot}%{_datadir}/dialog/config/qilinux.rc %find_lang dialog %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files -f dialog.lang %defattr(-,root,root) %{_bindir}/dialog %{_mandir}/man1/* #%dir %{_datadir}/dialog #%{_datadir}/dialog/config/qilinux.rc %files samples %defattr(-,root,root) %dir %{_datadir}/dialog %{_datadir}/dialog/samples/* %changelog * Mon Nov 19 2012 Silvan Calarco 1.1.20120706-1mamba2 - mamba2 milestone rebuild * Mon Nov 19 2012 Silvan Calarco 1.1.20120706-1mamba - update to 1.1.20120706 - license updated (see http://bugs.openmamba.org/view.php?id=160) - disable installation of old defaults config file * Fri Mar 20 2009 Silvan Calarco 1.1.20080819-1mamba - update to 1.1.20080819 * Wed Jun 04 2008 Silvan Calarco 1.1-3mamba - ... add a changelog entry * Mon Jan 16 2006 Davide Madrisan 1.0.20050116-2qilnx - rebuilt * Wed Jan 26 2005 Davide Madrisan 1.0.20050116-1qilnx - update to version 1.0.20050116 by autospec - specfile updated * Mon Aug 09 2004 Silvan Calarco 20040421-2qilnx - added qilinux default configuration file * Mon Apr 26 2004 Davide Madrisan 20040421-1qilnx - added NLS support - rebuilt with latest version * Fri Jan 22 2004 Davide Madrisan 20031207-1qilnx - rebuilt with last cdialog version - patch passwordbox.diff removed: the feature has been implemented (see 'dialog --insecure --passwordbox') * Thu Nov 06 2003 Silvan Calarco 20031002-1qilnx - rebuilt with last cdialog version * Mon Sep 29 2003 Davide Madrisan 20030924-1qilnx - rebuilt with last cdialog version. Patch updated. * Sat Sep 28 2003 Davide Madrisan 20030910-2qilnx - rebuilt with the passwordbox.diff patch to remove the no-echo behaviour in the dialog password boxes. Now a star character is displayed when a key is typed by the user * Mon Sep 22 2003 Davide Madrisan 20030910-1qilnx - rebuilt with last cdialog version * Wed Sep 10 2003 Davide Madrisan 20030830-1qilnx - rebuilt with last cdialog version * Wed Jul 30 2003 Silvan Calarco 20030720-1qilnx - first build for ncurses-dialog