vile.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. ##
  2. ## vile.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package version
  25. %define V_base 9.5
  26. %define V_patch1 a
  27. %define V_patch2 b
  28. %define V_patchL %{V_patch2}
  29. # package information
  30. Name: vile
  31. Summary: Vi like Emacs
  32. URL: http://invisible-island.net/vile/vile.html
  33. Vendor: Jim Dickey
  34. Packager: OpenPKG
  35. Distribution: OpenPKG
  36. Class: PLUS
  37. Group: Editor
  38. License: BeerWare
  39. Version: %{V_base}%{V_patchL}
  40. Release: 20051011
  41. # package options
  42. %option with_x11 no
  43. # list of sources
  44. Source0: ftp://invisible-island.net/vile/vile-%{V_base}.tgz
  45. Patch0: vile.patch
  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. # build information
  49. Prefix: %{l_prefix}
  50. BuildRoot: %{l_buildroot}
  51. BuildPreReq: OpenPKG, openpkg >= 20040130, flex
  52. PreReq: OpenPKG, openpkg >= 20040130
  53. BuildPreReq: ncurses
  54. PreReq: ncurses
  55. AutoReq: no
  56. AutoReqProv: no
  57. %description
  58. Vile (Vi like Emacs) is a text editor which is extremely similar
  59. to Vi in terms of commonly used keyboard commands. Vile isn't Vi,
  60. however; many things are missing and the screen doesn't look the
  61. same. Vile includes the multiple buffer and multiple window features
  62. found in Emacs and other editors. In addition, it has extended
  63. capabilities in many areas, including key rebinding and real X
  64. Window System support.
  65. %track
  66. prog vile = {
  67. version = %{V_base}
  68. url = ftp://invisible-island.net/vile/
  69. regex = vile-(__VER__)\.tgz
  70. }
  71. prog vile:patches = {
  72. version = %{V_base}%{V_patchL}
  73. url = ftp://invisible-island.net/vile/patches/
  74. regex = vile-(__VER__)\.patch\.gz
  75. }
  76. %prep
  77. %setup -q -n vile-%{V_base}
  78. %patch -p0 -P 0
  79. %patch -p1 -P 1 2
  80. chmod u+w filters/sql-filt.l*
  81. %{l_shtool} subst \
  82. -e 's;= LEAD;= 0;' \
  83. filters/sql-filt.l
  84. %build
  85. %if "%{with_x11}" == "yes"
  86. PATH="`%{l_rc} --query x11_bindir`:$PATH"
  87. %endif
  88. CC="%{l_cc}" \
  89. CFLAGS="%{l_cflags -O}" \
  90. CPPFLAGS="%{l_cppflags}" \
  91. LDFLAGS="%{l_ldflags}" \
  92. ./configure \
  93. --prefix=%{l_prefix} \
  94. --with-screen=ncurses \
  95. --with-curses-dir=%{l_prefix} \
  96. --with-ncurses \
  97. %if "%{with_x11}" == "yes"
  98. --with-x \
  99. --x-includes=`%{l_rc} --query x11_incdir` \
  100. --x-libraries=`%{l_rc} --query x11_libdir` \
  101. %else
  102. --without-x \
  103. %endif
  104. --without-iconv \
  105. --without-locale
  106. %{l_make} %{l_mflags}
  107. %install
  108. rm -rf $RPM_BUILD_ROOT
  109. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  110. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  111. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  112. %files -f files
  113. %clean
  114. rm -rf $RPM_BUILD_ROOT