]>
Commit | Line | Data |
---|---|---|
a74bca88 | 1 | %define syntax nginx |
e3b359a4 AG |
2 | Summary: Vim syntax: Highlight code in nginx config file |
3 | Summary(pl.UTF-8): Opis składni dla Vima: podświetlanie kodu wewnątrz plików konfiguracyjnych nginx | |
51b0d7d2 | 4 | Name: vim-syntax-%{syntax} |
a74bca88 | 5 | Version: 0.3.3 |
bd31b427 | 6 | Release: 2 |
e3b359a4 AG |
7 | License: public domain |
8 | Group: Applications/Editors/Vim | |
a74bca88 ER |
9 | Source0: http://www.vim.org/scripts/download_script.php?src_id=19394&/%{syntax}.vim |
10 | # Source0-md5: 10395c7a028cc58030f82ab296f13ff3 | |
f2d68fce | 11 | Source1: ftdetect.vim |
e3b359a4 | 12 | URL: http://www.vim.org/scripts/script.php?script_id=1886 |
a74bca88 | 13 | Requires: vim-rt >= 4:7.2.170 |
e3b359a4 AG |
14 | BuildArch: noarch |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
a74bca88 ER |
17 | %define _vimdatadir %{_datadir}/vim |
18 | ||
e3b359a4 AG |
19 | %description |
20 | This script highlights code in nginx config file. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Ten skrypt podświetla kod w pliku konfiguracyjnym nginx. | |
24 | ||
25 | %prep | |
a74bca88 ER |
26 | %setup -qcT |
27 | install -d syntax ftdetect | |
28 | cp -p %{SOURCE0} syntax/%{syntax}.vim | |
f2d68fce | 29 | cp -p %{SOURCE1} ftdetect/%{syntax}.vim |
e3b359a4 AG |
30 | |
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
a74bca88 ER |
33 | install -d $RPM_BUILD_ROOT%{_vimdatadir} |
34 | cp -a syntax ftdetect $RPM_BUILD_ROOT%{_vimdatadir} | |
e3b359a4 AG |
35 | |
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
a74bca88 ER |
41 | %{_vimdatadir}/syntax/nginx.vim |
42 | %{_vimdatadir}/ftdetect/nginx.vim |