diff --git a/qt-creator.spec b/qt-creator.spec index f009c5f..e502b36 100644 --- a/qt-creator.spec +++ b/qt-creator.spec @@ -124,7 +124,7 @@ for i in 16 24 32 48 64 128 256; do done f='%{buildroot}/%{_datadir}/applications/org.qt-project.qtcreator.desktop' -sed -e 's!([ \t]*!(!g' < ${f} > ${f}.new +sed -e 's!MimeType=[ \t]*!MimeType=!g' < ${f} > ${f}.new touch -r ${f} ${f}.new mv -f ${f}.new ${f} desktop-file-validate ${f} @@ -149,6 +149,10 @@ done diff -u %{SOURCE1} $outfile || : cat $outfile +# Move documentation to correct directory. +mv -f %{buildroot}%{_defaultdocdir}/qtcreator \ + %{buildroot}%{_defaultdocdir}/%{name} + %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : @@ -186,7 +190,8 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_datadir}/qtcreator/translations/ %files doc -%doc qtcreator*.qch +%doc %{_defaultdocdir}/%{name} +%license LICENSE.GPL3-EXCEPT %changelog