xref: /freebsd/contrib/dialog/package/dialog.spec (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
17a1c0d96SNathan WhitehornSummary: dialog - display dialog boxes from shell scripts
27a1c0d96SNathan Whitehorn%define AppProgram dialog
3f4f33ea0SBaptiste Daroussin%define AppVersion 1.3
4*a96ef450SBaptiste Daroussin%define AppRelease 20210117
57a1c0d96SNathan Whitehorn%define ActualProg c%{AppProgram}
6*a96ef450SBaptiste Daroussin# $XTermId: dialog.spec,v 1.146 2021/01/16 16:21:23 tom Exp $
77a1c0d96SNathan WhitehornName: %{ActualProg}
87a1c0d96SNathan WhitehornVersion: %{AppVersion}
97a1c0d96SNathan WhitehornRelease: %{AppRelease}
107a1c0d96SNathan WhitehornLicense: LGPL
11f4f33ea0SBaptiste DaroussinGroup: Applications/System
12f4f33ea0SBaptiste DaroussinURL: ftp://ftp.invisible-island.net/%{AppProgram}
137a1c0d96SNathan WhitehornSource0: %{AppProgram}-%{AppVersion}-%{AppRelease}.tgz
147a1c0d96SNathan WhitehornPackager: Thomas Dickey <dickey@invisible-island.net>
157a1c0d96SNathan Whitehorn
16*a96ef450SBaptiste Daroussin%package	devel
17*a96ef450SBaptiste DaroussinSummary:	Development headers/library for the dialog package.
18*a96ef450SBaptiste DaroussinRequires:	%{ActualProg}, ncurses-devel
19*a96ef450SBaptiste Daroussin
207a1c0d96SNathan Whitehorn%description
21f4f33ea0SBaptiste DaroussinDialog is a program that will let you present a variety of questions or
22f4f33ea0SBaptiste Daroussindisplay messages using dialog boxes from a shell script.  These types
23f4f33ea0SBaptiste Daroussinof dialog boxes are implemented (though not all are necessarily compiled
24f4f33ea0SBaptiste Daroussininto dialog):
257a1c0d96SNathan Whitehorn
26f4f33ea0SBaptiste Daroussin     buildlist, calendar, checklist, dselect, editbox, form, fselect,
27f4f33ea0SBaptiste Daroussin     gauge, infobox, inputbox, inputmenu, menu, mixedform,
28f4f33ea0SBaptiste Daroussin     mixedgauge, msgbox (message), passwordbox, passwordform, pause,
29f4f33ea0SBaptiste Daroussin     prgbox, programbox, progressbox, radiolist, rangebox, tailbox,
30f4f33ea0SBaptiste Daroussin     tailboxbg, textbox, timebox, treeview, and yesno (yes/no).
317a1c0d96SNathan Whitehorn
327a1c0d96SNathan WhitehornThis package installs as "cdialog" to avoid conflict with other packages.
33*a96ef450SBaptiste Daroussin
34*a96ef450SBaptiste Daroussin%description devel
35*a96ef450SBaptiste DaroussinThis is the development package "cdialog", which includes the header files,
36*a96ef450SBaptiste Daroussinthe linkage information and library documentation.
377a1c0d96SNathan Whitehorn%prep
387a1c0d96SNathan Whitehorn
392a3e3873SBaptiste Daroussin%define debug_package %{nil}
402a3e3873SBaptiste Daroussin
417a1c0d96SNathan Whitehorn%setup -q -n %{AppProgram}-%{AppVersion}-%{AppRelease}
427a1c0d96SNathan Whitehorn
437a1c0d96SNathan Whitehorn%build
447a1c0d96SNathan Whitehorn
45f4f33ea0SBaptiste Daroussincp -v package/dialog.map package/%{ActualProg}.map
46f4f33ea0SBaptiste Daroussin
477a1c0d96SNathan WhitehornINSTALL_PROGRAM='${INSTALL}' \
48f4f33ea0SBaptiste Daroussin%configure \
497a1c0d96SNathan Whitehorn  --target %{_target_platform} \
507a1c0d96SNathan Whitehorn  --prefix=%{_prefix} \
517a1c0d96SNathan Whitehorn  --bindir=%{_bindir} \
527a1c0d96SNathan Whitehorn  --libdir=%{_libdir} \
537a1c0d96SNathan Whitehorn  --mandir=%{_mandir} \
547a1c0d96SNathan Whitehorn  --with-package=%{ActualProg} \
557a1c0d96SNathan Whitehorn  --enable-header-subdir \
567a1c0d96SNathan Whitehorn  --enable-nls \
577a1c0d96SNathan Whitehorn  --enable-widec \
58f4f33ea0SBaptiste Daroussin  --with-shared \
597a1c0d96SNathan Whitehorn  --with-ncursesw \
60f4f33ea0SBaptiste Daroussin  --with-versioned-syms \
617a1c0d96SNathan Whitehorn  --disable-rpath-hack
627a1c0d96SNathan Whitehorn
637a1c0d96SNathan Whitehornmake
647a1c0d96SNathan Whitehorn
657a1c0d96SNathan Whitehorn%install
667a1c0d96SNathan Whitehorn[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
677a1c0d96SNathan Whitehorn
68f4f33ea0SBaptiste Daroussinmake install      DESTDIR=$RPM_BUILD_ROOT
697a1c0d96SNathan Whitehornmake install-full DESTDIR=$RPM_BUILD_ROOT
707a1c0d96SNathan Whitehorn
717a1c0d96SNathan Whitehornstrip $RPM_BUILD_ROOT%{_bindir}/%{ActualProg}
72f4f33ea0SBaptiste Daroussinchmod 755 $RPM_BUILD_ROOT%{_libdir}/lib%{ActualProg}.so.*
737a1c0d96SNathan Whitehorn
747a1c0d96SNathan Whitehorn%clean
757a1c0d96SNathan Whitehorn[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
767a1c0d96SNathan Whitehorn
777a1c0d96SNathan Whitehorn%files
787a1c0d96SNathan Whitehorn%defattr(-,root,root)
797a1c0d96SNathan Whitehorn%{_bindir}/%{ActualProg}
807a1c0d96SNathan Whitehorn%{_mandir}/man1/%{ActualProg}.*
81*a96ef450SBaptiste Daroussin%{_libdir}/lib%{ActualProg}.so.*
82*a96ef450SBaptiste Daroussin%{_datadir}/locale/*/LC_MESSAGES/%{ActualProg}.mo
83*a96ef450SBaptiste Daroussin
84*a96ef450SBaptiste Daroussin%files devel
85*a96ef450SBaptiste Daroussin%defattr(-,root,root)
86*a96ef450SBaptiste Daroussin%{_bindir}/%{ActualProg}-config
877a1c0d96SNathan Whitehorn%{_includedir}/%{ActualProg}.h
887a1c0d96SNathan Whitehorn%{_includedir}/%{ActualProg}/dlg_colors.h
897a1c0d96SNathan Whitehorn%{_includedir}/%{ActualProg}/dlg_config.h
907a1c0d96SNathan Whitehorn%{_includedir}/%{ActualProg}/dlg_keys.h
91*a96ef450SBaptiste Daroussin%{_libdir}/lib%{ActualProg}.so
92*a96ef450SBaptiste Daroussin%{_mandir}/man3/%{ActualProg}.*
937a1c0d96SNathan Whitehorn
947a1c0d96SNathan Whitehorn%changelog
957a1c0d96SNathan Whitehorn# each patch should add its ChangeLog entries here
967a1c0d96SNathan Whitehorn
97*a96ef450SBaptiste Daroussin* Wed Jul 24 2019 Thomas Dickey
98*a96ef450SBaptiste Daroussin- split-out "-devel" package
99*a96ef450SBaptiste Daroussin
100f4f33ea0SBaptiste Daroussin* Sat Dec 09 2017 Thomas Dickey
101f4f33ea0SBaptiste Daroussin- update ftp url
102f4f33ea0SBaptiste Daroussin
103f4f33ea0SBaptiste Daroussin* Thu Apr 21 2016 Thomas Dickey
104f4f33ea0SBaptiste Daroussin- remove stray call to libtool
105f4f33ea0SBaptiste Daroussin
1062a3e3873SBaptiste Daroussin* Tue Oct 18 2011 Thomas Dickey
1072a3e3873SBaptiste Daroussin- add executable permissions for shared libraries, discard ".la" file.
1082a3e3873SBaptiste Daroussin
1097a1c0d96SNathan Whitehorn* Thu Dec 30 2010 Thomas Dickey
1107a1c0d96SNathan Whitehorn- initial version
111