Do not use %exclude for unpackaged files (RPM 4.17 compatibility)

epel8
Benjamin A. Beasley 4 years ago
parent 958042a682
commit d8a3fc5f71

@ -142,6 +142,8 @@ install -t '%{buildroot}%{_bindir}' -p out/%{name}
install -d '%{buildroot}%{_datadir}/vim/vimfiles' install -d '%{buildroot}%{_datadir}/vim/vimfiles'
cp -vrp misc/vim/* '%{buildroot}%{_datadir}/vim/vimfiles' cp -vrp misc/vim/* '%{buildroot}%{_datadir}/vim/vimfiles'
find '%{buildroot}%{_datadir}/vim/vimfiles' \
-type f -name 'README.*' -print -delete
%py_byte_compile %{__python3} '%{buildroot}%{_datadir}/vim/vimfiles/%{name}-format.py' %py_byte_compile %{__python3} '%{buildroot}%{_datadir}/vim/vimfiles/%{name}-format.py'
install -d '%{buildroot}%{_emacs_sitestartdir}' install -d '%{buildroot}%{_emacs_sitestartdir}'
@ -169,7 +171,6 @@ grep -E '^#define[[:blank:]]+LAST_COMMIT_POSITION[[:blank:]]+'\
%{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}.1*
%exclude %{_datadir}/vim/vimfiles/README.*
%{_datadir}/vim/vimfiles/%{name}-format.py %{_datadir}/vim/vimfiles/%{name}-format.py
%{_datadir}/vim/vimfiles/autoload/%{name}.vim %{_datadir}/vim/vimfiles/autoload/%{name}.vim
%{_datadir}/vim/vimfiles/ftdetect/%{name}filetype.vim %{_datadir}/vim/vimfiles/ftdetect/%{name}filetype.vim

Loading…
Cancel
Save