vile.spec 3.8 KB

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