2011-04-17 17:00:55 +00:00
|
|
|
Summary: dialog - display dialog boxes from shell scripts
|
|
|
|
%define AppProgram dialog
|
2013-06-17 10:00:48 +00:00
|
|
|
%define AppVersion 1.2
|
2013-09-24 14:52:43 +00:00
|
|
|
%define AppRelease 20130923
|
2011-04-17 17:00:55 +00:00
|
|
|
%define ActualProg c%{AppProgram}
|
2013-09-24 14:52:43 +00:00
|
|
|
# $XTermId: dialog.spec,v 1.54 2013/09/23 23:08:24 tom Exp $
|
2011-04-17 17:00:55 +00:00
|
|
|
Name: %{ActualProg}
|
|
|
|
Version: %{AppVersion}
|
|
|
|
Release: %{AppRelease}
|
|
|
|
License: LGPL
|
|
|
|
Group: Applications/Development
|
|
|
|
URL: ftp://invisible-island.net/%{AppProgram}
|
|
|
|
Source0: %{AppProgram}-%{AppVersion}-%{AppRelease}.tgz
|
|
|
|
Packager: Thomas Dickey <dickey@invisible-island.net>
|
|
|
|
|
|
|
|
%description
|
|
|
|
Dialog is a program that will let you to present a variety of questions
|
|
|
|
or display messages using dialog boxes from a shell script. These
|
|
|
|
types of dialog boxes are implemented (though not all are necessarily
|
|
|
|
compiled into dialog):
|
|
|
|
|
|
|
|
calendar, checklist, dselect, editbox, form, fselect, gauge,
|
|
|
|
infobox, inputbox, inputmenu, menu, mixedform, mixedgauge,
|
|
|
|
msgbox (message), passwordbox, passwordform, pause, progressbox,
|
|
|
|
radiolist, tailbox, tailboxbg, textbox, timebox, and yesno
|
|
|
|
(yes/no).
|
|
|
|
|
|
|
|
This package installs as "cdialog" to avoid conflict with other packages.
|
|
|
|
%prep
|
|
|
|
|
2013-06-17 10:00:48 +00:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
2011-04-17 17:00:55 +00:00
|
|
|
%setup -q -n %{AppProgram}-%{AppVersion}-%{AppRelease}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
INSTALL_PROGRAM='${INSTALL}' \
|
|
|
|
./configure \
|
|
|
|
--target %{_target_platform} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--with-package=%{ActualProg} \
|
|
|
|
--enable-header-subdir \
|
|
|
|
--enable-nls \
|
|
|
|
--enable-widec \
|
|
|
|
--with-libtool \
|
|
|
|
--with-ncursesw \
|
|
|
|
--disable-rpath-hack
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make install-full DESTDIR=$RPM_BUILD_ROOT
|
2012-10-21 18:18:09 +00:00
|
|
|
libtool --finish %{_libdir}
|
2011-04-17 17:00:55 +00:00
|
|
|
|
|
|
|
strip $RPM_BUILD_ROOT%{_bindir}/%{ActualProg}
|
2012-10-21 18:18:09 +00:00
|
|
|
chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib%{ActualProg}.so.*.*.*
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/lib%{ActualProg}.la
|
2011-04-17 17:00:55 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/%{ActualProg}
|
|
|
|
%{_bindir}/%{ActualProg}-config
|
|
|
|
%{_mandir}/man1/%{ActualProg}.*
|
|
|
|
%{_mandir}/man3/%{ActualProg}.*
|
|
|
|
%{_includedir}/%{ActualProg}.h
|
|
|
|
%{_includedir}/%{ActualProg}/dlg_colors.h
|
|
|
|
%{_includedir}/%{ActualProg}/dlg_config.h
|
|
|
|
%{_includedir}/%{ActualProg}/dlg_keys.h
|
|
|
|
%{_libdir}/lib%{ActualProg}.*
|
|
|
|
%{_datadir}/locale/*/LC_MESSAGES/%{ActualProg}.mo
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
# each patch should add its ChangeLog entries here
|
|
|
|
|
2012-10-21 18:18:09 +00:00
|
|
|
* Tue Oct 18 2011 Thomas Dickey
|
|
|
|
- add executable permissions for shared libraries, discard ".la" file.
|
|
|
|
|
2011-04-17 17:00:55 +00:00
|
|
|
* Thu Dec 30 2010 Thomas Dickey
|
|
|
|
- initial version
|