2019-09-30 10:36:53 -04:00
|
|
|
%global dialogsubversion 20180621
|
|
|
|
|
Name: dialog
|
|
|
|
|
Version: 1.3
|
2020-09-05 09:33:08 +08:00
|
|
|
Release: 18
|
2019-09-30 10:36:53 -04:00
|
|
|
Summary: A utility which displays dialog boxes from shell scripts
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
URL: https://invisible-island.net/dialog/dialog.html
|
2020-09-05 09:33:08 +08:00
|
|
|
Source0: https://invisible-mirror.net/archives/dialog//dialog-%{version}-%{dialogsubversion}.tgz
|
2019-09-30 10:36:53 -04:00
|
|
|
|
|
|
|
|
BuildRequires: gcc ncurses-devel gettext findutils libtool
|
|
|
|
|
Provides: dialog-static
|
|
|
|
|
Obsoletes: dialog-static
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Dialog is a program that will let you 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 com-
|
|
|
|
|
piled into dialog):
|
|
|
|
|
buildlist, calendar, checklist, dselect, editbox, form, fselect,
|
|
|
|
|
gauge, infobox, inputbox, inputmenu, menu, mixedform,
|
|
|
|
|
mixedgauge, msgbox (message), passwordbox, passwordform, pause,
|
|
|
|
|
prgbox, programbox, progressbox, radiolist, rangebox, tailbox,
|
|
|
|
|
tailboxbg, textbox, timebox, treeview, and yesno (yes/no).
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for building applications with the dialog library
|
|
|
|
|
Requires: %{name} = %{version}-%{release} ncurses-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Dialog is a utility that allows you to show dialog boxes (containing
|
|
|
|
|
questions or messages) in TTY (text mode) interfaces. This package
|
|
|
|
|
contains the files needed for developing applications, which use the
|
|
|
|
|
dialog library.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n dialog-%{version}-%{dialogsubversion} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure \
|
|
|
|
|
--enable-nls \
|
|
|
|
|
--with-libtool \
|
|
|
|
|
--with-ncursesw \
|
|
|
|
|
--includedir=%{_includedir}/dialog
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf samples/install
|
|
|
|
|
find samples -type f -print0 |xargs -0 chmod a-x
|
|
|
|
|
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
chmod 755 %{buildroot}%{_libdir}/libdialog.so.*.*.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc CHANGES COPYING dialog.lsm README samples
|
|
|
|
|
%{_bindir}/dialog
|
|
|
|
|
%{_libdir}/libdialog.so.15*
|
|
|
|
|
%{_datadir}/locale/
|
|
|
|
|
%exclude %{_libdir}/libdialog.{,l}a
|
|
|
|
|
%exclude %{_libdir}/.libs/*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/dialog
|
|
|
|
|
%{_bindir}/dialog-config
|
|
|
|
|
%{_libdir}/libdialog.so
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man1/dialog.*
|
|
|
|
|
%{_mandir}/man3/dialog.*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-09-05 09:33:08 +08:00
|
|
|
* Sat Sep 5 2020 shixuantong <shixuantong@huawei.com> - 1.3-18
|
|
|
|
|
- update Source0
|
|
|
|
|
|
2020-01-11 10:34:51 +08:00
|
|
|
* Sat Jan 11 2020 zhangguangzhi<zhangguangzhi3@huawei.com> - 1.3-17
|
|
|
|
|
- del patch to be consistent with open source
|
|
|
|
|
|
2019-09-30 10:36:53 -04:00
|
|
|
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3-16
|
2020-01-11 10:34:51 +08:00
|
|
|
- Package init
|