%define plugin icinga2 %{!?_licensedir:%global license %%doc} Name: vim-plugin-%{plugin} Version: 2.10.1 Release: 1%{?dist} Summary: provide syntax highlighting for icinga2 configuration files License: GPL URL: https://icinga.com/ Source: https://github.com/Icinga/icinga2/archive/v%{version}.tar.gz BuildArch: noarch Requires: vim %description The %{plugin} plugin provides syntax highlighting for icinga2 configuration files. %prep %setup -q -n icinga2-%{version} %build %install [ '%{buildroot}' != '/' ] && rm -rf %{buildroot} for i in syntax ftdetect; do install -D -p -m0644 tools/syntax/vim/$i/%{plugin}.vim \ %{buildroot}%{_datadir}/vim/vimfiles/$i/%{plugin}.vim done %files %defattr(-,root,root,-) %{_datadir}/vim/vimfiles/ftdetect/* %{_datadir}/vim/vimfiles/syntax/* %changelog * Thu Mar 4 2021 Philippe Kueck - 2.10.1-1 - initial packaging