x-tile-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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: 2.5
  6. Release: 1%{?_dist_release}
  7. Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.xz
  8. #%if %{add_japo}
  9. Source1: x-tile-2.5-ja.po
  10. #%endif
  11. Patch0: x-tile-2.5-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: python, pygtk2
  17. Requires(post): desktop-file-utils
  18. Requires(postun):desktop-file-utils
  19. BuildArch: noarch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. Packager: kazutaka, iwaim
  22. %description
  23. X-tile is a gnome applet for your panel (or optionally a standalone
  24. application, working with kde as well) that allows you to select
  25. a number of windows and tile them in different ways.
  26. This is especially useful for comparing products in separate
  27. web pages, or for programmers refering to documentation as they
  28. are programming.
  29. %description -l ja
  30. X-tile は指定したウィンドウを様々なレイアウトで整列させられる
  31. Gnome パネルアプレットです。
  32. (*また単独のアプリケーションとしても使用できますし、KDE 上で
  33. も問題なく動作します。)
  34. このアプレットは、(例えば)複数のウェブページを比較したり、ド
  35. キュメントを参照しながらプログラミングをしたり、といった場面
  36. で役に立ちます。
  37. %prep
  38. %setup -q -n %{name}-%{version}
  39. %patch0 -p1
  40. %build
  41. # install japanese translation
  42. #%if %{add_japo}
  43. #%{__mkdir_p} locale/ja/LC_MESSAGES
  44. #msgfmt %{SOURCE1} -o locale/ja/LC_MESSAGES/%{name}.mo
  45. %{__cp} -f %{SOURCE1} locale/ja.po
  46. #%endif
  47. %{__python} setup.py build
  48. %install
  49. %{__rm} -rf $RPM_BUILD_ROOT
  50. %{__python} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
  51. %find_lang %{name}
  52. %post
  53. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  54. %postun
  55. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  56. %clean
  57. %{__rm} -rf $RPM_BUILD_ROOT
  58. %files -f %{name}.lang
  59. %defattr(-,root,root)
  60. %doc license
  61. %{_bindir}/%{name}
  62. %{python_sitelib}/X_Tile-%{version}-py2.7.egg-info
  63. %{_datadir}/applications/%{name}.desktop
  64. %{_datadir}/icons/hicolor/*
  65. %{_datadir}/%{name}/
  66. %{_mandir}/man1/%{name}.1.gz
  67. %changelog
  68. * Sat Mar 02 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.5-1
  69. - new upstream release
  70. - changed source archive bz2 to xz
  71. - updated Source1 and Patch0
  72. * Thu Mar 31 2011 IWAI, Masaharu <iwai@alib.jp> 1.8.6-1
  73. - new upstream release
  74. - add ja.po (Source1)
  75. - add ja patch (Patch0)
  76. * Fri Jul 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.6.1-1
  77. - new upstream release
  78. - drop Source1(ja.po), merged into upstream
  79. * Mon Jul 19 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.6-2
  80. - add Source1: japanese translation (thanks iwai-san)
  81. * Fri Jul 16 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.6-1
  82. - initial build for Vine Linux