From 6af316afb79cb39501f1519a2ed762d44a3d3bd1 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Mon, 8 Jan 2018 17:00:13 -0500 Subject: [PATCH] Avoid excluding non-existent .py[co] files in %doc Starting with rpm-build-4.13.0 (in F-22), brp-python-bytecompile excludes files under /usr/share/doc by default. Restrict the %files %exclude to EL <= 7 to avoid spurious 'File not found' warnings from rpm-build. --- git.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/git.spec b/git.spec index 9b9f5fc..beef4de 100644 --- a/git.spec +++ b/git.spec @@ -690,7 +690,10 @@ rm -rf %{buildroot} %files core-doc -f man-doc-files-core %defattr(-,root,root) +%if 0%{?rhel} && 0%{?rhel} <= 7 +# .py files are only bytecompiled on EL <= 7 %exclude %{_pkgdocdir}/contrib/*/*.py[co] +%endif %{_pkgdocdir}/contrib/hooks %files p4 @@ -801,6 +804,9 @@ rm -rf %{buildroot} # No files for you! %changelog +* Mon Jan 08 2018 Todd Zullinger +- Avoid excluding non-existent .py[co] files in %%doc + * Sun Jan 07 2018 Todd Zullinger - Explicitly enable tests which may be skipped opportunistically