dialog.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## dialog.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # version information
  25. %define V_maj 1.0
  26. %define V_min 20051107
  27. # package information
  28. Name: dialog
  29. Summary: Curses Dialog Scripting Tool
  30. URL: http://invisible-island.net/dialog/dialog.html
  31. Vendor: Savio Lam
  32. Packager: OpenPKG
  33. Distribution: OpenPKG
  34. Class: BASE
  35. Group: Terminal
  36. License: BSD
  37. Version: %{V_maj}.%{V_min}
  38. Release: 20051108
  39. # list of sources
  40. Source0: ftp://invisible-island.net/dialog/dialog-%{V_maj}-%{V_min}.tgz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040130, ncurses
  45. PreReq: OpenPKG, openpkg >= 20040130, ncurses
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Though similar in style to CDK, it is different, being a
  50. script-interpreter which provides a set of curses widgets. Widgets
  51. are objects whose appearance and behavior can be customized. There
  52. is a much-reduced variation of dialog, called lxdialog, which is
  53. used in Linux kernel configuration.
  54. %track
  55. prog dialog = {
  56. version = %{V_maj}-%{V_min}
  57. url = ftp://invisible-island.net/dialog/
  58. regex = dialog-(__VER__)\.tgz
  59. }
  60. %prep
  61. %setup -q -n dialog-%{V_maj}-%{V_min}
  62. %build
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. CPPFLAGS="%{l_cppflags}" \
  66. LDFLAGS="%{l_ldflags}" \
  67. ./configure \
  68. --prefix=%{l_prefix} \
  69. --with-ncurses \
  70. --with-curses-dir=%{l_prefix} \
  71. --disable-nls
  72. %{l_make} %{l_mflags -O}
  73. %install
  74. rm -rf $RPM_BUILD_ROOT
  75. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  76. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  77. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  78. %files -f files
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT