/contrib/dialog/package/dialog.spec

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 79 lines · 65 code · 14 blank · 0 comment · 0 complexity · 4e38acd841f4fed9b1cb570bde4597cd MD5 · raw file

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