1 %define _syntax conkyrc
2 %define _vimdatadir %{_datadir}/vim/vimfiles
4 Summary: Vim syntax: Highlight code in conky config file
5 Summary(pl.UTF-8): Opis składni dla Vima: podświetlanie kodu wewnątrz plików konfiguracyjnych conky'ego
6 Name: vim-syntax-conkyrc
9 # can't find license information.
11 Group: Applications/Editors/Vim
12 Source0: http://vim.sourceforge.net/scripts/download_script.php?src_id=4621
13 # Source0-md5: 14af15829b26e101df5e020397fa0536
14 URL: http://vim.sourceforge.net/scripts/script.php?script_id=1367
15 # for _vimdatadir existence
16 Requires: vim-rt >= 4:6.3.058-3
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This script highlights code in conky config file.
23 %description -l pl.UTF-8
24 Ten skrypt podświetla kod w pliku konfiguracyjnym conky'ego.
29 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_vimdatadir}/{syntax,ftdetect}
32 install %{SOURCE0} $RPM_BUILD_ROOT%{_vimdatadir}/syntax/%{_syntax}.vim
34 cat > $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect/%{_syntax}.vim <<EOF
35 au BufNewFile,BufRead *%{_syntax} set filetype=%{_syntax}
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %{_vimdatadir}/syntax/*
44 %{_vimdatadir}/ftdetect/*