xfce4-dict-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Name: xfce4-dict
  2. Summary: Dictionary services for Xfce
  3. Summary(ja): Xfce の辞書サービス
  4. Version: 0.6.0
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: User Interface/Desktops
  8. URL: http://goodies.xfce.org/projects/applications/%{name}
  9. Source0: http://archive.xfce.org/src/apps/%{name}/0.6/%{name}-%{version}.tar.bz2
  10. Source1: xfce4-dict-autogen.sh
  11. Patch0: xfce4-dict-0.6.0-git20120605.patch
  12. Patch1: xfce4-dict-0.6.0-ui.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: desktop-file-utils
  15. BuildRequires: gtk2-devel >= 2.20.0
  16. BuildRequires: libxfce4ui-devel >= 4.10.0
  17. BuildRequires: libxfce4util-devel >= 4.10.0
  18. BuildRequires: xfce4-panel-devel >= 4.10.0
  19. BuildRequires: libX11-devel
  20. BuildRequires: xfce4-dev-tools
  21. Requires(post,postun): desktop-file-utils
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: Takemikaduchi
  25. %description
  26. This program allows you to search different kinds of dictionary services
  27. for words or phrases and shows you the result.
  28. Currently you can query a "Dict" server(RFC 2229), any online dictionary
  29. service by opening a web browser or search for words using a spell check
  30. program like aspell, ispell or enchant.
  31. %prep
  32. %setup -q
  33. %patch0 -p1 -b .git
  34. %patch1 -p1 -b .ui
  35. %build
  36. cp %{SOURCE1} autogen.sh
  37. NOCONFIGURE=1 ./autogen.sh
  38. %configure --disable-static
  39. make %{?_smp_mflags}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make install DESTDIR=$RPM_BUILD_ROOT
  43. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  44. desktop-file-install \
  45. --add-category="X-XFCE" \
  46. --delete-original \
  47. --dir=%{buildroot}%{_datadir}/applications \
  48. ${RPM_BUILD_ROOT}%{_datadir}/applications/xfce4-dict.desktop
  49. %find_lang %{name}-plugin
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %post
  53. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  54. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  55. update-desktop-database %{_datadir}/applications &> /dev/null || :
  56. update-desktop-database %{_datadir}/applications &> /dev/null || :
  57. %postun
  58. if [ $1 -eq 0 ]; then
  59. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  60. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  61. fi
  62. update-desktop-database %{_datadir}/applications &> /dev/null || :
  63. %files -f %{name}-plugin.lang
  64. %defattr(-,root,root,-)
  65. %doc AUTHORS ChangeLog NEWS COPYING
  66. %{_bindir}/xfce4-dict
  67. %{_libdir}/xfce4/panel/plugins/libxfce4dict.so
  68. %{_datadir}/applications/xfce4-dict.desktop
  69. %{_datadir}/icons/hicolor/*/*/*
  70. %{_datadir}/xfce4/panel/plugins/xfce4-dict-plugin.desktop
  71. %{_mandir}/man1/xfce4-dict.1.gz
  72. %changelog
  73. * Sat Jun 09 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.6.0-1
  74. - initial build for Vine Linux