dialog.spec 3.0 KB

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