ne.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ##
  2. ## ne.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 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. # package information
  26. Name: ne
  27. Summary: Textual Beginners Editor
  28. URL: http://ne.dsi.unimi.it/
  29. Vendor: Todd M. Lewis, Sebastiano Vigna
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: EVAL
  33. Group: Editor
  34. License: GPL
  35. Version: 1.36
  36. Release: 20040817
  37. # list of sources
  38. Source0: http://ne.dsi.unimi.it/ne-%{version}.tar.gz
  39. Patch0: ne.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. BuildPreReq: ncurses
  46. PreReq: ncurses
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. NE is a text editor based on the POSIX standard that runs (we hope)
  51. on almost any UN*X machine. NE is easy to use for the beginner, but
  52. powerful and fully configurable for the wizard, and most sparing in
  53. its resource usage. If you have the resources and the patience to
  54. use Emacs or the right mental twist to use Vi then probably NE is
  55. not for you. However, being fast, small, powerful and simple to use,
  56. NE is ideal for email, editing through phone line (or slow GSM/GPRS)
  57. connections and so on. Moreover, the internal text representation is
  58. very compact and you can easily load and modify very large files.
  59. %track
  60. prog ne = {
  61. version = %{version}
  62. url = http://ne.dsi.unimi.it/
  63. regex = ne-(__VER__)\.tar\.gz
  64. }
  65. %prep
  66. %setup -q
  67. %patch -p0
  68. %build
  69. ( cd src
  70. %{l_make} %{l_mflags} \
  71. CC="%{l_cc}" \
  72. OPTS="%{l_cflags -O} %{l_cppflags ncurses .}" \
  73. LIBS="%{l_ldflags} -lncurses" \
  74. NE_NOWCHAR=1
  75. ) || exit $?
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. %{l_shtool} mkdir -f -p - m 755 \
  79. $RPM_BUILD_ROOT%{l_prefix}/bin \
  80. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  81. %{l_shtool} install -c -s -m 755 \
  82. src/ne $RPM_BUILD_ROOT%{l_prefix}/bin/
  83. %{l_shtool} install -c -m 644 \
  84. doc/ne.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  85. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  86. %files -f files
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT