From d8a3fc5f7154037a78fb817d003b3f9c80a70d4a Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 6 Apr 2021 11:40:40 -0400 Subject: [PATCH] Do not use %exclude for unpackaged files (RPM 4.17 compatibility) --- gn.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gn.spec b/gn.spec index 41999d9..d3a81ae 100644 --- a/gn.spec +++ b/gn.spec @@ -142,6 +142,8 @@ install -t '%{buildroot}%{_bindir}' -p out/%{name} install -d '%{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' install -d '%{buildroot}%{_emacs_sitestartdir}' @@ -169,7 +171,6 @@ grep -E '^#define[[:blank:]]+LAST_COMMIT_POSITION[[:blank:]]+'\ %{_mandir}/man1/%{name}.1* -%exclude %{_datadir}/vim/vimfiles/README.* %{_datadir}/vim/vimfiles/%{name}-format.py %{_datadir}/vim/vimfiles/autoload/%{name}.vim %{_datadir}/vim/vimfiles/ftdetect/%{name}filetype.vim