From b5745c55c59c379898a01dbee0358f962c0a295a Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 1 Aug 2016 17:55:48 +0200 Subject: [PATCH] new; version 3.7.0 --- vim-plugin-syntastic.spec | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 vim-plugin-syntastic.spec diff --git a/vim-plugin-syntastic.spec b/vim-plugin-syntastic.spec new file mode 100644 index 0000000..1f59a24 --- /dev/null +++ b/vim-plugin-syntastic.spec @@ -0,0 +1,63 @@ +%define plugin syntastic +Summary: Vim plugin: Automatic syntax checking +Name: vim-plugin-%{plugin} +Version: 3.7.0 +Release: 1 +License: Vim +Group: Applications/Editors/Vim +Source0: https://github.com/scrooloose/syntastic/archive/%{version}.tar.gz +# Source0-md5: 7de3859440922dc51bca229b99abfce2 +URL: http://www.vim.org/scripts/script.php?script_id=2736 +Requires: vim-rt >= 4:7.4.0 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _vimdatadir %{_datadir}/vim + +%description +Syntastic is a syntax checking plugin that runs files through external +syntax checkers and displays any resulting errors to the user. This +can be done on demand, or automatically as files are saved. If syntax +errors are detected, the user is notified and is happy because they +didn't have to compile their code or execute their script to find +them. + +%package doc +Summary: Documentation for syntastic Vim plugin +Requires(post,postun): /usr/bin/vim +Requires: %{name} = %{version}-%{release} +Requires: vim-rt >= 4:7.4.2054-2 + +%description doc +Documentation for syntastic Vim plugin. + +%prep +%setup -qn %{plugin}-%{version} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_vimdatadir}/ +cp -pr autoload doc plugin syntax_checkers $RPM_BUILD_ROOT%{_vimdatadir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post doc +%vim_doc_helptags + +%postun doc +%vim_doc_helptags + +%files +%defattr(644,root,root,755) +%doc README.markdown CONTRIBUTING.md +%dir %{_vimdatadir}/autoload/syntastic +%{_vimdatadir}/autoload/syntastic/*.vim +%{_vimdatadir}/plugin/syntastic.vim +%dir %{_vimdatadir}/plugin/syntastic +%{_vimdatadir}/plugin/syntastic/*.vim +%{_vimdatadir}/syntax_checkers + +%files doc +%defattr(644,root,root,755) +%{_vimdatadir}/doc/syntastic.txt -- 2.44.0