|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
Name: goldendict
|
|
|
|
|
Version: 1.5
|
|
|
|
|
Release: 0.24.RC2%{?dist}
|
|
|
|
|
Release: 0.25.RC2%{?dist}
|
|
|
|
|
Summary: A feature-rich dictionary lookup program
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
URL: http://goldendict.org
|
|
|
|
@ -56,7 +56,7 @@ Contain doc files of %{name}.
|
|
|
|
|
%autosetup -n %{name}-%{commit} -p1
|
|
|
|
|
rm -r qtsingleapplication
|
|
|
|
|
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
|
|
|
|
|
%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
|
|
|
|
|
%make_install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
@ -77,13 +78,16 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
%{_datadir}/%{name}/locale
|
|
|
|
|
%{_metainfodir}/%{name}.appdata.xml
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
|
%{_datadir}/%{name}/help
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
- Workaround #1766935
|
|
|
|
|
|
|
|
|
|