x-tile-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. %define add_japo 1
  2. Summary: gnome panel applet to select and tile windows
  3. Summary(ja): ウィンドウを整列させる Gnome パネルアプレット
  4. Name: x-tile
  5. Version: 1.8.6
  6. Release: 1%{?_dist_release}
  7. Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.gz
  8. %if %{add_japo}
  9. Source1: x-tile-1.8.6-1-ja.po
  10. %endif
  11. Patch0: x-tile_1.8.6-ja.patch
  12. License: GPLv2
  13. Group: User Interface/Desktops
  14. URL: http://www.giuspen.com/x-tile/
  15. Requires: python, pygtk2, gnome-python-applet
  16. Requires(post): desktop-file-utils
  17. Requires(postun):desktop-file-utils
  18. BuildArch: noarch
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Packager: kazutaka, iwaim
  21. %description
  22. X-tile is a gnome applet for your panel (or optionally a standalone
  23. application, working with kde as well) that allows you to select
  24. a number of windows and tile them in different ways.
  25. This is especially useful for comparing products in separate
  26. web pages, or for programmers refering to documentation as they
  27. are programming.
  28. %description -l ja
  29. X-tile は指定したウィンドウを様々なレイアウトで整列させられる
  30. Gnome パネルアプレットです。
  31. (*また単独のアプリケーションとしても使用できますし、KDE 上で
  32. も問題なく動作します。)
  33. このアプレットは、(例えば)複数のウェブページを比較したり、ド
  34. キュメントを参照しながらプログラミングをしたり、といった場面
  35. で役に立ちます。
  36. %prep
  37. %setup -q -n %{name}_%{version}
  38. %patch0 -p1
  39. %build
  40. # install japanese translation
  41. %if %{add_japo}
  42. %{__mkdir_p} locale/ja/LC_MESSAGES
  43. msgfmt %{SOURCE1} -o locale/ja/LC_MESSAGES/%{name}.mo
  44. %endif
  45. %install
  46. %{__rm} -rf $RPM_BUILD_ROOT
  47. %{__mkdir_p} %{buildroot}/%{_bindir}
  48. %{__cp} %{name} %{buildroot}/%{_bindir}/
  49. %{__mkdir_p} %{buildroot}/%{_prefix}/lib/bonobo/servers
  50. %{__cp} linux/%{name}.server %{buildroot}/%{_prefix}/lib/bonobo/servers
  51. %{__mkdir_p} %{buildroot}/%{_datadir}/applications
  52. %{__cp} linux/%{name}.desktop %{buildroot}/%{_datadir}/applications/
  53. %{__mkdir_p} %{buildroot}/%{_datadir}/pixmaps
  54. %{__cp} linux/%{name}.svg %{buildroot}/%{_datadir}/pixmaps/
  55. %{__mkdir_p} %{buildroot}/%{_datadir}/%{name}/glade
  56. %{__cp} glade/* %{buildroot}/%{_datadir}/%{name}/glade
  57. %{__mkdir_p} %{buildroot}/%{_datadir}/%{name}/modules
  58. %{__cp} modules/* %{buildroot}/%{_datadir}/%{name}/modules
  59. %{__mkdir_p} %{buildroot}/%{_localedir}
  60. for dirname in locale/*
  61. do
  62. if [ -d $dirname ]; then
  63. %{__cp} -r $dirname %{buildroot}/%{_localedir}
  64. fi
  65. done
  66. %find_lang %{name}
  67. %post
  68. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  69. %postun
  70. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  71. %clean
  72. %{__rm} -rf $RPM_BUILD_ROOT
  73. %files -f %{name}.lang
  74. %defattr(-,root,root)
  75. %doc license
  76. %{_bindir}/%{name}
  77. %{_prefix}/lib/bonobo/servers/%{name}.server
  78. %{_datadir}/applications/%{name}.desktop
  79. %{_datadir}/pixmaps/%{name}.svg
  80. %{_datadir}/%{name}
  81. %changelog
  82. * Thu Mar 31 2011 IWAI, Masaharu <iwai@alib.jp> 1.8.6-1
  83. - new upstream release
  84. - add ja.po (Source1)
  85. - add ja patch (Patch0)
  86. * Fri Jul 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.6.1-1
  87. - new upstream release
  88. - drop Source1(ja.po), merged into upstream
  89. * Mon Jul 19 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.6-2
  90. - add Source1: japanese translation (thanks iwai-san)
  91. * Fri Jul 16 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.6-1
  92. - initial build for Vine Linux