vile.spec 4.7 KB

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