Added a separate desktop icon for Gnome users with workaround.

f39
Vitaly Zaitsev 5 years ago
parent 2c8c3eef04
commit 01d11d45c7
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A

@ -3,7 +3,7 @@
Name: goldendict Name: goldendict
Version: 1.5 Version: 1.5
Release: 0.24.RC2%{?dist} Release: 0.25.RC2%{?dist}
Summary: A feature-rich dictionary lookup program Summary: A feature-rich dictionary lookup program
License: GPLv3+ License: GPLv3+
URL: http://goldendict.org URL: http://goldendict.org
@ -56,7 +56,7 @@ Contain doc files of %{name}.
%autosetup -n %{name}-%{commit} -p1 %autosetup -n %{name}-%{commit} -p1
rm -r qtsingleapplication rm -r qtsingleapplication
sed -e '/qtsingleapplication.pri/d' -i %{name}.pro sed -e '/qtsingleapplication.pri/d' -i %{name}.pro
sed 's:Exec=goldendict:Exec=QT_QPA_PLATFORM=xcb goldendict:g' -i redist/goldendict.desktop cp redist/%{name}.desktop redist/%{name}-x11.desktop
%build %build
%qmake_qt5 PREFIX=%{_prefix} CONFIG+=qtsingleapplication CONFIG+=no_ffmpeg_player %{name}.pro %qmake_qt5 PREFIX=%{_prefix} CONFIG+=qtsingleapplication CONFIG+=no_ffmpeg_player %{name}.pro
@ -65,10 +65,11 @@ sed 's:Exec=goldendict:Exec=QT_QPA_PLATFORM=xcb goldendict:g' -i redist/goldendi
%install %install
%make_install INSTALL_ROOT=%{buildroot} %make_install INSTALL_ROOT=%{buildroot}
rm -rf %{buildroot}%{_datadir}/app-install rm -rf %{buildroot}%{_datadir}/app-install
desktop-file-install --set-key=Exec --set-value="env QT_QPA_PLATFORM=xcb %{name}" --set-name="GoldenDict (X11)" --add-only-show-in="GNOME;" --dir=%{buildroot}%{_datadir}/applications redist/%{name}-x11.desktop
%check %check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%files %files
%license LICENSE.txt %license LICENSE.txt
@ -77,13 +78,16 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}
%{_datadir}/%{name}/locale %{_datadir}/%{name}/locale
%{_metainfodir}/%{name}.appdata.xml %{_metainfodir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}.png %{_datadir}/pixmaps/%{name}.png
%files docs %files docs
%{_datadir}/%{name}/help %{_datadir}/%{name}/help
%changelog %changelog
* Sun Mar 15 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5-0.25.RC2
- Added a separate desktop icon for Gnome users with workaround.
* Sat Mar 14 2020 Mosaab Alzoubi <moceap@hotmail.com> - 1.5-0.24.RC2 * Sat Mar 14 2020 Mosaab Alzoubi <moceap@hotmail.com> - 1.5-0.24.RC2
- Workaround #1766935 - Workaround #1766935

Loading…
Cancel
Save