xref: /freebsd/contrib/dialog/package/dialog.spec (revision 724b4bfdf1306e4f2c451b6d146fe0fe0353b2c8)
1Summary: dialog - display dialog boxes from shell scripts
2%define AppProgram dialog
3%define AppVersion 1.1
4%define AppRelease 20120706
5%define ActualProg c%{AppProgram}
6# $XTermId: dialog.spec,v 1.38 2012/07/06 16:51:44 tom Exp $
7Name: %{ActualProg}
8Version: %{AppVersion}
9Release: %{AppRelease}
10License: LGPL
11Group: Applications/Development
12URL: ftp://invisible-island.net/%{AppProgram}
13Source0: %{AppProgram}-%{AppVersion}-%{AppRelease}.tgz
14Packager: Thomas Dickey <dickey@invisible-island.net>
15
16%description
17Dialog is a program that will let you to present a variety of questions
18or display messages using dialog boxes  from  a  shell  script.   These
19types  of  dialog boxes are implemented (though not all are necessarily
20compiled into dialog):
21
22      calendar, checklist, dselect, editbox, form, fselect, gauge,
23      infobox, inputbox, inputmenu, menu, mixedform, mixedgauge,
24      msgbox (message), passwordbox, passwordform, pause, progressbox,
25      radiolist, tailbox, tailboxbg, textbox, timebox, and yesno
26      (yes/no).
27
28This package installs as "cdialog" to avoid conflict with other packages.
29%prep
30
31%setup -q -n %{AppProgram}-%{AppVersion}-%{AppRelease}
32
33%build
34
35INSTALL_PROGRAM='${INSTALL}' \
36	./configure \
37		--target %{_target_platform} \
38		--prefix=%{_prefix} \
39		--bindir=%{_bindir} \
40		--libdir=%{_libdir} \
41		--mandir=%{_mandir} \
42		--with-package=%{ActualProg} \
43		--enable-header-subdir \
44		--enable-nls \
45		--enable-widec \
46		--with-libtool \
47		--with-ncursesw \
48		--disable-rpath-hack
49
50make
51
52%install
53[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
54
55make install-full               DESTDIR=$RPM_BUILD_ROOT
56libtool --finish %{_libdir}
57
58strip $RPM_BUILD_ROOT%{_bindir}/%{ActualProg}
59chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib%{ActualProg}.so.*.*.*
60rm -f $RPM_BUILD_ROOT%{_libdir}/lib%{ActualProg}.la
61
62%clean
63[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(-,root,root)
67%{_bindir}/%{ActualProg}
68%{_bindir}/%{ActualProg}-config
69%{_mandir}/man1/%{ActualProg}.*
70%{_mandir}/man3/%{ActualProg}.*
71%{_includedir}/%{ActualProg}.h
72%{_includedir}/%{ActualProg}/dlg_colors.h
73%{_includedir}/%{ActualProg}/dlg_config.h
74%{_includedir}/%{ActualProg}/dlg_keys.h
75%{_libdir}/lib%{ActualProg}.*
76%{_datadir}/locale/*/LC_MESSAGES/%{ActualProg}.mo
77
78%changelog
79# each patch should add its ChangeLog entries here
80
81* Tue Oct 18 2011 Thomas Dickey
82- add executable permissions for shared libraries, discard ".la" file.
83
84* Thu Dec 30 2010 Thomas Dickey
85- initial version
86