docky-vl.spec 4.4 KB

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