|
|
@ -1,10 +1,9 @@
|
|
|
|
%global owner goldendict
|
|
|
|
%global owner goldendict
|
|
|
|
%global commit 04d9dc43f67b102c7727228326c05eb82d87e4f2
|
|
|
|
%global commit 0f951b06a55f3a201891cf645a556e773bda5f52
|
|
|
|
%define __requires_exclude gstreamer1-plugins-bad-free
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: goldendict
|
|
|
|
Name: goldendict
|
|
|
|
Version: 1.5
|
|
|
|
Version: 1.5
|
|
|
|
Release: 0.20.RC2%{?dist}
|
|
|
|
Release: 0.21.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
|
|
|
@ -26,7 +25,7 @@ BuildRequires: libXtst-devel
|
|
|
|
BuildRequires: hunspell-devel
|
|
|
|
BuildRequires: hunspell-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: phonon-devel
|
|
|
|
BuildRequires: phonon-qt5-devel
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
BuildRequires: lzo-devel
|
|
|
|
BuildRequires: lzo-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
@ -34,6 +33,9 @@ BuildRequires: eb-devel
|
|
|
|
BuildRequires: qtsingleapplication-qt5-devel
|
|
|
|
BuildRequires: qtsingleapplication-qt5-devel
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: qt5-qtsvg%{?_isa}
|
|
|
|
|
|
|
|
Recommends: %{name}-docs = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Goldendict is a feature-rich dictionary lookup program.
|
|
|
|
Goldendict is a feature-rich dictionary lookup program.
|
|
|
|
The latest release has the following features:
|
|
|
|
The latest release has the following features:
|
|
|
@ -44,6 +46,7 @@ Scan popup functionality.
|
|
|
|
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
%package docs
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description docs
|
|
|
|
%description docs
|
|
|
@ -55,60 +58,24 @@ rm -r qtsingleapplication
|
|
|
|
sed -e '/qtsingleapplication.pri/d' -i %{name}.pro
|
|
|
|
sed -e '/qtsingleapplication.pri/d' -i %{name}.pro
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%qmake_qt5 PREFIX=%{_prefix} CONFIG+=qtsingleapplication CONFIG+=no_ffmpeg_player
|
|
|
|
%qmake_qt5 PREFIX=%{_prefix} CONFIG+=qtsingleapplication CONFIG+=no_ffmpeg_player %{name}.pro
|
|
|
|
%make_build
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
|
%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 %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Register as an application to be visible in the software center
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# NOTE: It would be *awesome* if this file was maintained by the upstream
|
|
|
|
|
|
|
|
# project, translated and installed into the right place during `make install`.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/metainfo
|
|
|
|
|
|
|
|
cat > %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml <<EOF
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
EmailAddress: ikm@goldendict.org
|
|
|
|
|
|
|
|
SentUpstream: 2014-09-18
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<application>
|
|
|
|
|
|
|
|
<id type="desktop">goldendict.desktop</id>
|
|
|
|
|
|
|
|
<metadata_license>CC0-1.0</metadata_license>
|
|
|
|
|
|
|
|
<summary>Look up definitions</summary>
|
|
|
|
|
|
|
|
<description>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
Goldendict is an application to look up the definitions of words. It has the ability to
|
|
|
|
|
|
|
|
query both dictionaries saved on your local machine, and to query online dictionaries and
|
|
|
|
|
|
|
|
encyclopedias such as Wikipedia, Wiktionary and Urban Dictionary.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</description>
|
|
|
|
|
|
|
|
<url type="homepage">http://goldendict.org/</url>
|
|
|
|
|
|
|
|
<screenshots>
|
|
|
|
|
|
|
|
<screenshot type="default">http://goldendict.org/screenshots/sprechen-wiktionary.png</screenshot>
|
|
|
|
|
|
|
|
<screenshot>http://goldendict.org/screenshots/damselfly-heady.png</screenshot>
|
|
|
|
|
|
|
|
</screenshots>
|
|
|
|
|
|
|
|
<!-- FIXME: change this to an upstream email address for spec updates
|
|
|
|
|
|
|
|
<updatecontact>someone_who_cares@upstream_project.org</updatecontact>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
</application>
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
|
|
|
|
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/metainfo/%{name}.appdata.xml
|
|
|
|
%{_datadir}/%{name}/locale
|
|
|
|
|
|
|
|
%{_metainfodir}/%{name}.appdata.xml
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
|
|
|
@ -116,6 +83,10 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.a
|
|
|
|
%{_datadir}/%{name}/help
|
|
|
|
%{_datadir}/%{name}/help
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Jul 29 2019 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5-0.21.RC2
|
|
|
|
|
|
|
|
- Updated to latest Git snapshot with lots of Qt 5.12 crash fixes.
|
|
|
|
|
|
|
|
- SPEC cleanup.
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-0.20.RC2
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-0.20.RC2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|