Package init
This commit is contained in:
commit
d9de6d7626
BIN
dialog-1.3-20180621.tgz
Normal file
BIN
dialog-1.3-20180621.tgz
Normal file
Binary file not shown.
23
dialog-incdir.patch
Normal file
23
dialog-incdir.patch
Normal file
@ -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
|
||||
12
dialog-libs.patch
Normal file
12
dialog-libs.patch
Normal file
@ -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 \
|
||||
21
dialog-multilib.patch
Normal file
21
dialog-multilib.patch
Normal file
@ -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
|
||||
91
dialog.spec
Normal file
91
dialog.spec
Normal file
@ -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 <buildteam@openeuler.org> - 1.3-16
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user