vim.spec 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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 0262
  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: 20170129
  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. Patch338: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0238
  291. Patch339: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0239
  292. Patch340: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0240
  293. Patch341: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0241
  294. Patch342: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0242
  295. Patch343: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0243
  296. Patch344: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0244
  297. Patch345: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0245
  298. Patch346: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0246
  299. Patch347: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0247
  300. Patch348: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0248
  301. Patch349: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0249
  302. Patch350: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0250
  303. Patch351: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0251
  304. Patch352: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0252
  305. Patch353: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0253
  306. Patch354: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0254
  307. Patch355: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0255
  308. Patch356: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0256
  309. Patch357: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0257
  310. Patch358: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0258
  311. Patch359: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0259
  312. Patch360: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0260
  313. Patch361: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0261
  314. Patch362: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0262
  315. # build information
  316. BuildPreReq: OpenPKG, openpkg >= 20160101, ncurses
  317. PreReq: OpenPKG, openpkg >= 20160101, ncurses
  318. %if "%{with_perl}" == "yes"
  319. BuildPreReq: perl
  320. PreReq: perl
  321. %endif
  322. %if "%{with_python}" == "yes"
  323. BuildPreReq: python
  324. PreReq: python
  325. %endif
  326. %if "%{with_tcl}" == "yes"
  327. BuildPreReq: tcl
  328. PreReq: tcl
  329. %endif
  330. %if "%{with_ruby}" == "yes"
  331. BuildPreReq: ruby
  332. PreReq: ruby
  333. %endif
  334. %if "%{with_shell}" == "yes"
  335. BuildPreReq: autoconf
  336. %endif
  337. %description
  338. Vim (Vi Improved) is a text editor that is upwards compatible
  339. with the classical Unix Vi. It can be used to edit any ASCII
  340. text. It is especially useful for editing programs. Vim offers
  341. a lot of enhancements not available in the traditional Vi. For
  342. example, Vim has multi level undo, multi windows and buffers, syntax
  343. highlighting, command line editing, filename completion, on-line
  344. help, and visual selection.
  345. %track
  346. prog vim = {
  347. version = %{V_vl}
  348. url = ftp://ftp.vim.org/pub/vim/unix/
  349. regex = vim-(\d+.\d+)\.tar\.(gz|bz2)
  350. }
  351. prog vim:patchlevel = {
  352. version = %{V_vl}.%{V_pl}
  353. url = ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/
  354. regex = (%{V_vl}\.\d+)
  355. }
  356. %prep
  357. # unpack base distribution parts
  358. %setup -q -c
  359. %patch -p0
  360. %if "%{with_shell}" == "yes"
  361. %patch -p0 -d vim%{V_vs} -P 1
  362. %endif
  363. # apply bundle patchsets
  364. # for patchset in 0001-1000; do
  365. # %{l_gzip} -d -c $RPM_SOURCE_DIR/%{V_vl}.$patchset.gz |\
  366. # %{l_patch} -p0 -E -t -s >/dev/null 2>&1 || true
  367. # done
  368. # apply remaining single patches
  369. i=1
  370. while [ $i -le %{V_pl} ]; do
  371. cat $RPM_SOURCE_DIR/%{V_vl}.`echo $i | awk '{ printf("%04d", $0); }'` |\
  372. %{l_patch} -p0 -E -t -s >/dev/null 2>&1 || true
  373. i=`expr $i + 1`
  374. done
  375. # adjust introduction text for OpenPKG branding
  376. %{l_shtool} subst \
  377. -e 's;Modified by;Packaged by;' \
  378. vim%{V_vs}/src/version.c
  379. # adjust paths to global configuration files
  380. %{l_shtool} subst \
  381. -e 's;^/\* \(#define SYS_VIMRC_FILE\).*$;\1 "%{l_prefix}/etc/vim/vimrc";' \
  382. -e 's;^/\* \(#define SYS_GVIMRC_FILE\).*$;\1 "%{l_prefix}/etc/vim/gvimrc";' \
  383. vim%{V_vs}/src/feature.h
  384. %if "%{with_python}" == "yes"
  385. # fix Python includes
  386. %{l_shtool} subst \
  387. -e 's;PYTHON_CFLAGS=.*$;PYTHON_CFLAGS="`python-config --includes`";' \
  388. vim%{V_vs}/src/auto/configure
  389. %endif
  390. %build
  391. # configure package
  392. cd vim%{V_vs}/src
  393. %if "%{with_shell}" == "yes"
  394. %{l_make} %{l_mflags} autoconf
  395. %endif
  396. CC="%{l_cc}" \
  397. CFLAGS="%{l_cflags -O}" \
  398. CPPFLAGS="%{l_cppflags}" \
  399. LDFLAGS="%{l_ldflags}" \
  400. GREP="grep" \
  401. ./configure \
  402. --prefix=%{l_prefix} \
  403. --mandir=%{l_prefix}/man \
  404. --with-local-dir=%{l_prefix} \
  405. --with-global-runtime=%{l_prefix}/lib/vim \
  406. --with-modified-by='%{l_openpkg_release}' \
  407. --with-tlib=ncurses \
  408. --without-x \
  409. --disable-gui \
  410. %if "%{with_features}" == "huge"
  411. --with-features=huge \
  412. %else
  413. %if "%{with_features}" == "big"
  414. --with-features=big \
  415. %else
  416. %if "%{with_features}" == "small"
  417. --with-features=small \
  418. %else
  419. --with-features=normal \
  420. %endif
  421. %endif
  422. %endif
  423. %if "%{with_multibyte}" == "yes"
  424. --enable-multibyte \
  425. %endif
  426. %if "%{with_perl}" == "yes"
  427. --enable-perlinterp \
  428. %else
  429. --disable-perlinterp \
  430. %endif
  431. %if "%{with_python}" == "yes"
  432. --enable-pythoninterp \
  433. --with-python-config-dir=%{l_prefix}/lib/python/config \
  434. %else
  435. --disable-pythoninterp \
  436. %endif
  437. %if "%{with_tcl}" == "yes"
  438. --enable-tclinterp \
  439. %else
  440. --disable-tclinterp \
  441. %endif
  442. %if "%{with_ruby}" == "yes"
  443. --enable-rubyinterp \
  444. %else
  445. --disable-rubyinterp \
  446. %endif
  447. --disable-nls
  448. %{l_shtool} subst \
  449. -e 's;^\(VIMRTDIR[^=]*=\).*;\1;' \
  450. Makefile
  451. # build package
  452. %{l_make} %{l_mflags -O}
  453. %install
  454. # perform package installation procedure
  455. ( cd vim%{V_vs}/src
  456. %{l_make} %{l_mflags} install \
  457. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  458. MANDIR=$RPM_BUILD_ROOT%{l_prefix}/man
  459. ) || exit $?
  460. # strip down installation hierarchy
  461. strip $RPM_BUILD_ROOT%{l_prefix}/bin/vim >/dev/null 2>&1 || true
  462. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/xxd
  463. rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/xxd.1
  464. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/vim/tools
  465. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/vim/macros
  466. # add links for program runtime variants
  467. for link in vi ex rview rvim view vimdiff; do
  468. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/$link
  469. ln $RPM_BUILD_ROOT%{l_prefix}/bin/vim \
  470. $RPM_BUILD_ROOT%{l_prefix}/bin/$link
  471. rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/$link.1
  472. ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/vim.1 \
  473. $RPM_BUILD_ROOT%{l_prefix}/man/man1/$link.1
  474. done
  475. # create installation area for addon packages
  476. %{l_shtool} mkdir -f -p -m 755 \
  477. $RPM_BUILD_ROOT%{l_prefix}/lib/vim
  478. # install run-command script
  479. %{l_shtool} mkdir -f -p -m 755 \
  480. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  481. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  482. %{SOURCE rc.vim} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  483. # install default configuration
  484. %{l_shtool} mkdir -f -p -m 755 \
  485. $RPM_BUILD_ROOT%{l_prefix}/etc/vim
  486. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  487. %{SOURCE vimrc} $RPM_BUILD_ROOT%{l_prefix}/etc/vim/
  488. # determine installation files
  489. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  490. %{l_files_std} \
  491. '%config %{l_prefix}/etc/vim/vimrc'
  492. %files -f files
  493. %clean
  494. %preun
  495. if [ $1 -eq 0 ]; then
  496. # remove a (usually empty) "helptags" file of addon packages
  497. rm -f $RPM_INSTALL_PREFIX/lib/vim/doc/tags >/dev/null 2>&1 || true
  498. fi