|
|
@ -1,9 +1,9 @@
|
|
|
|
%define githash 83115ad
|
|
|
|
%define githash ceab951
|
|
|
|
%define gitdate 20100307
|
|
|
|
%define gitdate 20100510
|
|
|
|
|
|
|
|
|
|
|
|
Name: goldendict
|
|
|
|
Name: goldendict
|
|
|
|
Version: 0.9.0
|
|
|
|
Version: 0.9.0
|
|
|
|
Release: 9.%{gitdate}git%{githash}%{?dist}
|
|
|
|
Release: 10.%{gitdate}git%{githash}%{?dist}
|
|
|
|
Summary: A feature-rich dictionary lookup program
|
|
|
|
Summary: A feature-rich dictionary lookup program
|
|
|
|
Group: Applications/System
|
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv3+
|
|
|
|
License: GPLv3+
|
|
|
@ -38,7 +38,7 @@ Scan popup functionality.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n goldendict-%{githash}
|
|
|
|
%setup -q -n goldendict-%{githash}
|
|
|
|
%patch0 -p0
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -50,20 +50,14 @@ make %{?_smp_mflags}
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
cd src
|
|
|
|
cd src
|
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
make install INSTALL_ROOT=%{buildroot} INSTALL="install -p"
|
|
|
|
rm -rf %{buildroot}/%{_datadir}/app-install
|
|
|
|
rm -rf %{buildroot}/%{_datadir}/app-install
|
|
|
|
desktop-file-install \
|
|
|
|
desktop-file-install \
|
|
|
|
--add-category="Utility" \
|
|
|
|
--delete-original \
|
|
|
|
--remove-category="Office" \
|
|
|
|
--dir=%{buildroot}/%{_datadir}/applications \
|
|
|
|
--remove-category="Dictionary" \
|
|
|
|
%{buildroot}/%{_datadir}/applications/goldendict.desktop
|
|
|
|
--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 -d %{buildroot}/%{_datadir}/apps/goldendict/locale
|
|
|
|
install -m 644 locale/*.qm %{buildroot}/%{_datadir}/apps/goldendict/locale
|
|
|
|
install -pm 644 locale/*.qm %{buildroot}/%{_datadir}/apps/goldendict/locale
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
@ -83,13 +77,16 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed May 15 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-10
|
|
|
|
|
|
|
|
- Update to latest upstream.
|
|
|
|
|
|
|
|
- Clean up the spec file more.
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 14 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-9
|
|
|
|
* Wed Apr 14 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-9
|
|
|
|
- Add kde-filesystem requirement.
|
|
|
|
- Add kde-filesystem requirement.
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 11 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-8
|
|
|
|
* Fri Apr 11 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-8
|
|
|
|
- Patch the desktop file to conform the guideline.
|
|
|
|
- Patch the desktop file to conform the guideline.
|
|
|
|
- Clean up the spec file more.
|
|
|
|
- Clean up the spec file more.
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 09 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-7
|
|
|
|
* Fri Apr 09 2010 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-7
|
|
|
|
- Clean up the spec file.
|
|
|
|
- Clean up the spec file.
|
|
|
|
- Add ownership of the missing directories.
|
|
|
|
- Add ownership of the missing directories.
|
|
|
@ -113,4 +110,3 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Dec 9 2009 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-1
|
|
|
|
* Wed Dec 9 2009 Howard Ning <mrlhwliberty@gmail.com> - 0.9.0-1
|
|
|
|
- Initial Release
|
|
|
|
- Initial Release
|
|
|
|
|
|
|
|
|
|
|
|