CBL-Mariner/SPECS/dialog/dialog.spec

112 lines
3.2 KiB
Plaintext

%global dialogsubversion 20180621
Summary: A utility for creating TTY dialog boxes
Name: dialog
Version: 1.3
Release: 4%{?dist}
License: LGPLv2+
URL: https://invisible-island.net/dialog/dialog.html
Group: Applications/System
Vendor: Microsoft Corporation
Distribution: Mariner
Source0: ftp://ftp.invisible-island.net/dialog/%{name}-%{version}-%{dialogsubversion}.tgz
BuildRequires: ncurses-devel
BuildRequires: gettext
BuildRequires: findutils
BuildRequires: libtool
Patch1: dialog-incdir.patch
Patch2: dialog-multilib.patch
Patch3: dialog-libs.patch
%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: Development files for building applications with the dialog library
Group: Development/Libraries
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.
%prep
%setup -q -n %{name}-%{version}-%{dialogsubversion}
%patch1 -p1 -b .incdir
%patch2 -p1 -b .multilib
%patch3 -p1 -b .libs
%build
%configure \
--enable-nls \
--with-libtool \
--with-ncursesw \
--includedir=%{_includedir}/dialog
make %{?_smp_mflags}
%install
# prepare packaged samples
rm -rf _samples
mkdir _samples
cp -a samples _samples
rm -rf _samples/samples/install
find _samples -type f -print0 | xargs -0 chmod a-x
make DESTDIR=%{buildroot} install
# configure incorrectly use '-m 644' for library, fix it
chmod +x %{buildroot}%{_libdir}/*
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%license COPYING
%doc COPYING dialog.lsm README _samples/samples
%{_bindir}/dialog
%{_libdir}/libdialog.so.*
%{_mandir}/man1/dialog.*
%files devel
%{_bindir}/dialog-config
%{_includedir}/dialog
%{_libdir}/libdialog.so
%{_libdir}/libdialog.la
%exclude %{_libdir}/libdialog.a
%{_mandir}/man3/dialog.*
%changelog
* Tue Oct 19 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.3-4
- Converting the 'Release' tag to the '[number].[distribution]' format.
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 1.3-3.20180621
- Added %%license line automatically
* Thu Apr 16 2020 Nick Samson <nisamson@microsoft.com> - 1.3-2.20180621
- Updated Source0, URL, removed sha1. License verified.
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> - 1.3-1.20180621
- Initial CBL-Mariner import from Photon (license: Apache2).
* Mon Jan 28 2019 Bo Gan <ganb@vmware.com> - 1.3-4.20180621
- Fix library permission.
* Wed Sep 19 2018 Bo Gan <ganb@vmware.com> - 1.3-3.20180621
- Update to 20180621
* Wed Apr 19 2017 Bo Gan <ganb@vmware.com> - 1.3-2.20170131
- update to 20170131
* Fri May 30 2016 Nick Shi <nshi@vmware.com> - 1.3-1.20160209
- Initial version