]> git.pld-linux.org Git - packages/binutils.git/commitdiff
workaround doc conflict between binutils and gold (fixes build with rpm4)
authorJan Palus <atler@pld-linux.org>
Thu, 11 Feb 2021 19:31:17 +0000 (20:31 +0100)
committerJan Palus <atler@pld-linux.org>
Thu, 11 Feb 2021 19:35:06 +0000 (20:35 +0100)
binutils.spec

index 1d236104e519e28c4c0931b12d5c4d601f91a420..845f04451a8ecb7d915bae279d4c7c19e5f6e8ef 100644 (file)
@@ -274,6 +274,11 @@ perl -pi -e 's@-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
This page took 0.276084 seconds and 4 git commands to generate.