Advertisement
Guest User

Untitled

a guest
Mar 7th, 2010
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. %define githash 83115ad
  2. %define gitdate 20100307
  3.  
  4. Name: goldendict
  5. Version: 0.9.0
  6. Release: 5.%{gitdate}git%{githash}%{?dist}
  7. Summary: A feature-rich dictionary lookup program
  8. Group: Applications/System
  9. License: GPLv3+
  10. URL: http://goldendict.berlios.de/
  11. #Source0: http://prdownload.berlios.de/goldendict/goldendict-0.9.0-src-x11.tar.bz2
  12. # The source is generated from the git snapshot using the following command
  13. # git clone git://git.berlios.de/goldendict
  14. # git archive master --prefix=goldendict-`git log --pretty=format:"%h"| head -n1`/ |gzip > goldendict-`git log --pretty=format:"%h"|head -n1`.tar.gz
  15. Source0: %{name}-%{githash}.tar.gz
  16. BuildRoot: %{_tmppath}/%{name}-%{githash}-%{release}-root-%(%{__id_u} -n)
  17.  
  18. BuildRequires: qt-devel >= 4.5
  19. BuildRequires: libXtst-devel
  20. BuildRequires: libzip-devel
  21. BuildRequires: hunspell-devel
  22. BuildRequires: libvorbis-devel
  23. BuildRequires: desktop-file-utils
  24. BuildRequires: phonon-devel
  25.  
  26. #Requires:
  27.  
  28. %description
  29. Goldendict is a feature-rich dictionary lookup program.
  30. The latest release has the following features:
  31. Use of WebKit for an accurate articles' representation;
  32. Support of multiple dictionary file formats;
  33. Support MediaWiki-based sites to perform search;
  34. Scan popup functionality.
  35.  
  36. %prep
  37. %setup -q -n goldendict-%{githash}
  38.  
  39.  
  40. %build
  41. cd src
  42. PREFIX=%{_prefix} qmake-qt4
  43. make %{?_smp_mflags}
  44.  
  45.  
  46. %install
  47. rm -rf $RPM_BUILD_ROOT
  48. cd src
  49. make install INSTALL_ROOT=$RPM_BUILD_ROOT
  50. rm -rf %{buildroot}/%{_datadir}/app-install
  51. desktop-file-install \
  52. --add-category="Utility" \
  53. --remove-category="Office" \
  54. --remove-category="Dictionary" \
  55. --remove-category="Education" \
  56. --remove-category="Qt" \
  57. --remove-category="Applications" \
  58. --delete-original \
  59. --dir=%{buildroot}/%{_datadir}/applications \
  60. %{buildroot}/%{_datadir}/applications/goldendict.desktop
  61. desktop-file-validate %{buildroot}/%{_datadir}/applications/goldendict.desktop
  62.  
  63.  
  64.  
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67.  
  68.  
  69. %files
  70. %defattr(-,root,root,-)
  71. %doc src/LICENSE.txt
  72. %{_bindir}/goldendict
  73. %{_datadir}/applications/goldendict.desktop
  74. %{_datadir}/pixmaps/goldendict.png
  75.  
  76.  
  77.  
  78. %changelog
  79. * Sun Mar 07 2010 Howard Ning <liberty@live.com> - 0.9.0-5.20091226git7a03248
  80. - New upstream git.
  81. - Add phonon-devel as build requirement.
  82.  
  83. * Sat Feb 06 2010 Howard Ning <liberty@live.com> - 0.9.0-4.20091226git7a03248
  84. - New upstream git. Fix some sound problem and scan popup problem.
  85.  
  86. * Sat Dec 26 2009 Howard Ning <liberty@live.com> - 0.9.0-3.20091226git7a03248
  87. - New upstream git. Fix punctuation indexing problem and audio problems.
  88.  
  89. * Thu Dec 10 2009 Howard Ning <liberty@live.com> - 0.9.0-2.20091209gitc83b6cd
  90. - Add LICENSE.txt
  91. - Change the group to Applications/System
  92.  
  93. * Wed Dec 9 2009 Howard Ning <liberty@live.com> - 0.9.0-1.20091209gitc83b6cd
  94. - Initial Release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement