From 1c5f858df855b6274366f5705d33e4bd37d2e28f Mon Sep 17 00:00:00 2001 From: helloworld1 Date: Apr 21 2010 11:57:32 +0000 Subject: initial commit Modified Files: devel/.cvsignore devel/sources Added Files: devel/goldendict-desktopicon.patch devel/goldendict.spec devel/import.log --- diff --git a/.cvsignore b/.cvsignore index e69de29..6dfc2a5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +goldendict-83115ad.tar.gz diff --git a/goldendict-desktopicon.patch b/goldendict-desktopicon.patch new file mode 100644 index 0000000..3d3571d --- /dev/null +++ b/goldendict-desktopicon.patch @@ -0,0 +1,9 @@ +--- src/redist/goldendict.desktop.orig 2010-04-11 12:57:05.081844813 -0400 ++++ src/redist/goldendict.desktop 2010-04-11 12:58:03.998845830 -0400 +@@ -6,5 +6,5 @@ + GenericName=Multiformat Dictionary + Comment=GoldenDict + Encoding=UTF-8 +-Icon=/usr/share/pixmaps/goldendict.png ++Icon=goldendict + Exec=goldendict diff --git a/goldendict.spec b/goldendict.spec new file mode 100644 index 0000000..0fae79a --- /dev/null +++ b/goldendict.spec @@ -0,0 +1,116 @@ +%define githash 83115ad +%define gitdate 20100307 + +Name: goldendict +Version: 0.9.0 +Release: 9.%{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 + +# Modify the Icon section in desktop file to comform package guideline. +Patch0: goldendict-desktopicon.patch + +BuildRequires: qt-devel +BuildRequires: libXtst-devel +BuildRequires: libzip-devel +BuildRequires: hunspell-devel +BuildRequires: libvorbis-devel +BuildRequires: desktop-file-utils +BuildRequires: phonon-devel + +Requires: kde-filesystem + + +%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} +%patch0 -p0 + + +%build +cd src +PREFIX=%{_prefix} qmake-qt4 +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +cd src +make install INSTALL_ROOT=%{buildroot} +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 +install -d %{buildroot}/%{_datadir}/apps/goldendict/locale +install -m 644 locale/*.qm %{buildroot}/%{_datadir}/apps/goldendict/locale + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc src/LICENSE.txt +%dir %{_datadir}/apps/goldendict/ +%dir %{_datadir}/apps/goldendict/locale/ +%{_bindir}/goldendict +%{_datadir}/applications/goldendict.desktop +%{_datadir}/pixmaps/goldendict.png +%{_datadir}/apps/goldendict/locale/*.qm + + + +%changelog +* Wed Apr 14 2010 Howard Ning - 0.9.0-9 +- Add kde-filesystem requirement. + +* Fri Apr 11 2010 Howard Ning - 0.9.0-8 +- Patch the desktop file to conform the guideline. +- Clean up the spec file more. + +* Fri Apr 09 2010 Howard Ning - 0.9.0-7 +- Clean up the spec file. +- Add ownership of the missing directories. + +* Mon Mar 15 2010 Howard Ning - 0.9.0-6 +- Add missing translations. + +* Sun Mar 07 2010 Howard Ning - 0.9.0-5 +- New upstream git. +- Add phonon-devel as build requirement. + +* Sat Feb 06 2010 Howard Ning - 0.9.0-4 +- New upstream git. Fix some sound problem and scan popup problem. + +* Sat Dec 26 2009 Howard Ning - 0.9.0-3 +- New upstream git. Fix punctuation indexing problem and audio problems. + +* Thu Dec 10 2009 Howard Ning - 0.9.0-2 +- Add LICENSE.txt +- Change the group to Applications/System + +* Wed Dec 9 2009 Howard Ning - 0.9.0-1 +- Initial Release + diff --git a/import.log b/import.log new file mode 100644 index 0000000..b93d1c6 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +goldendict-0_9_0-9_20100307git83115ad_fc13:HEAD:goldendict-0.9.0-9.20100307git83115ad.fc13.src.rpm:1271850946 diff --git a/sources b/sources index e69de29..44b172b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +737016234a98c9c45911329cf258cda5 goldendict-83115ad.tar.gz