Fixup the %files list for --without docs

RPM build errors:
    ...
    Directory not found: /builddir/build/BUILD/binutils-2.43.50-build/BUILDROOT/usr/share/doc/gprofng
    File not found: /builddir/build/BUILD/binutils-2.43.50-build/BUILDROOT/usr/share/doc/gprofng/examples.tar.gz
This commit is contained in:
Miro Hrončok 2024-10-30 13:58:22 +01:00
commit 3e7c1aeff4

View file

@ -1346,9 +1346,11 @@ exit 0
%dir %{_libdir}/gprofng
%{_libdir}/gprofng/*
%{_sysconfdir}/gprofng.rc
%if %{with docs}
%dir %{_docdir}/gprofng
%{_docdir}/gprofng/examples.tar.gz
%endif
%endif
%if %{with crossbuilds}