d6e36a4
%global owner goldendict
83776e8
%global commit eaa8e8f270bee84fbb1f73702d0b65c3f9f89efa
d6e36a4
1c5f858
Name:		goldendict
d6e36a4
Version:	1.5
5312e01
Release:	0.11.RC2%{?dist}
1c5f858
Summary:	A feature-rich dictionary lookup program
1c5f858
Group:		Applications/System
1c5f858
License:	GPLv3+
d6e36a4
URL:		http://goldendict.org
d6e36a4
Source0:	https://github.com/%{owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
df7d8ca
Patch0:		goldendict-system-qtsingleapp.patch
1c5f858
1c5f858
BuildRequires:	qt-devel
1c5f858
BuildRequires:	libXtst-devel
1c5f858
BuildRequires:	hunspell-devel
1c5f858
BuildRequires:	libvorbis-devel
1c5f858
BuildRequires:	desktop-file-utils
1c5f858
BuildRequires:	phonon-devel
d7146a6
BuildRequires:  qt-webkit-devel
35fc68c
BuildRequires:  bzip2-devel
d81128d
BuildRequires:  lzo-devel
e4ccfbc
BuildRequires:  libtiff-devel
7db23cb
BuildRequires:  eb-devel
df7d8ca
BuildRequires:  qtsingleapplication-devel
1c5f858
1c5f858
%description
bf9a691
Goldendict is a feature-rich dictionary lookup program.
1c5f858
The latest release has the following features:
1c5f858
Use of WebKit for an accurate articles' representation;
1c5f858
Support of multiple dictionary file formats;
1c5f858
Support MediaWiki-based sites to perform search;
1c5f858
Scan popup functionality.
1c5f858
b355557
%package docs
b355557
Summary: Documentation for %{name}
b355557
BuildArch: noarch
b355557
b355557
%description docs
b355557
Contain doc files of %{name}.
b355557
1c5f858
%prep
d6e36a4
%setup -q -n %{name}-%{commit}
d7dc432
%patch0 -p0
df7d8ca
rm -r qtsingleapplication
1c5f858
1c5f858
%build
69af62f
%qmake_qt4 PREFIX=%{_prefix} DISABLE_INTERNAL_PLAYER=1
1c5f858
make %{?_smp_mflags}
1c5f858
1c5f858
%install
bf9a691
make install INSTALL_ROOT=%{buildroot} INSTALL="install -p"
1c5f858
rm -rf %{buildroot}/%{_datadir}/app-install
d6e36a4
desktop-file-install %{buildroot}%{_datadir}/applications/%{name}.desktop
1c5f858
Richard Hughes 9082783
# Register as an application to be visible in the software center
Richard Hughes 9082783
#
Richard Hughes 9082783
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 9082783
# project, translated and installed into the right place during `make install`.
Richard Hughes 9082783
#
Richard Hughes 9082783
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 9082783
#
Richard Hughes 9082783
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 9082783
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 9082783
Richard Hughes 9082783
Richard Hughes 9082783
Richard Hughes 9082783
EmailAddress: ikm@goldendict.org
Richard Hughes 9082783
SentUpstream: 2014-09-18
Richard Hughes 9082783
-->
Richard Hughes 9082783
<application>
Richard Hughes 9082783
  <id type="desktop">goldendict.desktop</id>
Richard Hughes 9082783
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 9082783
  <summary>Look up definitions</summary>
Richard Hughes 9082783
  <description>
Richard Hughes 9082783
    

Richard Hughes 9082783
      Goldendict is an application to look up the definitions of words. It has the ability to
Richard Hughes 9082783
      query both dictionaries saved on your local machine, and to query online dictionaries and
Richard Hughes 9082783
      encyclopedias such as Wikipedia, Wiktionary and Urban Dictionary.
Richard Hughes 9082783
    

Richard Hughes 9082783
  </description>
Richard Hughes 9082783
  <url type="homepage">http://goldendict.org/</url>
Richard Hughes 9082783
  <screenshots>
Richard Hughes 9082783
    <screenshot type="default">http://goldendict.org/screenshots/sprechen-wiktionary.png</screenshot>
Richard Hughes 9082783
    <screenshot>http://goldendict.org/screenshots/damselfly-heady.png</screenshot>
Richard Hughes 9082783
  </screenshots>
Richard Hughes 9082783
  
Richard Hughes 9082783
  <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
Richard Hughes 9082783
   -->
