1c5f858
Name:		goldendict
Howard Liberty 871e710
Version:	1.0.1
Howard Liberty 6fa0bd6
Release:	3%{?dist}
1c5f858
Summary:	A feature-rich dictionary lookup program
1c5f858
Group:		Applications/System
1c5f858
License:	GPLv3+
bf9a691
URL:		http://goldendict.berlios.de/
bf9a691
#Source0:	http://prdownload.berlios.de/goldendict/goldendict-0.9.0-src-x11.tar.bz2
1c5f858
# The source is generated from the git snapshot using the following command
Liberty 9e4cae9
# git clone git://gitorious.org/goldendict/goldendict.git
1c5f858
# git archive master --prefix=goldendict-`git log --pretty=format:"%h"| head -n1`/ |gzip > goldendict-`git log --pretty=format:"%h"|head -n1`.tar.gz
Howard Liberty cdda21b
Source0:	%{name}-%{version}-src.tar.bz2
1c5f858
1c5f858
# Modify the Icon section in desktop file to comform package guideline.
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
1c5f858
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
1c5f858
%prep
Howard Liberty 709a963
%setup -q -c -n goldendict-%{version}-src
886422f
#%patch0 -p1
1c5f858
1c5f858
1c5f858
%build
5b8e067
# Fix the directory in goldendict.pro by removing apps
886422f
sed -i 's/share\/apps\/goldendict/share\/goldendict/g' goldendict.pro
Howard Liberty 6fa0bd6
# Fix the hunspell directory
Howard Liberty 6fa0bd6
sed -i 's|myspell/dicts|myspell|g' config.cc 
1c5f858
PREFIX=%{_prefix} qmake-qt4
1c5f858
make %{?_smp_mflags}
1c5f858
1c5f858
1c5f858
%install
1c5f858
rm -rf %{buildroot}
bf9a691
make install INSTALL_ROOT=%{buildroot} INSTALL="install -p"
1c5f858
rm -rf %{buildroot}/%{_datadir}/app-install
886422f
886422f
# Fix the icon name in desktop file
886422f
sed -i 's/\/usr\/share\/pixmaps\/goldendict\.png/goldendict/g' %{buildroot}/%{_datadir}/applications/goldendict.desktop
886422f
# Fix the categories in desktop file
22842bc
desktop-file-install	\
Howard Liberty 871e710
--add-category="Dictionary"	\
22842bc
--remove-category="Education"	\
22842bc
--remove-category="Applications"	\
22842bc
--delete-original	\
22842bc
--dir=%{buildroot}%{_datadir}/applications	\
22842bc
%{buildroot}%{_datadir}/applications/goldendict.desktop
886422f
install -d %{buildroot}/%{_datadir}/goldendict/locale
886422f
install -pm 644 locale/*.qm %{buildroot}/%{_datadir}/goldendict/locale
1c5f858
1c5f858
1c5f858
%clean
1c5f858
rm -rf %{buildroot}
1c5f858
1c5f858
1c5f858
%files
1c5f858
%defattr(-,root,root,-)
d7146a6
%doc LICENSE.txt
886422f
%dir %{_datadir}/goldendict/
886422f
%dir %{_datadir}/goldendict/locale/
1c5f858
%{_bindir}/goldendict
1c5f858
%{_datadir}/applications/goldendict.desktop
1c5f858
%{_datadir}/pixmaps/goldendict.png
886422f
%{_datadir}/goldendict/locale/*.qm
1c5f858
1c5f858
1c5f858
1c5f858
%changelog
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
1c5f858
* Fri 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.
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