From af95948fe44d05626dec75e2f3b813f2804e583f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 30 2018 04:47:44 +0000 Subject: import dialog-1.2-5.20130523.el7 --- diff --git a/.dialog.metadata b/.dialog.metadata new file mode 100644 index 0000000..b11cd71 --- /dev/null +++ b/.dialog.metadata @@ -0,0 +1 @@ +54768b8443af3de2e6cd16073ec666f19d4ded7a SOURCES/dialog-1.2-20130523.tgz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a42cc87 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/dialog-1.2-20130523.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/dialog-formkeys.patch b/SOURCES/dialog-formkeys.patch new file mode 100644 index 0000000..56c3548 --- /dev/null +++ b/SOURCES/dialog-formkeys.patch @@ -0,0 +1,15 @@ +diff -up dialog-1.3-20160424/formbox.c.orig dialog-1.3-20160424/formbox.c +--- dialog-1.3-20160424/formbox.c.orig 2013-09-02 19:02:05.000000000 +0200 ++++ dialog-1.3-20160424/formbox.c 2016-08-23 11:25:56.273045091 +0200 +@@ -447,9 +447,11 @@ prev_valid_buttonindex(int state, int ex + DLG_KEYS_DATA( DLGK_FIELD_PREV, KEY_BTAB ), \ + DLG_KEYS_DATA( DLGK_ITEM_NEXT, CHR_NEXT ), \ + DLG_KEYS_DATA( DLGK_ITEM_NEXT, KEY_DOWN ), \ ++ DLG_KEYS_DATA( DLGK_ITEM_NEXT, KEY_RIGHT ), \ + DLG_KEYS_DATA( DLGK_ITEM_NEXT, KEY_NEXT ), \ + DLG_KEYS_DATA( DLGK_ITEM_PREV, CHR_PREVIOUS ), \ + DLG_KEYS_DATA( DLGK_ITEM_PREV, KEY_PREVIOUS ), \ ++ DLG_KEYS_DATA( DLGK_ITEM_PREV, KEY_LEFT ), \ + DLG_KEYS_DATA( DLGK_ITEM_PREV, KEY_UP ), \ + DLG_KEYS_DATA( DLGK_PAGE_NEXT, KEY_NPAGE ), \ + DLG_KEYS_DATA( DLGK_PAGE_PREV, KEY_PPAGE ) diff --git a/SOURCES/dialog-incdir.patch b/SOURCES/dialog-incdir.patch new file mode 100644 index 0000000..f31f57b --- /dev/null +++ b/SOURCES/dialog-incdir.patch @@ -0,0 +1,23 @@ +diff -up dialog-1.1-20110707/dialog-config.in.incdir dialog-1.1-20110707/dialog-config.in +--- dialog-1.1-20110707/dialog-config.in.incdir 2011-01-06 10:38:03.000000000 +0100 ++++ dialog-1.1-20110707/dialog-config.in 2011-07-26 13:00:02.692038027 +0200 +@@ -35,6 +35,7 @@ bindir="@bindir@" + libdir="@libdir@" + datadir="@datadir@" + mandir="@mandir@" ++includedir="@includedir@" + + THIS="@PACKAGE@" + +@@ -67,10 +68,7 @@ while test $# -gt 0; do + ;; + # compile/link + --cflags) +- INCS= +- if test "${prefix}/include" != /usr/include ; then +- INCS="-I${prefix}/include" +- fi ++ INCS="-I$includedir" + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + $INCS + ENDECHO diff --git a/SOURCES/dialog-libs.patch b/SOURCES/dialog-libs.patch new file mode 100644 index 0000000..3a0980a --- /dev/null +++ b/SOURCES/dialog-libs.patch @@ -0,0 +1,17 @@ +diff -up dialog-1.1-20120706/makefile.in.libs dialog-1.1-20120706/makefile.in +--- dialog-1.1-20120706/makefile.in.libs 2012-02-16 01:35:37.000000000 +0100 ++++ dialog-1.1-20120706/makefile.in 2012-11-13 19:53:14.193243663 +0100 +@@ -178,11 +178,11 @@ dialog$o \ + $(OBJECTS) : $(srcdir)/dialog.h $(srcdir)/dlg_keys.h dlg_config.h VERSION + + $(LIB) : $(LIB_OBJECT) +- $(LIBTOOL_CREATE) $(LIB) $(LIB_OBJECT) ++ $(LIBTOOL_CREATE) $(LIB) $(LIB_OBJECT) $(LIBS) + $(RANLIB) $@ + + $(PROG)$x : $(LIB) dialog$o @INTLDIR_MAKE@ @INTLLIBS@ +- $(LINK) -o $@ dialog$o -L. -l@PACKAGE@ $(LDFLAGS) $(LIBS) ++ $(LINK) -o $@ dialog$o -L. -l@PACKAGE@ $(LDFLAGS) + + clean \ + distclean \ diff --git a/SOURCES/dialog-multilib.patch b/SOURCES/dialog-multilib.patch new file mode 100644 index 0000000..ebf73a7 --- /dev/null +++ b/SOURCES/dialog-multilib.patch @@ -0,0 +1,21 @@ +diff -up dialog-1.2-20121230/dialog-config.in.multilib dialog-1.2-20121230/dialog-config.in +--- dialog-1.2-20121230/dialog-config.in.multilib 2013-03-18 15:43:10.639021412 +0100 ++++ dialog-1.2-20121230/dialog-config.in 2013-03-18 15:44:08.519065774 +0100 +@@ -33,7 +33,7 @@ exec_prefix="@exec_prefix@" + datarootdir="@datarootdir@" + + bindir="@bindir@" +-libdir="@libdir@" ++libdir= + datadir="@datadir@" + mandir="@mandir@" + includedir="@includedir@" +@@ -76,7 +76,7 @@ ENDECHO + ;; + --libs) + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO +- -L${exec_prefix}/lib -l${THIS} @LIBS@ ++ -l${THIS} + ENDECHO + ;; + # identification diff --git a/SPECS/dialog.spec b/SPECS/dialog.spec new file mode 100644 index 0000000..26260ec --- /dev/null +++ b/SPECS/dialog.spec @@ -0,0 +1,304 @@ +Summary: A utility for creating TTY dialog boxes +Name: dialog +%global dialogsubversion 20130523 +Version: 1.2 +Release: 5.%{dialogsubversion}%{?dist} +License: LGPLv2 +Group: Applications/System +URL: http://invisible-island.net/dialog/dialog.html +Source: ftp://invisible-island.net/dialog/dialog-%{version}-%{dialogsubversion}.tgz +BuildRequires: ncurses-devel gettext findutils libtool +Patch1: dialog-incdir.patch +Patch2: dialog-multilib.patch +Patch3: dialog-libs.patch +Patch4: dialog-formkeys.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}%{?_isa} = %{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 dialog-%{version}-%{dialogsubversion} +%patch1 -p1 -b .incdir +%patch2 -p1 -b .multilib +%patch3 -p1 -b .libs +%patch4 -p1 -b .formkeys + +%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 install DESTDIR=$RPM_BUILD_ROOT + +chmod 755 $RPM_BUILD_ROOT%{_libdir}/libdialog.so.*.*.* +rm -f $RPM_BUILD_ROOT%{_libdir}/libdialog.{,l}a + +%find_lang %{name} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files -f %{name}.lang +%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 +%{_mandir}/man3/dialog.* + +%changelog +* Fri Apr 06 2018 Miroslav Lichvar - 1.2-5.20130523 +- add left/right arrow keys to navigation bindings of form window (#1368333) + +* Fri Jan 24 2014 Daniel Mach - 1.2-4.20130523 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.2-3.20130523 +- Mass rebuild 2013-12-27 + +* Fri May 24 2013 Miroslav Lichvar - 1.2-2.20130523 +- update to 1.2-20130523 + +* Mon Mar 18 2013 Miroslav Lichvar - 1.2-1.20121230 +- update to 1.2-20121230 + +* Wed Feb 13 2013 Fedora Release Engineering - 1.1-18.20120706 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Nov 13 2012 Miroslav Lichvar - 1.1-17.20120706 +- update to 1.1-20120706 +- remove unnecessary macros + +* Fri Jul 27 2012 Fedora Release Engineering - 1.1-16.20110707 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.1-15.20110707 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Oct 26 2011 Fedora Release Engineering - 1.1-14.20110707 +- Rebuilt for glibc bug#747377 + +* Tue Jul 26 2011 Miroslav Lichvar - 1.1-13.20110707 +- update to 1.1-20110707 + +* Tue Feb 08 2011 Fedora Release Engineering - 1.1-12.20100428 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed May 12 2010 Miroslav Lichvar - 1.1-11.20100428 +- update to 1.1-20100428 + +* Thu Feb 04 2010 Miroslav Lichvar - 1.1-10.20100119 +- update to 1.1-20100119 + +* Fri Jul 24 2009 Fedora Release Engineering - 1.1-9.20080819 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 1.1-8.20080819 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Aug 25 2008 Miroslav Lichvar - 1.1-7.20080819 +- update to 1.1-20080819 + +* Wed Jul 30 2008 Miroslav Lichvar - 1.1-6.20080727 +- update to 1.1-20080727 + +* Fri Apr 11 2008 Miroslav Lichvar - 1.1-5.20080316 +- update to 1.1-20080316 + +* Tue Feb 19 2008 Fedora Release Engineering - 1.1-4.20071028 +- Autorebuild for GCC 4.3 + +* Mon Nov 05 2007 Miroslav Lichvar - 1.1-3.20071028 +- update to 1.1-20071028 +- fix multilib conflicts (#341001) +- use shared library, drop static +- merge review fixes (#225693) + +* Fri Aug 17 2007 Harald Hoyer - 1.1-2.20070704 +- changed license to LGPLv2 + +* Thu Jul 5 2007 Harald Hoyer - 1.1-1.20070704 +- version 1.1-20070704 + +* Wed Jun 27 2007 Harald Hoyer - 1.1-1.20070604 +- dialog-1.1-20070604 + +* Wed Feb 28 2007 Harald Hoyer - 1.1-1.20070227svn +- version 1.1-20070227 +- added devel subpackage +- specfile fixes (bug#225693) +- Resolves: rhbz#225693 + +* Wed Jan 17 2007 Harald Hoyer - 1.0.20060221-1 +- version 1.0-20060221 + +* Wed Jul 12 2006 Jesse Keating - 1.0.20051107-1.2.2 +- rebuild + +* Fri Feb 10 2006 Jesse Keating - 1.0.20051107-1.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 1.0.20051107-1.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Nov 16 2005 Harald Hoyer 1.0-20051107-1 +- version 1.0-20051107 + +* Mon Apr 18 2005 Harald Hoyer 1.0-20050306-1 +- version 1.0-20050306 + +* Wed Mar 02 2005 Harald Hoyer 1.0-20050206-1 +- new version 1.0-20050206 + +* Tue Dec 21 2004 Harald Hoyer 1.0-20041219-1 +- new version 1.0-20041219 + +* Wed Oct 20 2004 Harald Hoyer 1.0-20040731-3 +- rlandry@redhat.com refined his patch (bug 136374) + +* Tue Oct 19 2004 Harald Hoyer 1.0-20040731-2 +- added patch from rlandry@redhat.com which removes extra trailing + spaces (bug 136374) + +* Fri Aug 27 2004 Harald Hoyer 1.0-20040731-1 +- new version 1.0-20040731 + +* Thu Jul 29 2004 Harald Hoyer 1.0-20040728-1 +- new version 1.0-20040728 + +* Wed Jul 28 2004 Harald Hoyer 1.0-20040721-1 +- new version 1.0-20040721 + +* Wed Jun 23 2004 Harald Hoyer 0.9b.20040606-1 +- new version 0.9b-20040606 +- new Version scheme + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Mon Dec 08 2003 Harald Hoyer 0.9b-20031207.1 +- version 20031207 + +* Thu Nov 27 2003 Harald Hoyer 0.9b-20031126.1 +- version 20031126 + +* Mon Nov 24 2003 Harald Hoyer 0.9b-20031002.2 +- added gettext BuildReq (#109192) + +* Wed Oct 8 2003 Harald Hoyer 0.9b-20031002.1 +- version 20031002 + +* Thu Sep 11 2003 Harald Hoyer 0.9b-20030910.1 +- new version 20030910 which also fixes #104236 + +* Tue Aug 12 2003 Harald Hoyer 0.9b-20020814.5 +- --with-ncursesw + +* Fri Aug 8 2003 Elliot Lee 0.9b-20020814.4 +- Rebuilt + +* Tue Jun 17 2003 Harald Hoyer 0.9b-20020814.3 +- rebuilt + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Thu Jan 23 2003 Tim Powers 0.9b-20020814.2 +- rebuild + +* Tue Nov 05 2002 Harald Hoyer 0.9b-20020814.1 +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Sun May 26 2002 Tim Powers +- automated rebuild + +* Wed May 22 2002 Harald Hoyer 0.9b-20020519.1 +- update to dialog-0.9b-20020519 + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Mon Jun 18 2001 Harald Hoyer +- update to 20010527 +- added ncurses-devel dependency (#44733) +- removed perl dependency + +* Tue Jan 09 2001 Harald Hoyer +- update to 20001217 + +* Mon Aug 7 2000 Bill Nottingham +- fix one of the examples (#14073) + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Wed Apr 5 2000 Bill Nottingham +- rebuild against current ncurses/readline + +* Thu Feb 3 2000 Bill Nottingham +- handle compressed man pages + +* Thu Jan 20 2000 Bill Nottingham +- fix loop patch for reading from pipe + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 14) + +* Fri Dec 18 1998 Bill Nottingham +- build for 6.0 + +* Tue Aug 11 1998 Jeff Johnson +- build root + +* Thu May 7 1998 Michael Maher +- Added Sean Reifschneider patches for + infinite loop problems. + +* Fri Apr 24 1998 Prospector System +- translations modified for de, fr, tr + +* Wed Apr 15 1998 Erik Troan +- built against new ncurses + +* Thu Jul 10 1997 Erik Troan +- built against glibc