Richard Hughes 9082783
</application>
Richard Hughes 9082783
EOF
Richard Hughes 9082783
6cbdf69
%files
d7146a6
%doc LICENSE.txt
886422f
%dir %{_datadir}/goldendict/
6cbdf69
%dir %{_datadir}/goldendict/locale/
1c5f858
%{_bindir}/goldendict
Richard Hughes 9082783
%{_datadir}/appdata/%{name}.appdata.xml
1c5f858
%{_datadir}/applications/goldendict.desktop
1c5f858
%{_datadir}/pixmaps/goldendict.png
6cbdf69
%{_datadir}/goldendict/locale/*.qm
1c5f858
b355557
%files docs
b355557
%dir %{_datadir}/goldendict/help
b355557
%{_datadir}/goldendict/help/*
b355557
1c5f858
%changelog
5312e01
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-0.11.RC2
5312e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5312e01
b3496de
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-0.10.RC2
b3496de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b3496de
c8862e2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-0.9.RC2
c8862e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c8862e2
8773f63
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.5-0.8.RC2
8773f63
- Rebuilt for GCC 5 C++11 ABI change
8773f63
Richard Hughes 9082783
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.5-0.7.RC2
Richard Hughes 9082783
- Add an AppData file for the software center
Richard Hughes 9082783
df7d8ca
* Sun Dec 14 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.5-0.6.RC1
df7d8ca
- Use system qtsingleapplication instead of bundled one
df7d8ca
83776e8
* Sun Dec 14 2014 Mosaab Alzoubi <moceap@hotmail.com> - 1.5-0.5.RC2
83776e8
- Update on 20141214
e4ccfbc
- Add libtiff-devel as BR
7db23cb
- Add eb-devel as BR
b355557
- Add -docs subpackage
83776e8
655308d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-0.4.RC1
655308d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
655308d
faf24bd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-0.3.RC1
faf24bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
faf24bd
22df78f
* Fri Jan 17 2014 Mosaab Alzoubi <moceap@hotmail.com> - 1.5-0.2.RC1
6cbdf69
- Use %%qmake_qt4 as suggestion by Christophe​r Meng‎ (‏cickumqt/gmail.com‏)
5bb538f
- Remove repeated BR.
6cbdf69
- Remove locale install lines, included in makeinstall function.
22df78f
d6e36a4
* Tue Jan 14 2014 Mosaab Alzoubi <moceap@hotmail.com> - 1.5-0.1.RC1
d6e36a4
- Update to 1.5RC.
d6e36a4
- General clean of spec.
d6e36a4
- Using source from GitHub.
d6e36a4
- New URL.
d6e36a4
- Remove 3 fixes and patches, fixed in upstream.
d6e36a4
- Fix a date in changelog.
d6e36a4
- Use new desktop-files Fedora method.
d6e36a4
- DISABLE_INTERNAL_PLAYER=1 because ffmpeg not found in Fedora repos.
d81128d
- Add bzip2-devel,lzo-devel to BRs.
d6e36a4
bbad0c9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-9
bbad0c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bbad0c9
e3f845d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-8
e3f845d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e3f845d
Parag Nemade a072ee6
* Sat Aug 04 2012 Parag Nemade <paragn AT fedoraproject DOT org> - 1.0.1-7
Parag Nemade a072ee6
- Fix FTBFS for gcc-4.7
Parag Nemade a072ee6
b4e8a29
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
b4e8a29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b4e8a29
4b78f73
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
4b78f73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4b78f73
19f9ae3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
19f9ae3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
19f9ae3
Howard Liberty 6fa0bd6
* Mon Dec 13 2010 Howard Ning <mrlhwliberty@gmail.com> - 1.0.1-3
Howard Liberty 6fa0bd6
- Fix the path of hunspell dictionaries
Howard Liberty 6fa0bd6
Howard Liberty a1b501f
* Fri Dec 10 2010 Howard Ning <mrlhwliberty@gmail.com> - 1.0.1-2
Howard Liberty 871e710
- Change the categories to fix 592954
Howard Liberty 871e710
Howard Liberty a1b501f
* Fri Dec 10 2010 Howard Ning <mrlhwliberty@gmail.com> - 1.0.1-1
Howard Liberty a1b501f
- New upstream
Howard Liberty a1b501f
Liberty 0dba7b4
* Tue Oct 12 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-15
Liberty 0dba7b4
- New upstream
Liberty 0dba7b4
Liberty 9e4cae9
* Wed Aug 04 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-14
Liberty 9e4cae9
- Fix the git repo
Liberty 9e4cae9
Liberty 048857b
* Wed Aug 04 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-13
Liberty 048857b
- New upstream version
Liberty 048857b
d7146a6
* Thu Jun 10 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-12
d7146a6
- New upstream version
d7146a6
- Better BGL support
d7146a6
- Updated translations
d7146a6
- Play audio from website
d7146a6
5b8e067
* Tue May 11 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-11
5b8e067
- Drop the patch files in favor of sed.
5b8e067
- Change to a more standard directory by removing app directory.
5b8e067
- Remove libzip-devel and kde-filesystem requirement.
5b8e067
5b8e067
* Tue May 11 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-10
abd8b7f
- Clean up the spec file.
abd8b7f
- Update to the latest upstream.
abd8b7f
- Enhance dictiionary groups editing.
abd8b7f
- Fix the scan popup issues more.
abd8b7f
- Update the Chinese translation.
bf9a691
1c5f858
* Wed Apr 14 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-9
1c5f858
- Add kde-filesystem requirement.
1c5f858
d6e36a4
* Sun Apr 11 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-8
1c5f858
- Patch the desktop file to conform the guideline.
1c5f858
- Clean up the spec file more.
d6e36a4
1c5f858
* Fri Apr 09 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-7
1c5f858
- Clean up the spec file.
1c5f858
- Add ownership of the missing directories.
1c5f858
1c5f858
* Mon Mar 15 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-6
1c5f858
- Add missing translations.
1c5f858
1c5f858
* Sun Mar 07 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-5
1c5f858
- New upstream git.
1c5f858
- Add phonon-devel as build requirement.
1c5f858
1c5f858
* Sat Feb 06 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-4
1c5f858
- New upstream git. Fix some sound problem and scan popup problem.
1c5f858
1c5f858
* Sat Dec 26 2009 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-3
1c5f858
- New upstream git. Fix punctuation indexing problem and audio problems.
1c5f858
1c5f858
* Thu Dec 10 2009 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-2
1c5f858
- Add LICENSE.txt
1c5f858
- Change the group to Applications/System
1c5f858
1c5f858
* Wed Dec 9 2009 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-1
1c5f858
- Initial Release