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