x-tile-vl.spec 3.0 KB

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