[packages/binutils] workaround doc conflict between binutils and gold (fixes build with rpm4)
atler
atler at pld-linux.org
Thu Feb 11 20:35:50 CET 2021
commit 5d312d05122e9198fa2e8e7d78e443e9a286b86c
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Feb 11 20:31:17 2021 +0100
workaround doc conflict between binutils and gold (fixes build with rpm4)
binutils.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/binutils.spec b/binutils.spec
index 1d23610..845f044 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -274,6 +274,11 @@ perl -pi -e 's at -L[^ ]*/pic @@g' $RPM_BUILD_ROOT%{_libdir}/libbfd.la
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+%if %{with gold}
+install -d gold-doc
+cp -p gold/{README,ChangeLog,TODO} gold-doc
+%endif
+
%find_lang bfd
%find_lang binutils
%find_lang gas
@@ -314,7 +319,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README
-%{?with_gold:%doc gold/{ChangeLog,README,TODO}}
+%{?with_gold:%doc gold-doc}
%attr(755,root,root) %{_bindir}/addr2line
%attr(755,root,root) %{_bindir}/ar
%attr(755,root,root) %{_bindir}/as
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/binutils.git/commitdiff/5d312d05122e9198fa2e8e7d78e443e9a286b86c
More information about the pld-cvs-commit
mailing list