Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %define githash 83115ad
- %define gitdate 20100307
- Name: goldendict
- Version: 0.9.0
- Release: 5.%{gitdate}git%{githash}%{?dist}
- Summary: A feature-rich dictionary lookup program
- Group: Applications/System
- License: GPLv3+
- URL: http://goldendict.berlios.de/
- #Source0: http://prdownload.berlios.de/goldendict/goldendict-0.9.0-src-x11.tar.bz2
- # The source is generated from the git snapshot using the following command
- # git clone git://git.berlios.de/goldendict
- # git archive master --prefix=goldendict-`git log --pretty=format:"%h"| head -n1`/ |gzip > goldendict-`git log --pretty=format:"%h"|head -n1`.tar.gz
- Source0: %{name}-%{githash}.tar.gz
- BuildRoot: %{_tmppath}/%{name}-%{githash}-%{release}-root-%(%{__id_u} -n)
- BuildRequires: qt-devel >= 4.5
- BuildRequires: libXtst-devel
- BuildRequires: libzip-devel
- BuildRequires: hunspell-devel
- BuildRequires: libvorbis-devel
- BuildRequires: desktop-file-utils
- BuildRequires: phonon-devel
- #Requires:
- %description
- Goldendict is a feature-rich dictionary lookup program.
- The latest release has the following features:
- Use of WebKit for an accurate articles' representation;
- Support of multiple dictionary file formats;
- Support MediaWiki-based sites to perform search;
- Scan popup functionality.
- %prep
- %setup -q -n goldendict-%{githash}
- %build
- cd src
- PREFIX=%{_prefix} qmake-qt4
- make %{?_smp_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- cd src
- make install INSTALL_ROOT=$RPM_BUILD_ROOT
- rm -rf %{buildroot}/%{_datadir}/app-install
- desktop-file-install \
- --add-category="Utility" \
- --remove-category="Office" \
- --remove-category="Dictionary" \
- --remove-category="Education" \
- --remove-category="Qt" \
- --remove-category="Applications" \
- --delete-original \
- --dir=%{buildroot}/%{_datadir}/applications \
- %{buildroot}/%{_datadir}/applications/goldendict.desktop
- desktop-file-validate %{buildroot}/%{_datadir}/applications/goldendict.desktop
- %clean
- rm -rf $RPM_BUILD_ROOT
- %files
- %defattr(-,root,root,-)
- %doc src/LICENSE.txt
- %{_bindir}/goldendict
- %{_datadir}/applications/goldendict.desktop
- %{_datadir}/pixmaps/goldendict.png
- %changelog
- * Sun Mar 07 2010 Howard Ning <liberty@live.com> - 0.9.0-5.20091226git7a03248
- - New upstream git.
- - Add phonon-devel as build requirement.
- * Sat Feb 06 2010 Howard Ning <liberty@live.com> - 0.9.0-4.20091226git7a03248
- - New upstream git. Fix some sound problem and scan popup problem.
- * Sat Dec 26 2009 Howard Ning <liberty@live.com> - 0.9.0-3.20091226git7a03248
- - New upstream git. Fix punctuation indexing problem and audio problems.
- * Thu Dec 10 2009 Howard Ning <liberty@live.com> - 0.9.0-2.20091209gitc83b6cd
- - Add LICENSE.txt
- - Change the group to Applications/System
- * Wed Dec 9 2009 Howard Ning <liberty@live.com> - 0.9.0-1.20091209gitc83b6cd
- - Initial Release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement