devel/goldendict-desktopicon.patch devel/goldendict.spec devel/import.logf39
parent
2c552ee036
commit
1c5f858df8
@ -0,0 +1 @@
|
||||
goldendict-83115ad.tar.gz
|
@ -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
|
@ -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 <mrlhwliberty@gmail.com> - 0.9.0-9
|
||||
- Add kde-filesystem requirement.
|
||||
|
||||
* Fri Apr 11 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-8
|
||||
- Patch the desktop file to conform the guideline.
|
||||
- Clean up the spec file more.
|
||||
|
||||
* Fri Apr 09 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-7
|
||||
- Clean up the spec file.
|
||||
- Add ownership of the missing directories.
|
||||
|
||||
* Mon Mar 15 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-6
|
||||
- Add missing translations.
|
||||
|
||||
* Sun Mar 07 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-5
|
||||
- New upstream git.
|
||||
- Add phonon-devel as build requirement.
|
||||
|
||||
* Sat Feb 06 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-4
|
||||
- New upstream git. Fix some sound problem and scan popup problem.
|
||||
|
||||
* Sat Dec 26 2009 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-3
|
||||
- New upstream git. Fix punctuation indexing problem and audio problems.
|
||||
|
||||
* Thu Dec 10 2009 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-2
|
||||
- Add LICENSE.txt
|
||||
- Change the group to Applications/System
|
||||
|
||||
* Wed Dec 9 2009 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-1
|
||||
- Initial Release
|
||||
|
@ -0,0 +1 @@
|
||||
goldendict-0_9_0-9_20100307git83115ad_fc13:HEAD:goldendict-0.9.0-9.20100307git83115ad.fc13.src.rpm:1271850946
|
Loading…
Reference in new issue