summaryrefslogtreecommitdiff
path: root/packaging/dialog.spec
blob: 2eabefee24e9ddb45db3085cc2984e291a62a970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
%define dialogsubversion 20140219

Summary:	    A utility for creating interactive TTY boxes from shell script
Name:		    dialog
Version:	    1.2
Release:	    0
License:	    LGPL-2.1
Group:		    Base/Utilities
URL:		    http://invisible-island.net/dialog/dialog.html
Source:		    ftp://invisible-island.net/dialog/%{name}-%{version}-%{dialogsubversion}.tgz
Source1001:	    %{name}.manifest
BuildRequires:	    findutils
BuildRequires:	    gettext
BuildRequires:	    libtool
BuildRequires:	    ncurses-devel
Requires(post):	    /sbin/ldconfig
Requires(postun):   /sbin/ldconfig


%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}-%{version} = %{version}
Requires:	    ncurses-devel
Requires(post):	    /sbin/ldconfig
Requires(postun):   /sbin/ldconfig

%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 %{name}-%{version}-%{dialogsubversion}
cp %{SOURCE1001} .

%build
%configure \
	--includedir=%{_includedir}/dialog \
	--enable-included-msgs \
	--enable-nls \
	--enable-widec \
	--with-libtool \
	--with-ncurses \
	--with-ncursesw
make %{?_smp_mflags}


%install
%make_install
rm -rf %{buildroot}%{_mandir}

%find_lang %{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post devel -p /sbin/ldconfig

%postun devel -p /sbin/ldconfig

%lang_package

%files -f %{name}.lang
%manifest %{name}.manifest
%defattr(-,root,root,-)
%license COPYING
%{_bindir}/dialog
%{_libdir}/libdialog.so.*

%files devel
%defattr(-,root,root,-)
%{_bindir}/dialog-config
%{_includedir}/dialog
%{_libdir}/libdialog.so