|
|
|
@ -55,14 +55,7 @@ rm -rf %{buildroot}/%{_datadir}/app-install
|
|
|
|
|
# Fix the icon name in desktop file
|
|
|
|
|
sed -i 's/\/usr\/share\/pixmaps\/goldendict\.png/goldendict/g' %{buildroot}/%{_datadir}/applications/goldendict.desktop
|
|
|
|
|
# Fix the categories in desktop file
|
|
|
|
|
desktop-file-install \
|
|
|
|
|
--add-category="Utility" \
|
|
|
|
|
--remove-category="Office" \
|
|
|
|
|
--remove-category="Education" \
|
|
|
|
|
--remove-category="Applications" \
|
|
|
|
|
--delete-original \
|
|
|
|
|
--dir=%{buildroot}/%{_datadir}/applications \
|
|
|
|
|
%{buildroot}/%{_datadir}/applications/goldendict.desktop
|
|
|
|
|
desktop-file-install --add-category="Utility" --remove-category="Office" --remove-category="Education" --remove-category="Applications" --delete-original --dir=%{buildroot}/%{_datadir}/applications %{buildroot}/%{_datadir}/applications/goldendict.desktop
|
|
|
|
|
install -d %{buildroot}/%{_datadir}/goldendict/locale
|
|
|
|
|
install -pm 644 locale/*.qm %{buildroot}/%{_datadir}/goldendict/locale
|
|
|
|
|
|
|
|
|
|