c7c0bc
Summary: A utility for creating TTY dialog boxes
c7c0bc
Name: dialog
c7c0bc
%global dialogsubversion 20171209
c7c0bc
Version: 1.3
c7c0bc
Release: 13.%{dialogsubversion}%{?dist}
c7c0bc
License: LGPLv2
c7c0bc
Group: Applications/System
c7c0bc
URL: https://invisible-island.net/dialog/dialog.html
c7c0bc
Source: ftp://ftp.invisible-island.net/dialog/dialog-%{version}-%{dialogsubversion}.tgz
c7c0bc
BuildRequires: ncurses-devel gcc gettext findutils libtool
c7c0bc
Patch1: dialog-incdir.patch
c7c0bc
Patch2: dialog-multilib.patch
c7c0bc
Patch3: dialog-libs.patch
c7c0bc
c7c0bc
%description
c7c0bc
Dialog is a utility that allows you to show dialog boxes (containing
c7c0bc
questions or messages) in TTY (text mode) interfaces.  Dialog is called
c7c0bc
from within a shell script.  The following dialog boxes are implemented:
c7c0bc
yes/no, menu, input, message, text, info, checklist, radiolist, and
c7c0bc
gauge.  
c7c0bc
c7c0bc
Install dialog if you would like to create TTY dialog boxes.
c7c0bc
c7c0bc
%package devel 
c7c0bc
Summary: Development files for building applications with the dialog library
c7c0bc
Group: Development/Libraries
c7c0bc
Requires: %{name}%{?_isa} = %{version}-%{release} ncurses-devel
c7c0bc
c7c0bc
%description devel
c7c0bc
Dialog is a utility that allows you to show dialog boxes (containing
c7c0bc
questions or messages) in TTY (text mode) interfaces. This package 
c7c0bc
contains the files needed for developing applications, which use the 
c7c0bc
dialog library.
c7c0bc
c7c0bc
%prep
c7c0bc
%setup -q -n dialog-%{version}-%{dialogsubversion}
c7c0bc
%patch1 -p1 -b .incdir
c7c0bc
%patch2 -p1 -b .multilib
c7c0bc
%patch3 -p1 -b .libs
c7c0bc
c7c0bc
%build
c7c0bc
%configure \
c7c0bc
	--enable-nls \
c7c0bc
	--with-libtool \
c7c0bc
	--with-libtool-opts="$(for opt in %{?_hardened_ldflags}; do \
c7c0bc
				echo -n -Xcompiler $opt ''; done)" \
c7c0bc
	--with-ncursesw \
c7c0bc
	--includedir=%{_includedir}/dialog
