vile.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##
  2. ## vile.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 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 version
  26. %define V_base 9.4
  27. %define V_patch1 a
  28. %define V_patch2 b
  29. %define V_patch3 c
  30. %define V_patchL %{V_patch3}
  31. # package information
  32. Name: vile
  33. Summary: Vi like Emacs
  34. URL: http://invisible-island.net/vile/vile.html
  35. Vendor: Jim Dickey
  36. Packager: The OpenPKG Project
  37. Distribution: OpenPKG [EVAL]
  38. Group: Editor
  39. License: BeerWare
  40. Version: %{V_base}%{V_patchL}
  41. Release: 20031106
  42. # package options
  43. %option with_x11 no
  44. # list of sources
  45. Source0: ftp://invisible-island.net/vile/vile-%{V_base}.tgz
  46. Patch1: ftp://invisible-island.net/vile/patches/vile-%{V_base}%{V_patch1}.patch.gz
  47. Patch2: ftp://invisible-island.net/vile/patches/vile-%{V_base}%{V_patch2}.patch.gz
  48. Patch3: ftp://invisible-island.net/vile/patches/vile-%{V_base}%{V_patch3}.patch.gz
  49. # build information
  50. Prefix: %{l_prefix}
  51. BuildRoot: %{l_buildroot}
  52. BuildPreReq: OpenPKG, openpkg >= 20030103
  53. PreReq: OpenPKG, openpkg >= 20030103
  54. AutoReq: no
  55. AutoReqProv: no
  56. %description
  57. Vile (Vi like Emacs) is a text editor which is extremely similar
  58. to Vi in terms of commonly used keyboard commands. Vile isn't Vi,
  59. however; many things are missing and the screen doesn't look the
  60. same. Vile includes the multiple buffer and multiple window features
  61. found in Emacs and other editors. In addition, it has extended
  62. capabilities in many areas, including key rebinding and real X
  63. Window System support.
  64. %prep
  65. %setup -q -n vile-%{V_base}
  66. %patch -p1 -P 1
  67. %patch -p1 -P 2
  68. %patch -p1 -P 3
  69. %build
  70. %if "%{with_x11}" == "yes"
  71. PATH="`%{l_prefix}/etc/rc --query x11_bindir`:$PATH"
  72. %endif
  73. CC="%{l_cc}" \
  74. CFLAGS="%{l_cflags -O}" \
  75. CPPFLAGS="%{l_cppflags}" \
  76. LDFLAGS="%{l_ldflags}" \
  77. ./configure \
  78. --prefix=%{l_prefix} \
  79. --with-screen=ncurses \
  80. --with-curses-dir=%{l_prefix} \
  81. --with-ncurses \
  82. %if "%{with_x11}" == "yes"
  83. --with-x \
  84. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  85. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir`
  86. %else
  87. --without-x
  88. %endif
  89. %{l_make} %{l_mflags -O}
  90. %install
  91. rm -rf $RPM_BUILD_ROOT
  92. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  93. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  94. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  95. %files -f files
  96. %clean
  97. rm -rf $RPM_BUILD_ROOT