commit d9de6d7626843dc3ae342a4528add56f368e2755 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:36:53 2019 -0400 Package init diff --git a/dialog-1.3-20180621.tgz b/dialog-1.3-20180621.tgz new file mode 100644 index 0000000..093fe04 Binary files /dev/null and b/dialog-1.3-20180621.tgz differ diff --git a/dialog-incdir.patch b/dialog-incdir.patch new file mode 100644 index 0000000..f31f57b --- /dev/null +++ b/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/dialog-libs.patch b/dialog-libs.patch new file mode 100644 index 0000000..513c95f --- /dev/null +++ b/dialog-libs.patch @@ -0,0 +1,12 @@ +diff -up dialog-1.3-20170131/makefile.in.libs dialog-1.3-20170131/makefile.in +--- dialog-1.3-20170131/makefile.in.libs 2017-02-01 13:24:22.300746602 +0100 ++++ dialog-1.3-20170131/makefile.in 2017-02-01 13:25:22.200905261 +0100 +@@ -203,7 +203,7 @@ dialog$o \ + $(OBJECTS) : $(srcdir)/dialog.h $(srcdir)/dlg_keys.h dlg_config.h VERSION + + $(PROG)$x : $(LIB) dialog$o @INTLDIR_MAKE@ @INTLLIBS@ +- $(LINK) -o $@ dialog$o -L. -l@PACKAGE@ $(CFLAGS) $(LDFLAGS) $(LIBS) ++ $(LINK) -o $@ dialog$o -L. -l@PACKAGE@ $(CFLAGS) $(LDFLAGS) + + clean \ + distclean \ diff --git a/dialog-multilib.patch b/dialog-multilib.patch new file mode 100644 index 0000000..ebf73a7 --- /dev/null +++ b/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/dialog.spec b/dialog.spec new file mode 100644 index 0000000..0a436a4 --- /dev/null +++ b/dialog.spec @@ -0,0 +1,91 @@ +%global dialogsubversion 20180621 +Name: dialog +Version: 1.3 +Release: 16 +Summary: A utility which displays dialog boxes from shell scripts +License: LGPLv2 +URL: https://invisible-island.net/dialog/dialog.html +Source0: https://invisible-island.net/datafiles/release/dialog-%{version}-%{dialogsubversion}.tgz +Patch0: dialog-incdir.patch +Patch1: dialog-multilib.patch +Patch2: dialog-libs.patch + +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 +* Thu Sep 19 2019 openEuler Buildteam - 1.3-16 +- Package init \ No newline at end of file