dialog.spec 2.9 KB

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