docky-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. %define pyver %(python -c 'import sys;print(sys.version[0:3])')
  2. %define pysite %{_libdir}/python%{pyver}/site-packages
  3. %define build_vine5 0
  4. %if "%{?_dist_release}" == "vl5"
  5. %define build_vine5 1
  6. %endif
  7. Summary: Dock application for GNOME
  8. Summary(ja): GNOME 向けのドックアプリケーション
  9. Name: docky
  10. Version: 2.0.9
  11. Release: 1%{?_dist_release}
  12. Source0: http://launchpad.net/docky/2.0/2.0.5/+download/%{name}-%{version}.tar.gz
  13. Source1: docky-2.0.9-ja.po
  14. Patch1: docky-2.0.5-clock-date-format.patch
  15. License: GPLv3
  16. Group: Applications/Accessories
  17. URL: http://www.go-docky.com/
  18. Requires: gconf-sharp2
  19. Requires: gnome-keyring-sharp
  20. Requires: mono-web
  21. Requires: rsvg2-sharp
  22. Requires(post): desktop-file-utils
  23. Requires(postun):desktop-file-utils
  24. BuildRequires: python
  25. BuildRequires: gtk2-devel
  26. BuildRequires: GConf2-devel
  27. BuildRequires: gtk-sharp2-gapi
  28. BuildRequires: gconf-sharp2
  29. BuildRequires: gtk-sharp2
  30. BuildRequires: gnome-desktop-sharp2
  31. BuildRequires: gnome-keyring-sharp-devel
  32. BuildRequires: gnome-sharp2
  33. BuildRequires: gnome-vfs-sharp2
  34. BuildRequires: rsvg2-sharp
  35. BuildRequires: notify-sharp-devel
  36. BuildRequires: wnck-sharp
  37. BuildRequires: mono-addins
  38. BuildRequires: mono-core
  39. BuildRequires: mono-devel
  40. BuildRequires: ndesk-dbus-glib
  41. BuildRequires: ndesk-dbus
  42. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  43. Packager: kazutaka
  44. %description
  45. Docky is a full fledged dock application that makes opening common applications
  46. and managing windows easier and quicker. Docky is fully integrated into the GNOME
  47. Desktop and features a no non-sense approach to configuration and usage.
  48. %description -l ja
  49. Docky はアプリケーションの実行やウィンドウの操作を簡単かつ素早く実行できる、
  50. 十分な機能を備えたドックアプリケーションです。Docky は GNOME デスクトップ
  51. 環境と密接に統合されており、直感的に使えるようにデザインされています。
  52. %prep
  53. %setup -q
  54. %patch1 -p1 -b .clock-date-format
  55. %{__cp} %{SOURCE1} po/ja.po
  56. %build
  57. %configure
  58. %{__make} %{?_smp_mflags}
  59. %install
  60. %{__rm} -rf $RPM_BUILD_ROOT
  61. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  62. %find_lang %{name}
  63. %post
  64. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  65. touch --no-create %{_datadir}/icons/hicolor
  66. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  67. /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
  68. fi
  69. %postun
  70. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  71. touch --no-create %{_datadir}/icons/hicolor
  72. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  73. /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
  74. fi
  75. %clean
  76. %{__rm} -rf $RPM_BUILD_ROOT
  77. %files -f %{name}.lang
  78. %defattr(-,root,root)
  79. %doc
  80. %{_sysconfdir}/xdg/autostart/%{name}.desktop
  81. %{_bindir}/%{name}
  82. %{_libdir}/%{name}
  83. %{_libdir}/pkgconfig/%{name}.*
  84. #%{pysite}/%name
  85. %{python_sitelib}/%name
  86. %{_datadir}/applications/%{name}.desktop
  87. %{_datadir}/%{name}
  88. %{_datadir}/icons/hicolor/16x16/apps/%{name}.svg
  89. %{_datadir}/icons/hicolor/22x22/apps/%{name}.svg
  90. %{_datadir}/icons/hicolor/24x24/apps/%{name}.svg
  91. %{_datadir}/icons/hicolor/32x32/apps/%{name}.svg
  92. %{_datadir}/icons/hicolor/48x48/apps/%{name}.svg
  93. %{_datadir}/icons/hicolor/48x48/mimetypes/extension.svg
  94. %{_datadir}/icons/hicolor/64x64/apps/%{name}.svg
  95. %{_datadir}/icons/hicolor/128x128/apps/%{name}.svg
  96. %{_datadir}/icons/hicolor/128x128/apps/gmail.png
  97. %changelog
  98. * Mon Jan 03 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.9-1
  99. - new upstream release
  100. - update Source1 (japanese translation)
  101. - drop patch2 (fixed in upstream)
  102. * Wed Oct 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.7-2
  103. - add build_vine5 conditional macro (don't apply patch2 on Vine 5)
  104. - add Requires: gconf-sharp2, gnome-keyring-sharp, mono-web, rsvg2-sharp
  105. * Mon Oct 11 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.7-1
  106. - new upstream release
  107. - build with mono-2.8 (VineSeed)
  108. - add Patch2 to drop dependency mono.getoptions (VineSeed)
  109. * Thu Sep 09 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.6-1
  110. - new upstream release
  111. * Fri Aug 13 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.5-2
  112. - fixed python2.6/site-package path in %%files
  113. * Sat Aug 07 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.5-1
  114. - initial build for Vine Linux
  115. - add Patch1: modify date/time format to make them translatable
  116. - add Source1: updated japanese translation