vim.spec 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. ##
  2. ## vim.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2020 OpenPKG Project <http://openpkg.org/>
  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.2
  25. %define V_vs 82
  26. %define V_pl 0285
  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 Project
  33. Distribution: OpenPKG Community
  34. Class: CORE
  35. Group: Editor
  36. License: Charityware
  37. Version: %{V_vl}.%{V_pl}
  38. Release: 20200220
  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_terminal 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. Patch0001: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0001
  53. Patch0002: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0002
  54. Patch0003: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0003
  55. Patch0004: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0004
  56. Patch0005: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0005
  57. Patch0006: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0006
  58. Patch0007: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0007
  59. Patch0008: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0008
  60. Patch0009: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0009
  61. Patch0010: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0010
  62. Patch0011: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0011
  63. Patch0012: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0012
  64. Patch0013: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0013
  65. Patch0014: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0014
  66. Patch0015: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0015
  67. Patch0016: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0016
  68. Patch0017: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0017
  69. Patch0018: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0018
  70. Patch0019: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0019
  71. Patch0020: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0020
  72. Patch0021: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0021
  73. Patch0022: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0022
  74. Patch0023: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0023
  75. Patch0024: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0024
  76. Patch0025: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0025
  77. Patch0026: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0026
  78. Patch0027: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0027
  79. Patch0028: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0028
  80. Patch0029: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0029
  81. Patch0030: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0030
  82. Patch0031: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0031
  83. Patch0032: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0032
  84. Patch0033: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0033
  85. Patch0034: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0034
  86. Patch0035: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0035
  87. Patch0036: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0036
  88. Patch0037: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0037
  89. Patch0038: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0038
  90. Patch0039: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0039
  91. Patch0040: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0040
  92. Patch0041: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0041
  93. Patch0042: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0042
  94. Patch0043: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0043
  95. Patch0044: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0044
  96. Patch0045: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0045
  97. Patch0046: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0046
  98. Patch0047: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0047
  99. Patch0048: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0048
  100. Patch0049: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0049
  101. Patch0050: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0050
  102. Patch0051: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0051
  103. Patch0052: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0052
  104. Patch0053: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0053
  105. Patch0054: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0054
  106. Patch0055: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0055
  107. Patch0056: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0056
  108. Patch0057: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0057
  109. Patch0058: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0058
  110. Patch0059: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0059
  111. Patch0060: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0060
  112. Patch0061: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0061
  113. Patch0062: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0062
  114. Patch0063: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0063
  115. Patch0064: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0064
  116. Patch0065: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0065
  117. Patch0066: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0066
  118. Patch0067: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0067
  119. Patch0068: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0068
  120. Patch0069: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0069
  121. Patch0070: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0070
  122. Patch0071: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0071
  123. Patch0072: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0072
  124. Patch0073: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0073
  125. Patch0074: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0074
  126. Patch0075: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0075
  127. Patch0076: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0076
  128. Patch0077: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0077
  129. Patch0078: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0078
  130. Patch0079: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0079
  131. Patch0080: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0080
  132. Patch0081: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0081
  133. Patch0082: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0082
  134. Patch0083: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0083
  135. Patch0084: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0084
  136. Patch0085: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0085
  137. Patch0086: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0086
  138. Patch0087: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0087
  139. Patch0088: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0088
  140. Patch0089: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0089
  141. Patch0090: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0090
  142. Patch0091: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0091
  143. Patch0092: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0092
  144. Patch0093: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0093
  145. Patch0094: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0094
  146. Patch0095: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0095
  147. Patch0096: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0096
  148. Patch0097: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0097
  149. Patch0098: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0098
  150. Patch0099: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0099
  151. Patch0100: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0100
  152. Patch0101: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0101
  153. Patch0102: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0102
  154. Patch0103: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0103
  155. Patch0104: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0104
  156. Patch0105: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0105
  157. Patch0106: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0106
  158. Patch0107: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0107
  159. Patch0108: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0108
  160. Patch0109: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0109
  161. Patch0110: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0110
  162. Patch0111: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0111
  163. Patch0112: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0112
  164. Patch0113: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0113
  165. Patch0114: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0114
  166. Patch0115: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0115
  167. Patch0116: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0116
  168. Patch0117: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0117
  169. Patch0118: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0118
  170. Patch0119: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0119
  171. Patch0120: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0120
  172. Patch0121: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0121
  173. Patch0122: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0122
  174. Patch0123: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0123
  175. Patch0124: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0124
  176. Patch0125: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0125
  177. Patch0126: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0126
  178. Patch0127: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0127
  179. Patch0128: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0128
  180. Patch0129: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0129
  181. Patch0130: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0130
  182. Patch0131: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0131
  183. Patch0132: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0132
  184. Patch0133: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0133
  185. Patch0134: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0134
  186. Patch0135: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0135
  187. Patch0136: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0136
  188. Patch0137: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0137
  189. Patch0138: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0138
  190. Patch0139: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0139
  191. Patch0140: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0140
  192. Patch0141: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0141
  193. Patch0142: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0142
  194. Patch0143: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0143
  195. Patch0144: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0144
  196. Patch0145: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0145
  197. Patch0146: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0146
  198. Patch0147: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0147
  199. Patch0148: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0148
  200. Patch0149: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0149
  201. Patch0150: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0150
  202. Patch0151: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0151
  203. Patch0152: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0152
  204. Patch0153: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0153
  205. Patch0154: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0154
  206. Patch0155: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0155
  207. Patch0156: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0156
  208. Patch0157: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0157
  209. Patch0158: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0158
  210. Patch0159: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0159
  211. Patch0160: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0160
  212. Patch0161: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0161
  213. Patch0162: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0162
  214. Patch0163: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0163
  215. Patch0164: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0164
  216. Patch0165: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0165
  217. Patch0166: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0166
  218. Patch0167: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0167
  219. Patch0168: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0168
  220. Patch0169: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0169
  221. Patch0170: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0170
  222. Patch0171: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0171
  223. Patch0172: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0172
  224. Patch0173: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0173
  225. Patch0174: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0174
  226. Patch0175: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0175
  227. Patch0176: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0176
  228. Patch0177: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0177
  229. Patch0178: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0178
  230. Patch0179: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0179
  231. Patch0180: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0180
  232. Patch0181: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0181
  233. Patch0182: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0182
  234. Patch0183: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0183
  235. Patch0184: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0184
  236. Patch0185: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0185
  237. Patch0186: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0186
  238. Patch0187: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0187
  239. Patch0188: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0188
  240. Patch0189: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0189
  241. Patch0190: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0190
  242. Patch0191: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0191
  243. Patch0192: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0192
  244. Patch0193: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0193
  245. Patch0194: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0194
  246. Patch0195: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0195
  247. Patch0196: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0196
  248. Patch0197: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0197
  249. Patch0198: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0198
  250. Patch0199: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0199
  251. Patch0200: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0200
  252. Patch0201: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0201
  253. Patch0202: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0202
  254. Patch0203: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0203
  255. Patch0204: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0204
  256. Patch0205: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0205
  257. Patch0206: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0206
  258. Patch0207: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0207
  259. Patch0208: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0208
  260. Patch0209: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0209
  261. Patch0210: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0210
  262. Patch0211: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0211
  263. Patch0212: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0212
  264. Patch0213: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0213
  265. Patch0214: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0214
  266. Patch0215: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0215
  267. Patch0216: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0216
  268. Patch0217: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0217
  269. Patch0218: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0218
  270. Patch0219: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0219
  271. Patch0220: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0220
  272. Patch0221: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0221
  273. Patch0222: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0222
  274. Patch0223: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0223
  275. Patch0224: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0224
  276. Patch0225: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0225
  277. Patch0226: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0226
  278. Patch0227: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0227
  279. Patch0228: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0228
  280. Patch0229: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0229
  281. Patch0230: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0230
  282. Patch0231: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0231
  283. Patch0232: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0232
  284. Patch0233: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0233
  285. Patch0234: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0234
  286. Patch0235: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0235
  287. Patch0236: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0236
  288. Patch0237: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0237
  289. Patch0238: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0238
  290. Patch0239: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0239
  291. Patch0240: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0240
  292. Patch0241: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0241
  293. Patch0242: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0242
  294. Patch0243: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0243
  295. Patch0244: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0244
  296. Patch0245: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0245
  297. Patch0246: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0246
  298. Patch0247: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0247
  299. Patch0248: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0248
  300. Patch0249: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0249
  301. Patch0250: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0250
  302. Patch0251: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0251
  303. Patch0252: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0252
  304. Patch0253: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0253
  305. Patch0254: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0254
  306. Patch0255: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0255
  307. Patch0256: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0256
  308. Patch0257: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0257
  309. Patch0258: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0258
  310. Patch0259: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0259
  311. Patch0260: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0260
  312. Patch0261: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0261
  313. Patch0262: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0262
  314. Patch0263: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0263
  315. Patch0264: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0264
  316. Patch0265: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0265
  317. Patch0266: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0266
  318. Patch0267: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0267
  319. Patch0268: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0268
  320. Patch0269: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0269
  321. Patch0270: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0270
  322. Patch0271: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0271
  323. Patch0272: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0272
  324. Patch0273: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0273
  325. Patch0274: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0274
  326. Patch0275: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0275
  327. Patch0276: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0276
  328. Patch0277: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0277
  329. Patch0278: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0278
  330. Patch0279: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0279
  331. Patch0280: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0280
  332. Patch0281: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0281
  333. Patch0282: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0282
  334. Patch0283: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0283
  335. Patch0284: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0284
  336. Patch0285: ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/%{V_vl}.0285
  337. # build information
  338. BuildPreReq: OpenPKG, openpkg >= 20160101, ncurses
  339. PreReq: OpenPKG, openpkg >= 20160101, ncurses
  340. %if "%{with_perl}" == "yes"
  341. BuildPreReq: perl
  342. PreReq: perl
  343. %endif
  344. %if "%{with_python}" == "yes"
  345. BuildPreReq: python
  346. PreReq: python
  347. %endif
  348. %if "%{with_tcl}" == "yes"
  349. BuildPreReq: tcl
  350. PreReq: tcl
  351. %endif
  352. %if "%{with_ruby}" == "yes"
  353. BuildPreReq: ruby
  354. PreReq: ruby
  355. %endif
  356. %description
  357. Vim (Vi Improved) is a text editor that is upwards compatible
  358. with the classical Unix Vi. It can be used to edit any ASCII
  359. text. It is especially useful for editing programs. Vim offers
  360. a lot of enhancements not available in the traditional Vi. For
  361. example, Vim has multi level undo, multi windows and buffers, syntax
  362. highlighting, command line editing, filename completion, on-line
  363. help, and visual selection.
  364. %track
  365. prog vim = {
  366. version = %{V_vl}
  367. url = ftp://ftp.vim.org/pub/vim/unix/
  368. regex = vim-(\d+.\d+)\.tar\.(gz|bz2)
  369. }
  370. prog vim:patchlevel = {
  371. version = %{V_vl}.%{V_pl}
  372. url = ftp://ftp.vim.org/pub/vim/patches/%{V_vl}/
  373. regex = (%{V_vl}\.\d+)
  374. }
  375. %prep
  376. # unpack base distribution parts
  377. %setup -q -c
  378. %patch -p0
  379. # apply remaining single patches
  380. i=1
  381. while [ $i -le %{V_pl} ]; do
  382. cat $RPM_SOURCE_DIR/%{V_vl}.`echo $i | awk '{ printf("%04d", $0); }'` |\
  383. %{l_patch} -p0 -E -t -s >/dev/null 2>&1 || true
  384. i=`expr $i + 1`
  385. done
  386. # adjust introduction text for OpenPKG branding
  387. %{l_shtool} subst \
  388. -e 's;Modified by;Packaged by;' \
  389. vim%{V_vs}/src/version.c
  390. # adjust paths to global configuration files
  391. %{l_shtool} subst \
  392. -e 's;^/\/\/ \(#define SYS_VIMRC_FILE\).*$;\1 "%{l_prefix}/etc/vim/vimrc";' \
  393. -e 's;^/\/\/ \(#define SYS_GVIMRC_FILE\).*$;\1 "%{l_prefix}/etc/vim/gvimrc";' \
  394. vim%{V_vs}/src/feature.h
  395. %if "%{with_python}" == "yes"
  396. # fix Python includes
  397. %{l_shtool} subst \
  398. -e 's;PYTHON_CFLAGS=.*$;PYTHON_CFLAGS="`python-config --includes`";' \
  399. vim%{V_vs}/src/auto/configure
  400. %endif
  401. %build
  402. # configure package
  403. cd vim%{V_vs}/src
  404. CC="%{l_cc}" \
  405. CFLAGS="%{l_cflags -O}" \
  406. CPPFLAGS="%{l_cppflags}" \
  407. LDFLAGS="%{l_ldflags}" \
  408. GREP="grep" \
  409. ./configure \
  410. --prefix=%{l_prefix} \
  411. --mandir=%{l_prefix}/man \
  412. --with-local-dir=%{l_prefix} \
  413. --with-global-runtime=%{l_prefix}/lib/vim \
  414. --with-modified-by='%{l_openpkg_release}' \
  415. --with-tlib=ncurses \
  416. --without-x \
  417. --disable-gui \
  418. %if "%{with_features}" == "huge"
  419. --with-features=huge \
  420. %else
  421. %if "%{with_features}" == "big"
  422. --with-features=big \
  423. %else
  424. %if "%{with_features}" == "small"
  425. --with-features=small \
  426. %else
  427. --with-features=normal \
  428. %endif
  429. %endif
  430. %endif
  431. %if "%{with_multibyte}" == "yes"
  432. --enable-multibyte \
  433. %endif
  434. %if "%{with_perl}" == "yes"
  435. --enable-perlinterp \
  436. %else
  437. --disable-perlinterp \
  438. %endif
  439. %if "%{with_python}" == "yes"
  440. --enable-pythoninterp \
  441. --with-python-config-dir=%{l_prefix}/lib/python/config \
  442. %else
  443. --disable-pythoninterp \
  444. %endif
  445. %if "%{with_tcl}" == "yes"
  446. --enable-tclinterp \
  447. %else
  448. --disable-tclinterp \
  449. %endif
  450. %if "%{with_ruby}" == "yes"
  451. --enable-rubyinterp \
  452. %else
  453. --disable-rubyinterp \
  454. %endif
  455. %if "%{with_terminal}" == "yes"
  456. --enable-terminal \
  457. %else
  458. --disable-terminal \
  459. %endif
  460. --disable-nls
  461. %{l_shtool} subst \
  462. -e 's;^\(VIMRTDIR[^=]*=\).*;\1;' \
  463. Makefile
  464. # build package
  465. %{l_make} %{l_mflags -O}
  466. %install
  467. # perform package installation procedure
  468. ( cd vim%{V_vs}/src
  469. %{l_make} %{l_mflags} install \
  470. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  471. MANDIR=$RPM_BUILD_ROOT%{l_prefix}/man
  472. ) || exit $?
  473. # strip down installation hierarchy
  474. strip $RPM_BUILD_ROOT%{l_prefix}/bin/vim >/dev/null 2>&1 || true
  475. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/xxd
  476. rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/xxd.1
  477. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/vim/tools
  478. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/vim/macros
  479. # add links for program runtime variants
  480. for link in vi ex rview rvim view vimdiff; do
  481. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/$link
  482. ln $RPM_BUILD_ROOT%{l_prefix}/bin/vim \
  483. $RPM_BUILD_ROOT%{l_prefix}/bin/$link
  484. rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/$link.1
  485. ln $RPM_BUILD_ROOT%{l_prefix}/man/man1/vim.1 \
  486. $RPM_BUILD_ROOT%{l_prefix}/man/man1/$link.1
  487. done
  488. # create installation area for addon packages
  489. %{l_shtool} mkdir -f -p -m 755 \
  490. $RPM_BUILD_ROOT%{l_prefix}/lib/vim
  491. # install run-command script
  492. %{l_shtool} mkdir -f -p -m 755 \
  493. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  494. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  495. %{SOURCE rc.vim} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  496. # install default configuration
  497. %{l_shtool} mkdir -f -p -m 755 \
  498. $RPM_BUILD_ROOT%{l_prefix}/etc/vim
  499. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  500. %{SOURCE vimrc} $RPM_BUILD_ROOT%{l_prefix}/etc/vim/
  501. # determine installation files
  502. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  503. %{l_files_std} \
  504. '%config %{l_prefix}/etc/vim/vimrc'
  505. %files -f files
  506. %clean
  507. %preun
  508. if [ $1 -eq 0 ]; then
  509. # remove a (usually empty) "helptags" file of addon packages
  510. rm -f $RPM_INSTALL_PREFIX/lib/vim/doc/tags >/dev/null 2>&1 || true
  511. fi