|
|
|
@ -1,9 +1,6 @@
|
|
|
|
|
%define githash ac4be0b
|
|
|
|
|
%define gitdate 20101012
|
|
|
|
|
|
|
|
|
|
Name: goldendict
|
|
|
|
|
Version: 0.9.0
|
|
|
|
|
Release: 15.%{gitdate}git%{githash}%{?dist}
|
|
|
|
|
Version: 1.0.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A feature-rich dictionary lookup program
|
|
|
|
|
Group: Applications/System
|
|
|
|
|
License: GPLv3+
|
|
|
|
@ -12,7 +9,7 @@ URL: http://goldendict.berlios.de/
|
|
|
|
|
# The source is generated from the git snapshot using the following command
|
|
|
|
|
# git clone git://gitorious.org/goldendict/goldendict.git
|
|
|
|
|
# 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
|
|
|
|
|
Source0: %{name}-%{version}-src.tar.gz
|
|
|
|
|
|
|
|
|
|
# Modify the Icon section in desktop file to comform package guideline.
|
|
|
|
|
|
|
|
|
@ -34,7 +31,7 @@ Support MediaWiki-based sites to perform search;
|
|
|
|
|
Scan popup functionality.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n goldendict-%{githash}
|
|
|
|
|
%setup -q -n goldendict-%{version}
|
|
|
|
|
#%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -54,7 +51,7 @@ rm -rf %{buildroot}/%{_datadir}/app-install
|
|
|
|
|
sed -i 's/\/usr\/share\/pixmaps\/goldendict\.png/goldendict/g' %{buildroot}/%{_datadir}/applications/goldendict.desktop
|
|
|
|
|
# Fix the categories in desktop file
|
|
|
|
|
desktop-file-install \
|
|
|
|
|
--add-category="Utility" \
|
|
|
|
|
--add-category="Dictionary" \
|
|
|
|
|
--remove-category="Office" \
|
|
|
|
|
--remove-category="Education" \
|
|
|
|
|
--remove-category="Applications" \
|
|
|
|
@ -82,6 +79,10 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 10 2010 Howard Ning <mrlhwliberty@gmail.com> - 1.0.1-1
|
|
|
|
|
- New upstream
|
|
|
|
|
- Change the categories to fix 592954
|
|
|
|
|
|
|
|
|
|
* Tue Oct 12 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-15
|
|
|
|
|
- New upstream
|
|
|
|
|
|
|
|
|
|