diff --git a/qt5-qtserialport.spec b/qt5-qtserialport.spec index 60e02e1..5127159 100644 --- a/qt5-qtserialport.spec +++ b/qt5-qtserialport.spec @@ -76,6 +76,12 @@ make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} %if 0%{?docs} make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform} + +# workaround issue where on some archs/releases doc file is named examples-serialport.html or qtserialport-examples.html +if [ -f %{buildroot}%{_qt5_docdir}/qtserialport/qtserialport-examples.html ]; then + mv %{buildroot}%{_qt5_docdir}/qtserialport/qtserialport-examples.html \ + %{buildroot}%{_qt5_docdir}/qtserialport/examples-serialport.html +fi %endif ## .prl/.la file love