/[packages]/cauldron/syntastic/current/SPECS/syntastic.spec
ViewVC logotype

Contents of /cauldron/syntastic/current/SPECS/syntastic.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 291162 - (show annotations) (download)
Sun Sep 9 12:54:50 2012 UTC (9 years, 11 months ago) by matteo
File size: 11877 byte(s)
- fixed last (forgotten) requirement
1 %define gitauthor scrooloose
2 %define githash 54896be
3 %define vimfiles %{_datadir}/vim/vimfiles
4
5 Name: syntastic
6 Version: 2.2.0
7 Release: %mkrel 4
8 Summary: A syntax checker for programming language
9 Group: Text tools
10 License: WTFPL
11 URL: https://github.com/scrooloose/syntastic
12 # git download https://nodeload.github.com/scrooloose/syntastic/tarball/2.2.0
13 Source0: %{gitauthor}-%{name}-%{version}-0-g%{githash}.tar.gz
14
15 BuildArch: noarch
16 Requires: vim
17
18
19 %description
20 Syntastic is a syntax checking plugin that runs files through external syntax
21 checkers and displays any resulting errors to the user. This can be done on
22 demand, or automatically as files are saved. If syntax errors are detected, the
23 user is notified and is happy because they didn't have to compile their code or
24 execute their script to find them.
25
26 At the time of this writing, syntax checking plugins exist for applescript,
27 c, coffee, cpp, css, cucumber, cuda, docbk, erlang, eruby, fortran,
28 gentoo_metadata, go, haml, haskell, html, javascript, json, less, lua, matlab,
29 perl, php, puppet, python, rst, ruby, sass/scss, sh, tcl, tex, vala, xhtml,
30 xml, xslt, yaml, zpt
31
32 %package c
33 Summary: A syntax checker for C programming language
34 Requires: %{name} = %{version}-%{release}
35 BuildArch: noarch
36 Requires: gcc
37
38 %description c
39 Able to check C sources files.
40
41 %package cpp
42 Summary: A syntax checker for C programming language
43 Requires: %{name} = %{version}-%{release}
44 BuildArch: noarch
45 Requires: gcc-c++
46
47 %description cpp
48 Able to check C++ sources files.
49
50 %package css
51 Summary: A syntax checker for CSS files
52 Requires: %{name} = %{version}-%{release}
53 BuildArch: noarch
54 Requires: csslint
55
56 %description css
57 Able to check CSS sources files.
58
59 %package cucumber
60 Summary: A syntax checker for cucumber files
61 Requires: %{name} = %{version}-%{release}
62 BuildArch: noarch
63 Requires: ruby-cucumber
64
65 %description cucumber
66 Able to check cucumber sources files.
67
68 %package docbk
69 Summary: A syntax checker for docbk files
70 Requires: %{name} = %{version}-%{release}
71 BuildArch: noarch
72 Requires: libxml2-utils
73
74 %description docbk
75 Able to check docbk sources files.
76
77 %package d
78 Summary: A syntax checker for D programming language
79 Requires: %{name} = %{version}-%{release}
80 BuildArch: noarch
81 Requires: ldc
82
83 %description d
84 Able to check D sources files.
85
86 %package erlang
87 Summary: A syntax checker for Erlang programming language
88 Requires: %{name} = %{version}-%{release}
89 BuildArch: noarch
90 Requires: erlang-base
91
92 %description erlang
93 Able to check Erlang sources files.
94
95 %package eruby
96 Summary: A syntax checker for eRuby files
97 Requires: %{name} = %{version}-%{release}
98 BuildArch: noarch
99 Requires: ruby
100
101 %description eruby
102 Able to check eruby sources files.
103
104 %package fortran
105 Summary: A syntax checker for Fortran programming language
106 Requires: %{name} = %{version}-%{release}
107 BuildArch: noarch
108 Requires: gcc-gfortran
109
110 %description fortran
111 Able to check fortran sources files.
112
113 %package gentoo-metadata
114 Summary: A syntax checker for Gentoo-metadata files
115 Requires: %{name} = %{version}-%{release}
116 BuildArch: noarch
117 Requires: libxml2-utils
118
119 %description gentoo-metadata
120 Able to check Gentoo-metadata sources files.
121
122 %package haml
123 Summary: A syntax checker for haml files
124 Requires: %{name} = %{version}-%{release}
125 BuildArch: noarch
126 Requires: ruby-haml
127
128 %description haml
129 Able to check haml sources files.
130
131 %package html
132 Summary: A syntax checker for HTML files
133 Requires: %{name} = %{version}-%{release}
134 BuildArch: noarch
135 Requires: sed
136 Requires: curl
137 Requires: tidy
138
139 %description html
140 Able to check HTML sources files.
141
142 %package java
143 Summary: A syntax checker for Java programming language
144 Requires: %{name} = %{version}-%{release}
145 BuildArch: noarch
146 Requires: javac
147
148 %description java
149 Able to check Java sources files.
150
151 %package javascript
152 Summary: A syntax checker for Javascript programming language
153 Requires: %{name} = %{version}-%{release}
154 BuildArch: noarch
155 Requires: jsl
156
157 %description javascript
158 Able to check Javascript sources files.
159
160 %package json
161 Summary: A syntax checker for json files
162 Requires: %{name} = %{version}-%{release}
163 BuildArch: noarch
164 Requires: jsonlint
165
166 %description json
167 Able to check json sources files.
168
169 %package lua
170 Summary: A syntax checker for lua programmig language
171 Requires: %{name} = %{version}-%{release}
172 BuildArch: noarch
173 Requires: lua
174
175 %description lua
176 Able to check lua sources files.
177
178 %package nasm
179 Summary: A syntax checker for NASM files
180 Requires: %{name} = %{version}-%{release}
181 BuildArch: noarch
182 Requires: nasm
183
184 %description nasm
185 Able to check nasm sources files.
186
187 %package ocaml
188 Summary: A syntax checker for OCaml programming language
189 Requires: %{name} = %{version}-%{release}
190 BuildArch: noarch
191 Requires: ocaml
192
193 %description ocaml
194 Able to check OCaml sources files.
195
196 %package perl
197 Summary: A syntax checker for Perl programming language
198 Requires: %{name} = %{version}-%{release}
199 BuildArch: noarch
200 Requires: perl
201
202 %description perl
203 Able to check Perl sources files.
204
205 %package php
206 Summary: A syntax checker for PHP programming language
207 Requires: %{name} = %{version}-%{release}
208 BuildArch: noarch
209 Requires: php
210
211 %description php
212 Able to check php sources files.
213
214 %package puppet
215 Summary: A syntax checker for Puppet files
216 Requires: %{name} = %{version}-%{release}
217 BuildArch: noarch
218 Requires: puppet
219
220 %description puppet
221 Able to check Puppet sources files.
222
223 %package python
224 Summary: A syntax checker for Python programming language
225 Requires: %{name} = %{version}-%{release}
226 BuildArch: noarch
227 Requires: python
228 Requires: pyflakes
229 Requires: pylint
230
231 %description python
232 Able to check Python sources files.
233
234 %package rst
235 Summary: A syntax checker for rst files
236 Requires: %{name} = %{version}-%{release}
237 BuildArch: noarch
238 Requires: python-docutils
239
240 %description rst
241 Able to check rst sources files.
242
243 %package ruby
244 Summary: A syntax checker for Ruby progrmming language
245 Requires: %{name} = %{version}-%{release}
246 BuildArch: noarch
247 Requires: ruby
248
249 %description ruby
250 Able to check Ruby sources files.
251
252 %package sass
253 Summary: A syntax checker for Sass files
254 Requires: %{name} = %{version}-%{release}
255 BuildArch: noarch
256 Requires: ruby-haml
257
258 %description sass
259 Able to check Sass sources files.
260
261 %package scala
262 Summary: A syntax checker for Scala programing language
263 Requires: %{name} = %{version}-%{release}
264 BuildArch: noarch
265 Requires: scala
266
267 %description scala
268 Able to check Scala sources files.
269
270 %package sh
271 Summary: A syntax checker for shell programming language
272 Requires: %{name} = %{version}-%{release}
273 BuildArch: noarch
274 Requires: bash
275
276 %description sh
277 Able to check shell sources files.
278
279 %package tcl
280 Summary: A syntax checker for Tcl programming language
281 Requires: %{name} = %{version}-%{release}
282 BuildArch: noarch
283 Requires: tcl
284
285 %description tcl
286 Able to check Tcl sources files.
287
288 %package tex
289 Summary: A syntax checker for Tex files
290 Requires: %{name} = %{version}-%{release}
291 BuildArch: noarch
292 Requires: texlive-texmf
293
294 %description tex
295 Able to check Tex sources files.
296
297 %package vala
298 Summary: A syntax checker for Vala programming language
299 Requires: %{name} = %{version}-%{release}
300 BuildArch: noarch
301 Requires: vala
302
303 %description vala
304 Able to check Vala sources files.
305
306 %package xhtml
307 Summary: A syntax checker for XHTML files
308 Requires: %{name} = %{version}-%{release}
309 BuildArch: noarch
310 Requires: tidy
311
312 %description xhtml
313 Able to check XHTML sources files.
314
315 %package xml
316 Summary: A syntax checker for XML files
317 Requires: %{name} = %{version}-%{release}
318 BuildArch: noarch
319 Requires: libxml2-utils
320
321 %description xml
322 Able to check XML sources files.
323
324 %package xslt
325 Summary: A syntax checker for XSLT files
326 Requires: %{name} = %{version}-%{release}
327 BuildArch: noarch
328 Requires: libxml2-utils
329
330 %description xslt
331 Able to check XSLT sources files.
332
333 %prep
334 %setup -q -n %{gitauthor}-%{name}-%{githash}
335 # Use executable script from bindir
336 sed -i "s|expand\(.*sfile.*\).*|'%{_bindir}/erlang_check_file.erl'|" syntax_checkers/erlang.vim
337 # Use executable script from bindir
338 sed -i "s|expand\(.*sfile.*\).*|'%{_bindir}/efm_perl.pl'|" syntax_checkers/perl.vim
339 # fix executable name
340 sed -i "s|rst2pseudoxml.py|rst2pseudoxml|g" syntax_checkers/rst.vim
341
342 %build
343
344 %install
345 rm -fr %{buildroot}
346 mkdir -p %{buildroot}%{_bindir}
347 mkdir -p %{buildroot}%{vimfiles}/autoload
348 mkdir -p %{buildroot}%{vimfiles}/syntax_checkers
349 mkdir -p %{buildroot}%{vimfiles}/doc/
350 mkdir -p %{buildroot}%{vimfiles}/plugin
351
352 cp -R autoload/* %{buildroot}%{vimfiles}/autoload
353 cp -R syntax_checkers/javascript %{buildroot}%{vimfiles}/syntax_checkers
354 cp -R syntax_checkers/json %{buildroot}%{vimfiles}/syntax_checkers
355 install -m0644 doc/syntastic.txt %{buildroot}%{vimfiles}/doc/syntastic.txt
356 install -m0644 plugin/syntastic.vim %{buildroot}%{vimfiles}/plugin/syntastic.vim
357 install -m0644 syntax_checkers/*.vim %{buildroot}%{vimfiles}/syntax_checkers
358 install -m0755 syntax_checkers/erlang_check_file.erl %{buildroot}%{_bindir}/erlang_check_file.erl
359
360 %post
361 umask 022
362 cd %{vimfiles}/doc
363 vim -u NONE -esX -c "helptags ." -c quit
364 exit 0
365
366
367 %postun
368 if [ $1 -eq 0 ]; then
369 umask 022
370 cd %{vimfiles}/doc
371 >tags
372 vim -u NONE -esX -c "helptags ." -c quit
373 fi
374 exit 0
375
376 %files
377 %doc README.markdown
378 %{vimfiles}/autoload/*
379 %{vimfiles}/plugin/syntastic.vim
380 %{vimfiles}/doc/syntastic.txt
381 %{vimfiles}/syntax_checkers
382
383 %files c
384 %{vimfiles}/syntax_checkers/c.vim
385
386 %files cpp
387 %{vimfiles}/syntax_checkers/cpp.vim
388
389 %files css
390 %{vimfiles}/syntax_checkers/css.vim
391
392 %files cucumber
393 %{vimfiles}/syntax_checkers/cucumber.vim
394
395 %files docbk
396 %{vimfiles}/syntax_checkers/docbk.vim
397
398 %files erlang
399 %{_bindir}/erlang_check_file.erl
400 %{vimfiles}/syntax_checkers/erlang.vim
401
402 %files eruby
403 %{vimfiles}/syntax_checkers/eruby.vim
404
405 %files fortran
406 %{vimfiles}/syntax_checkers/fortran.vim
407
408 %files gentoo-metadata
409 %{vimfiles}/syntax_checkers/gentoo_metadata.vim
410
411 %files haml
412 %{vimfiles}/syntax_checkers/haml.vim
413
414 %files html
415 %{vimfiles}/syntax_checkers/html.vim
416
417 %files javascript
418 %{vimfiles}/syntax_checkers/javascript.vim
419 %{vimfiles}/syntax_checkers/javascript
420
421 %files json
422 %{vimfiles}/syntax_checkers/json.vim
423 %{vimfiles}/syntax_checkers/json
424
425 %files lua
426 %{vimfiles}/syntax_checkers/lua.vim
427
428 %files perl
429 %{vimfiles}/syntax_checkers/perl.vim
430
431 %files php
432 %{vimfiles}/syntax_checkers/php.vim
433
434 %files puppet
435 %{vimfiles}/syntax_checkers/puppet.vim
436
437 %files python
438 %{vimfiles}/syntax_checkers/python.vim
439
440 %files rst
441 %{vimfiles}/syntax_checkers/rst.vim
442
443 %files ruby
444 %{vimfiles}/syntax_checkers/ruby.vim
445
446 %files sass
447 %{vimfiles}/syntax_checkers/sass.vim
448 %{vimfiles}/syntax_checkers/scss.vim
449
450 %files sh
451 %{vimfiles}/syntax_checkers/sh.vim
452
453 %files tcl
454 %{vimfiles}/syntax_checkers/tcl.vim
455
456 %files tex
457 %{vimfiles}/syntax_checkers/tex.vim
458
459 %files vala
460 %{vimfiles}/syntax_checkers/vala.vim
461
462 %files xhtml
463 %{vimfiles}/syntax_checkers/xhtml.vim
464
465 %files xml
466 %{vimfiles}/syntax_checkers/xml.vim
467
468 %files xslt
469 %{vimfiles}/syntax_checkers/xslt.vim
470

  ViewVC Help
Powered by ViewVC 1.1.28