%define gitrepo %{url} %define gitcommit 26f8a50 %define plugin nftables %{!?_licensedir:%global license %%doc} Name: vim-plugin-%{plugin} Version: 0.20200629 Release: 1%{?dist} Summary: provide syntax highlighting for nftables License: GPL URL: https://github.com/nfnty/vim-nftables.git Source: %{name}-%{version}.tar.xz BuildArch: noarch Requires: vim %description The %{plugin} plugin provides syntax highlighting for nftables. %prep %setup -q %build %install [ '%{buildroot}' != '/' ] && rm -rf %{buildroot} for i in indent syntax ftdetect ftplugin; do install -D -p -m0644 $i/%{plugin}.vim \ %{buildroot}%{_datadir}/vim/vimfiles/$i/%{plugin}.vim done %files %defattr(-,root,root,-) %{_datadir}/vim/vimfiles/indent/* %{_datadir}/vim/vimfiles/ftdetect/* %{_datadir}/vim/vimfiles/ftplugin/* %{_datadir}/vim/vimfiles/syntax/* %changelog * Thu Mar 4 2021 Philippe Kueck - 0.20200629-1 - initial packaging