c7c0bc
make %{?_smp_mflags}
c7c0bc
c7c0bc
%install
c7c0bc
# prepare packaged samples
c7c0bc
rm -rf _samples
c7c0bc
mkdir _samples
c7c0bc
cp -a samples _samples
c7c0bc
rm -rf _samples/samples/install
c7c0bc
find _samples -type f -print0 | xargs -0 chmod a-x
c7c0bc
c7c0bc
make install DESTDIR=$RPM_BUILD_ROOT
c7c0bc
c7c0bc
chmod 755 $RPM_BUILD_ROOT%{_libdir}/libdialog.so.*.*.*
c7c0bc
rm -f $RPM_BUILD_ROOT%{_libdir}/libdialog.{,l}a
c7c0bc
c7c0bc
%find_lang %{name}
c7c0bc
c7c0bc
%ldconfig_scriptlets
c7c0bc
c7c0bc
%files -f %{name}.lang
c7c0bc
%doc COPYING dialog.lsm README _samples/samples
c7c0bc
%{_bindir}/dialog
c7c0bc
%{_libdir}/libdialog.so.14*
c7c0bc
%{_mandir}/man1/dialog.*
c7c0bc
c7c0bc
%files devel
c7c0bc
%{_bindir}/dialog-config
c7c0bc
%{_includedir}/dialog
c7c0bc
%{_libdir}/libdialog.so
c7c0bc
%{_mandir}/man3/dialog.*
c7c0bc
c7c0bc
%changelog
c7c0bc
* Thu Mar 29 2018 Miroslav Lichvar <mlichvar@redhat.com> - 1.3-13.20171209
c7c0bc
- update to 1.3-20171209
c7c0bc
- fix build with multiple options in hardened ldflags (#1548400)
c7c0bc
- add gcc to build requirements
c7c0bc
- use macro for ldconfig scriptlets
c7c0bc
c7c0bc
* Fri Feb 23 2018 Miroslav Lichvar <mlichvar@redhat.com> - 1.3-12.20170509
c7c0bc
- fix build to use hardened linker specs (#1548400)
c7c0bc
c7c0bc
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-11.20170509
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c7c0bc
c7c0bc
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-10.20170509
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c7c0bc
c7c0bc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-9.20170509
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c7c0bc
c7c0bc
* Wed May 10 2017 Miroslav Lichvar <mlichvar@redhat.com> - 1.3-8.20170509
c7c0bc
- update to 1.3-20170509
c7c0bc
c7c0bc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-7.20170131
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c7c0bc
c7c0bc
* Wed Feb 01 2017 Miroslav Lichvar <mlichvar@redhat.com> - 1.3-6.20170131
c7c0bc
- update to 1.3-20170131
c7c0bc
c7c0bc
* Wed Sep 07 2016 Miroslav Lichvar <mlichvar@redhat.com> - 1.3-5.20160828
c7c0bc
- update to 1.3-20160828
c7c0bc
c7c0bc
* Tue Apr 26 2016 Miroslav Lichvar <mlichvar@redhat.com> - 1.3-4.20160424
c7c0bc
- update to 1.3-20160424
c7c0bc
c7c0bc
* Wed Feb 10 2016 Miroslav Lichvar <mlichvar@redhat.com> - 1.3-3.20160209
c7c0bc
- update to 1.3-20160209
c7c0bc
c7c0bc
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-2.20160126
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c7c0bc
c7c0bc
* Thu Jan 28 2016 Miroslav Lichvar <mlichvar@redhat.com> - 1.3-1.20160126
c7c0bc
- update to 1.3-20160126
c7c0bc
c7c0bc
* Tue Sep 22 2015 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-17.20150528
c7c0bc
- update to 1.2-20150920
c7c0bc
c7c0bc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-16.20150528
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c7c0bc
c7c0bc
* Tue Jun 02 2015 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-15.20150528
c7c0bc
- update to 1.2-20150528
c7c0bc
c7c0bc
* Fri May 15 2015 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-14.20150513
c7c0bc
- update to 1.2-20150513
c7c0bc
c7c0bc
* Thu Feb 26 2015 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-13.20150225
c7c0bc
- update to 1.2-20150225
c7c0bc
c7c0bc
* Thu Jan 29 2015 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-12.20150125
c7c0bc
- update to 1.2-20150125
c7c0bc
c7c0bc
* Fri Sep 12 2014 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-11.20140911
c7c0bc
- update to 1.2-20140911
c7c0bc
c7c0bc
* Tue Sep 02 2014 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-10.20140901
c7c0bc
- update to 1.2-20140901
c7c0bc
c7c0bc
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-9.20140219
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c7c0bc
c7c0bc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8.20140219
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c7c0bc
c7c0bc
* Thu Feb 20 2014 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-7.20140219
c7c0bc
- update to 1.2-20140219
c7c0bc
c7c0bc
* Mon Jan 13 2014 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-6.20140112
c7c0bc
- update to 1.2-20140112
c7c0bc
c7c0bc
* Mon Oct 07 2013 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-5.20130928
c7c0bc
- update to 1.2-20130928
c7c0bc
c7c0bc
* Thu Sep 19 2013 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-4.20130902
c7c0bc
- update to 1.2-20130902
c7c0bc
- fix weekdays in changelog
c7c0bc
c7c0bc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3.20130523
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c7c0bc
c7c0bc
* Fri May 24 2013 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-2.20130523
c7c0bc
- update to 1.2-20130523
c7c0bc
c7c0bc
* Mon Mar 18 2013 Miroslav Lichvar <mlichvar@redhat.com> - 1.2-1.20121230
c7c0bc
- update to 1.2-20121230
c7c0bc
c7c0bc
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-18.20120706
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c7c0bc
c7c0bc
* Tue Nov 13 2012 Miroslav Lichvar <mlichvar@redhat.com> - 1.1-17.20120706
c7c0bc
- update to 1.1-20120706
c7c0bc
- remove unnecessary macros
c7c0bc
c7c0bc
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-16.20110707
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c7c0bc
c7c0bc
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-15.20110707
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c7c0bc
c7c0bc
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-14.20110707
c7c0bc
- Rebuilt for glibc bug#747377
c7c0bc
c7c0bc
* Tue Jul 26 2011 Miroslav Lichvar <mlichvar@redhat.com> - 1.1-13.20110707
c7c0bc
- update to 1.1-20110707
c7c0bc
c7c0bc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-12.20100428
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c7c0bc
c7c0bc
* Wed May 12 2010 Miroslav Lichvar <mlichvar@redhat.com> - 1.1-11.20100428
c7c0bc
- update to 1.1-20100428
c7c0bc
c7c0bc
* Thu Feb 04 2010 Miroslav Lichvar <mlichvar@redhat.com> - 1.1-10.20100119
c7c0bc
- update to 1.1-20100119
c7c0bc
c7c0bc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-9.20080819
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c7c0bc
c7c0bc
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8.20080819
c7c0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c7c0bc
c7c0bc
* Mon Aug 25 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.1-7.20080819
c7c0bc
- update to 1.1-20080819
c7c0bc
c7c0bc
* Wed Jul 30 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.1-6.20080727
c7c0bc
- update to 1.1-20080727
c7c0bc
c7c0bc
* Fri Apr 11 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.1-5.20080316
c7c0bc
- update to 1.1-20080316
c7c0bc
c7c0bc
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1-4.20071028
c7c0bc
- Autorebuild for GCC 4.3
c7c0bc
c7c0bc
* Mon Nov 05 2007 Miroslav Lichvar <mlichvar@redhat.com> - 1.1-3.20071028
c7c0bc
- update to 1.1-20071028
c7c0bc
- fix multilib conflicts (#341001)
c7c0bc
- use shared library, drop static
c7c0bc
- merge review fixes (#225693)
c7c0bc
c7c0bc
* Fri Aug 17 2007 Harald Hoyer <harald@redhat.com> - 1.1-2.20070704
c7c0bc
- changed license to LGPLv2
c7c0bc
c7c0bc
* Thu Jul  5 2007 Harald Hoyer <harald@redhat.com> - 1.1-1.20070704
c7c0bc
- version 1.1-20070704
c7c0bc
c7c0bc
* Wed Jun 27 2007 Harald Hoyer <harald@redhat.com> - 1.1-1.20070604
c7c0bc
- dialog-1.1-20070604
c7c0bc
c7c0bc
* Wed Feb 28 2007 Harald Hoyer <harald@redhat.com> - 1.1-1.20070227svn
c7c0bc
- version 1.1-20070227
c7c0bc
- added devel subpackage
c7c0bc
- specfile fixes (bug#225693)
c7c0bc
- Resolves: rhbz#225693
c7c0bc
c7c0bc
* Wed Jan 17 2007 Harald Hoyer <harald@redhat.com> - 1.0.20060221-1
c7c0bc
- version 1.0-20060221
c7c0bc
c7c0bc
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.20051107-1.2.2
c7c0bc
- rebuild
c7c0bc
c7c0bc
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.20051107-1.2.1
c7c0bc
- bump again for double-long bug on ppc(64)
c7c0bc
c7c0bc
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.20051107-1.2
c7c0bc
- rebuilt for new gcc4.1 snapshot and glibc changes
c7c0bc
c7c0bc
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c7c0bc
- rebuilt
c7c0bc
c7c0bc
* Wed Nov 16 2005 Harald Hoyer <harald@redhat.com> 1.0-20051107-1
c7c0bc
- version 1.0-20051107
c7c0bc
c7c0bc
* Mon Apr 18 2005 Harald Hoyer <harald@redhat.com> 1.0-20050306-1
c7c0bc
- version 1.0-20050306
c7c0bc
c7c0bc
* Wed Mar 02 2005 Harald Hoyer <harald@redhat.com> 1.0-20050206-1
c7c0bc
- new version 1.0-20050206
c7c0bc
c7c0bc
* Tue Dec 21 2004 Harald Hoyer <harald@redhat.com> 1.0-20041219-1
c7c0bc
- new version 1.0-20041219
c7c0bc
c7c0bc
* Wed Oct 20 2004 Harald Hoyer <harald@redhat.com> 1.0-20040731-3
c7c0bc
- rlandry@redhat.com refined his patch (bug 136374)
c7c0bc
c7c0bc
* Tue Oct 19 2004 Harald Hoyer <harald@redhat.com> 1.0-20040731-2
c7c0bc
- added patch from rlandry@redhat.com which removes extra trailing
c7c0bc
  spaces (bug 136374)
c7c0bc
c7c0bc
* Fri Aug 27 2004 Harald Hoyer <harald@redhat.com> 1.0-20040731-1
c7c0bc
- new version 1.0-20040731
c7c0bc
c7c0bc
* Thu Jul 29 2004 Harald Hoyer <harald@redhat.com> 1.0-20040728-1
c7c0bc
- new version 1.0-20040728
c7c0bc
c7c0bc
* Wed Jul 28 2004 Harald Hoyer <harald@redhat.de> 1.0-20040721-1
c7c0bc
- new version 1.0-20040721
c7c0bc
c7c0bc
* Wed Jun 23 2004 Harald Hoyer <harald@redhat.de> 0.9b.20040606-1
c7c0bc
- new version 0.9b-20040606
c7c0bc
- new Version scheme
c7c0bc
c7c0bc
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
c7c0bc
- rebuilt
c7c0bc
c7c0bc
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
c7c0bc
- rebuilt
c7c0bc
c7c0bc
* Mon Dec 08 2003 Harald Hoyer <harald@redhat.de> 0.9b-20031207.1
c7c0bc
- version 20031207
c7c0bc
c7c0bc
* Thu Nov 27 2003 Harald Hoyer <harald@redhat.de> 0.9b-20031126.1
c7c0bc
- version 20031126
c7c0bc
c7c0bc
* Mon Nov 24 2003 Harald Hoyer <harald@redhat.de> 0.9b-20031002.2
c7c0bc
- added gettext BuildReq (#109192)
c7c0bc
c7c0bc
* Wed Oct  8 2003 Harald Hoyer <harald@redhat.de> 0.9b-20031002.1
c7c0bc
- version 20031002
c7c0bc
c7c0bc
* Thu Sep 11 2003 Harald Hoyer <harald@redhat.de> 0.9b-20030910.1
c7c0bc
- new version 20030910 which also fixes #104236
c7c0bc
c7c0bc
* Tue Aug 12 2003 Harald Hoyer <harald@redhat.de> 0.9b-20020814.5
c7c0bc
- --with-ncursesw
c7c0bc
c7c0bc
* Fri Aug  8 2003 Elliot Lee <sopwith@redhat.com> 0.9b-20020814.4
c7c0bc
- Rebuilt
c7c0bc
c7c0bc
* Tue Jun 17 2003 Harald Hoyer <harald@redhat.de> 0.9b-20020814.3
c7c0bc
- rebuilt
c7c0bc
c7c0bc
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
c7c0bc
- rebuilt
c7c0bc
c7c0bc
* Thu Jan 23 2003 Tim Powers <timp@redhat.com> 0.9b-20020814.2
c7c0bc
- rebuild
c7c0bc
c7c0bc
* Tue Nov 05 2002 Harald Hoyer <harald@redhat.de> 0.9b-20020814.1
c7c0bc
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
c7c0bc
- automated rebuild
c7c0bc
c7c0bc
* Sun May 26 2002 Tim Powers <timp@redhat.com>
c7c0bc
- automated rebuild
c7c0bc
c7c0bc
* Wed May 22 2002 Harald Hoyer <harald@redhat.de> 0.9b-20020519.1
c7c0bc
- update to dialog-0.9b-20020519
c7c0bc
c7c0bc
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
c7c0bc
- automated rebuild
c7c0bc
c7c0bc
* Mon Jun 18 2001 Harald Hoyer <harald@redhat.de>
c7c0bc
- update to 20010527
c7c0bc
- added ncurses-devel dependency (#44733)
c7c0bc
- removed perl dependency
c7c0bc
c7c0bc
* Tue Jan 09 2001 Harald Hoyer <harald@redhat.com>
c7c0bc
- update to 20001217
c7c0bc
c7c0bc
* Mon Aug  7 2000 Bill Nottingham <notting@redhat.com>
c7c0bc
- fix one of the examples (#14073)
c7c0bc
c7c0bc
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
c7c0bc
- automatic rebuild
c7c0bc
c7c0bc
* Wed Apr  5 2000 Bill Nottingham <notting@redhat.com>
c7c0bc
- rebuild against current ncurses/readline
c7c0bc
c7c0bc
* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
c7c0bc
- handle compressed man pages
c7c0bc
c7c0bc
* Thu Jan 20 2000 Bill Nottingham <notting@redhat.com>
c7c0bc
- fix loop patch for reading from pipe
c7c0bc
c7c0bc
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
c7c0bc
- auto rebuild in the new build environment (release 14)
c7c0bc
c7c0bc
* Fri Dec 18 1998 Bill Nottingham <notting@redhat.com>
c7c0bc
- build for 6.0
c7c0bc
c7c0bc
* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
c7c0bc
- build root
c7c0bc
c7c0bc
* Thu May 7 1998 Michael Maher <mike@redhat.com> 
c7c0bc
- Added Sean Reifschneider <jafo@tummy.com> patches for 
c7c0bc
  infinite loop problems.
c7c0bc
c7c0bc
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
c7c0bc
- translations modified for de, fr, tr
c7c0bc
c7c0bc
* Wed Apr 15 1998 Erik Troan <ewt@redhat.com>
c7c0bc
- built against new ncurses
c7c0bc
c7c0bc
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
c7c0bc
- built against glibc