vim.spec 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. ##
  2. ## vim.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2017 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package versions
  24. %define V_vl 8.0
  25. %define V_vs 80
  26. %define V_pl 0237
  27. # package information
  28. Name: vim
  29. Summary: The Vi (Improved) Text Editor
  30. URL: http://www.vim.org/
  31. Vendor: Bram Moolenaar et al.
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: CORE
  35. Group: Editor
  36. License: Charityware
  37. Version: %{V_vl}.%{V_pl}
  38. Release: 20170125
  39. # package options
  40. %option with_features normal
  41. %option with_multibyte yes
  42. %option with_perl no
  43. %option with_python no
  44. %option with_tcl no
  45. %option with_ruby no
  46. %option with_shell no
  47. # list of sources
  48. Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{V_vl}.tar.bz2
  49. Source2: rc.vim
  50. Source3: vimrc
  51. Patch0: vim.patch
  52. Patch1: vim.patch.shell
  53. Patch101: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0001
  54. Patch102: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0002
  55. Patch103: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0003
  56. Patch104: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0004
  57. Patch105: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0005
  58. Patch106: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0006
  59. Patch107: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0007
  60. Patch108: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0008
  61. Patch109: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0009
  62. Patch110: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0010
  63. Patch111: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0011
  64. Patch112: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0012
  65. Patch113: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0013
  66. Patch114: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0014
  67. Patch115: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0015
  68. Patch116: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0016
  69. Patch117: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0017
  70. Patch118: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0018
  71. Patch119: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0019
  72. Patch120: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0020
  73. Patch121: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0021
  74. Patch122: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0022
  75. Patch123: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0023
  76. Patch124: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0024
  77. Patch125: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0025
  78. Patch126: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0026
  79. Patch127: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0027
  80. Patch128: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0028
  81. Patch129: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0029
  82. Patch130: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0030
  83. Patch131: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0031
  84. Patch132: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0032
  85. Patch133: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0033
  86. Patch134: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0034
  87. Patch135: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0035
  88. Patch136: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0036
  89. Patch137: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0037
  90. Patch138: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0038
  91. Patch139: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0039
  92. Patch140: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0040
  93. Patch141: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0041
  94. Patch142: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0042
  95. Patch143: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0043
  96. Patch144: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0044
  97. Patch145: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0045
  98. Patch146: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0046
  99. Patch147: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0047
  100. Patch148: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0048
  101. Patch149: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0049
  102. Patch150: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0050
  103. Patch151: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0051
  104. Patch152: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0052
  105. Patch153: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0053
  106. Patch154: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0054
  107. Patch155: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0055
  108. Patch156: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0056
  109. Patch157: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0057
  110. Patch158: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0058
  111. Patch159: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0059
  112. Patch160: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0060
  113. Patch161: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0061
  114. Patch162: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0062
  115. Patch163: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0063
  116. Patch164: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0064
  117. Patch165: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0065
  118. Patch166: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0066
  119. Patch167: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0067
  120. Patch168: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0068
  121. Patch169: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0069
  122. Patch170: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0070
  123. Patch171: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0071
  124. Patch172: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0072
  125. Patch173: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0073
  126. Patch174: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0074
  127. Patch175: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0075
  128. Patch176: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0076
  129. Patch177: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0077
  130. Patch178: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0078
  131. Patch179: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0079
  132. Patch180: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0080
  133. Patch181: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0081
  134. Patch182: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0082
  135. Patch183: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0083
  136. Patch184: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0084
  137. Patch185: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0085
  138. Patch186: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0086
  139. Patch187: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0087
  140. Patch188: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0088
  141. Patch189: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0089
  142. Patch190: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0090
  143. Patch191: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0091
  144. Patch192: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0092
  145. Patch193: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0093
  146. Patch194: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0094
  147. Patch195: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0095
  148. Patch196: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0096
  149. Patch197: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0097
  150. Patch198: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0098
  151. Patch199: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0099
  152. Patch200: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0100
  153. Patch201: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0101
  154. Patch202: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0102
  155. Patch203: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0103
  156. Patch204: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0104
  157. Patch205: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0105
  158. Patch206: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0106
  159. Patch207: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0107
  160. Patch208: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0108
  161. Patch209: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0109
  162. Patch210: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0110
  163. Patch211: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0111
  164. Patch212: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0112
  165. Patch213: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0113
  166. Patch214: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0114
  167. Patch215: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0115
  168. Patch216: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0116
  169. Patch217: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0117
  170. Patch218: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0118
  171. Patch219: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0119
  172. Patch220: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0120
  173. Patch221: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0121
  174. Patch222: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0122
  175. Patch223: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0123
  176. Patch224: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0124
  177. Patch225: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0125
  178. Patch226: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0126
  179. Patch227: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0127
  180. Patch228: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0128
  181. Patch229: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0129
  182. Patch230: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0130
  183. Patch231: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0131
  184. Patch232: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0132
  185. Patch233: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0133
  186. Patch234: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0134
  187. Patch235: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0135
  188. Patch236: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0136
  189. Patch237: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0137
  190. Patch238: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0138
  191. Patch239: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0139
  192. Patch240: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0140
  193. Patch241: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0141
  194. Patch242: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0142
  195. Patch243: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0143
  196. Patch244: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0144
  197. Patch245: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0145
  198. Patch246: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0146
  199. Patch247: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0147
  200. Patch248: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0148
  201. Patch249: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0149
  202. Patch250: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0150
  203. Patch251: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0151
  204. Patch252: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0152
  205. Patch253: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0153
  206. Patch254: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0154
  207. Patch255: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0155
  208. Patch256: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0156
  209. Patch257: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0157
  210. Patch258: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0158
  211. Patch259: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0159
  212. Patch260: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0160
  213. Patch261: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0161
  214. Patch262: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0162
  215. Patch263: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0163
  216. Patch264: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0164
  217. Patch265: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0165
  218. Patch266: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0166
  219. Patch267: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0167
  220. Patch268: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0168
  221. Patch269: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0169
  222. Patch270: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0170
  223. Patch271: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0171
  224. Patch272: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0172
  225. Patch273: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0173
  226. Patch274: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0174
  227. Patch275: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0175
  228. Patch276: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0176
  229. Patch277: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0177
  230. Patch278: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0178
  231. Patch279: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0179
  232. Patch280: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0180
  233. Patch281: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0181
  234. Patch282: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0182
  235. Patch283: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0183
  236. Patch284: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0184
  237. Patch285: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0185
  238. Patch286: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0186
  239. Patch287: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0187
  240. Patch288: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0188
  241. Patch289: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0189
  242. Patch290: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0190
  243. Patch291: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0191
  244. Patch292: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0192
  245. Patch293: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0193
  246. Patch294: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0194
  247. Patch295: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0195
  248. Patch296: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0196
  249. Patch297: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0197
  250. Patch298: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0198
  251. Patch299: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0199
  252. Patch300: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0200
  253. Patch301: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0201
  254. Patch302: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0202
  255. Patch303: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0203
  256. Patch304: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0204
  257. Patch305: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0205
  258. Patch306: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0206
  259. Patch307: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0207
  260. Patch308: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0208
  261. Patch309: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0209
  262. Patch310: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0210
  263. Patch311: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0211
  264. Patch312: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0212
  265. Patch313: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0213
  266. Patch314: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0214
  267. Patch315: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0215
  268. Patch316: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0216
  269. Patch317: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0217
  270. Patch318: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0218
  271. Patch319: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0219
  272. Patch320: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0220
  273. Patch321: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0221
  274. Patch322: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0222
  275. Patch323: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0223
  276. Patch324: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0224
  277. Patch325: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0225
  278. Patch326: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0226
  279. Patch327: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0227
  280. Patch328: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0228
  281. Patch329: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0229
  282. Patch330: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0230
  283. Patch331: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0231
  284. Patch332: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0232
  285. Patch333: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0233
  286. Patch334: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0234
  287. Patch335: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0235
  288. Patch336: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0236
  289. Patch337: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0237
  290. # build information
  291. BuildPreReq: OpenPKG, openpkg >= 20160101, ncurses
  292. PreReq: OpenPKG, openpkg >= 20160101, ncurses
  293. %if "%{with_perl}" == "yes"
  294. BuildPreReq: perl
  295. PreReq: perl
  296. %endif
  297. %if "%{with_python}" == "yes"
  298. BuildPreReq: python
  299. PreReq: python
  300. %endif
  301. %if "%{with_tcl}" == "yes"
  302. BuildPreReq: tcl
  303. PreReq: tcl
  304. %endif
  305. %if "%{with_ruby}" == "yes"
  306. BuildPreReq: ruby
  307. PreReq: ruby
  308. %endif
  309. %if "%{with_shell}" == "yes"
  310. BuildPreReq: autoconf
  311. %endif
  312. %description
  313. Vim (Vi Improved) is a text editor that is upwards compatible
  314. with the classical Unix Vi. It can be used to edit any ASCII
  315. text. It is especially useful for editing programs. Vim offers
  316. a lot of enhancements not available in the traditional Vi. For
  317. example, Vim has multi level undo, multi windows and buffers, syntax
  318. highlighting, command line editing, filename completion, on-line
  319. help, and visual selection.
  320. %track
  321. prog vim = {
  322. version = %{V_vl}
  323. url = ftp://ftp.vim.org/pub/vim/unix/
  324. regex = vim-(\d+.\d+)\.tar\.(gz|bz2)
  325. }
  326. prog vim:patchlevel = {
  327. version = %{V_vl}.%{V_pl}
  328. url = ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/
  329. regex = (%{V_vl}\.\d+)
  330. }
  331. %prep
  332. # unpack base distribution parts
  333. %setup -q -c
  334. %patch -p0
  335. %if "%{with_shell}" == "yes"
  336. %patch -p0 -d vim%{V_vs} -P 1
  337. %endif
  338. # apply bundle patchsets
  339. # for patchset in 0001-1000; do
  340. # %{l_gzip} -d -c $RPM_SOURCE_DIR/%{V_vl}.$patchset.gz |\
  341. # %{l_patch} -p0 -E -t -s >/dev/null 2>&1 || true
  342. # done
  343. # apply remaining single patches
  344. i=1
  345. while [ $i -le %{V_pl} ]; do
  346. cat $RPM_SOURCE_DIR/%{V_vl}.`echo $i | awk '{ printf("%04d", $0); }'` |\
  347. %{l_patch} -p0 -E -t -s >/dev/null 2>&1 || true
  348. i=`expr $i + 1`
  349. done
  350. # adjust introduction text for OpenPKG branding
  351. %{l_shtool} subst \
  352. -e 's;Modified by;Packaged by;' \
  353. vim%{V_vs}/src/version.c
  354. # adjust paths to global configuration files
  355. %{l_shtool} subst \
  356. -e 's;^/\* \(#define SYS_VIMRC_FILE\).*$;\1 "%{l_prefix}/etc/vim/vimrc";' \
  357. -e 's;^/\* \(#define SYS_GVIMRC_FILE\).*$;\1 "%{l_prefix}/etc/vim/gvimrc";' \
  358. vim%{V_vs}/src/feature.h
  359. %if "%{with_python}" == "yes"
  360. # fix Python includes
  361. %{l_shtool} subst \
  362. -e 's;PYTHON_CFLAGS=.*$;PYTHON_CFLAGS="`python-config --includes`";' \
  363. vim%{V_vs}/src/auto/configure
  364. %endif
  365. %build
  366. # configure package
  367. cd vim%{V_vs}/src
  368. %if "%{with_shell}" == "yes"
  369. %{l_make} %{l_mflags} autoconf
  370. %endif
  371. CC="%{l_cc}" \
  372. CFLAGS="%{l_cflags -O}" \
  373. CPPFLAGS="%{l_cppflags}" \
  374. LDFLAGS="%{l_ldflags}" \
  375. GREP="grep" \
  376. ./configure \
  377. --prefix=%{l_prefix} \
  378. --mandir=%{l_prefix}/man \
  379. --with-local-dir=%{l_prefix} \
  380. --with-global-runtime=%{l_prefix}/lib/vim \
  381. --with-modified-by='%{l_openpkg_release}' \
  382. --with-tlib=ncurses \
  383. --without-x \
  384. --disable-gui \
  385. %if "%{with_features}" == "huge"
  386. --with-features=huge \
  387. %else
  388. %if "%{with_features}" == "big"
  389. --with-features=big \
  390. %else
  391. %if "%{with_features}" == "small"
  392. --with-features=small \
  393. %else
  394. --with-features=normal \
  395. %endif
  396. %endif
  397. %endif
  398. %if "%{with_multibyte}" == "yes"
  399. --enable-multibyte \
  400. %endif
  401. %if "%{with_perl}" == "yes"
  402. --enable-perlinterp \
  403. %else
  404. --disable-perlinterp \
  405. %endif
  406. %if "%{with_python}" == "yes"
  407. --enable-pythoninterp \
  408. --with-python-config-dir=%{l_prefix}/lib/python/config \
  409. %else
  410. --disable-pythoninterp \
  411. %endif
  412. %if "%{with_tcl}" == "yes"
  413. --enable-tclinterp \
  414. %else
  415. --disable-tclinterp \
  416. %endif
  417. %if "%{with_ruby}" == "yes"
  418. --enable-rubyinterp \
  419. %else
  420. --disable-rubyinterp \
  421. %endif
  422. --disable-nls
  423. %{l_shtool} subst \
  424. -e 's;^\(VIMRTDIR[^=]*=\).*;\1;' \
  425. Makefile
  426. # build package
  427. %{l_make} %{l_mflags -O}
  428. %install
  429. # perform package installation procedure
  430. ( cd vim%{V_vs}/src
  431. %{l_make} %{l_mflags} install \
  432. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  433. MANDIR=$RPM_BUILD_ROOT%{l_prefix}/man
  434. ) || exit $?
  435. # strip down installation hierarchy
  436. strip $RPM_BUILD_ROOT%{l_prefix}/bin/vim >/dev/null 2>&1 || true
  437. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/xxd
  438. rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/xxd.1
  439. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/vim/tools
  440. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/vim/macros
  441. # add links for program runtime variants
  442. for link in vi ex rview rvim view vimdiff; do
  443. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/$link
  444. ln $RPM_BUILD_ROOT%{l_prefix}/bin/vim \
  445. $RPM_BUILD_ROOT%{l_prefix}/bin/$link
  446. rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/$link.1
  447. ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/vim.1 \
  448. $RPM_BUILD_ROOT%{l_prefix}/man/man1/$link.1
  449. done
  450. # create installation area for addon packages
  451. %{l_shtool} mkdir -f -p -m 755 \
  452. $RPM_BUILD_ROOT%{l_prefix}/lib/vim
  453. # install run-command script
  454. %{l_shtool} mkdir -f -p -m 755 \
  455. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  456. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  457. %{SOURCE rc.vim} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  458. # install default configuration
  459. %{l_shtool} mkdir -f -p -m 755 \
  460. $RPM_BUILD_ROOT%{l_prefix}/etc/vim
  461. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  462. %{SOURCE vimrc} $RPM_BUILD_ROOT%{l_prefix}/etc/vim/
  463. # determine installation files
  464. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  465. %{l_files_std} \
  466. '%config %{l_prefix}/etc/vim/vimrc'
  467. %files -f files
  468. %clean
  469. %preun
  470. if [ $1 -eq 0 ]; then
  471. # remove a (usually empty) "helptags" file of addon packages
  472. rm -f $RPM_INSTALL_PREFIX/lib/vim/doc/tags >/dev/null 2>&1 || true
  473. fi