guake-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Summary: Drop-down terminal for GNOME Desktop Environment
  3. Summary(ja): GNOME 用のドロップダウン式の端末エミュレータ
  4. Name: guake
  5. Version: 0.4.4
  6. Release: 2%{?_dist_release}
  7. Source0: %{name}-%{version}.tar.gz
  8. #Source1: guake-0.4.1-ja.po
  9. Patch0: 0001-Fix-focus-issue-on-gnome-shell.patch
  10. Patch1: 0001-Fix-notification.patch
  11. License: GPLv2+
  12. Group: Applications/Accessories
  13. URL: http://guake.org/
  14. Requires(pre): GConf2
  15. Requires(post): GConf2
  16. Requires(preun):GConf2
  17. BuildRequires: python, python-devel
  18. BuildRequires: gtk2-devel, pygtk2-devel
  19. BuildRequires: vte, GConf2-devel, libffi-devel
  20. BuildRequires: desktop-file-utils
  21. BuildRequires: intltool, gettext
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. Packager: kazutaka
  24. %description
  25. Guake is a dropdown terminal made for the GNOME desktop environment.
  26. Its style of window is based on an fps games, and one of its goals
  27. is be easy to reach.
  28. %description -l ja
  29. Guake は GNOME デスクトップ環境向けに開発されたドロップダウン
  30. 形の端末です。
  31. FPS ゲーム用端末と同じスタイルを採用しており、素早く利用できる、
  32. というのがこのプログラムのゴールの一つです。
  33. %prep
  34. %setup -q
  35. #%{__cp} %{SOURCE1} po/ja.po
  36. sed -i 's/Encoding=UTF-8//g' data/guake.desktop.in data/guake-prefs.desktop.in
  37. sed -i 's/Categories=GNOME;GTK;Utility;TerminalEmulator;/Categories=GNOME;GTK;Utility;/g' \
  38. data/guake.desktop.in
  39. %patch0 -p1
  40. %patch1 -p1
  41. %build
  42. %configure --disable-static \
  43. --disable-schemas-install
  44. %{__make} %{?_smp_mflags}
  45. %install
  46. %{__rm} -rf $RPM_BUILD_ROOT
  47. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  48. %find_lang %{name}
  49. rm -f %{buildroot}%{_libdir}/%{name}/globalhotkeys.la
  50. if [ "%{python_sitearch}" != "%{python_sitelib}" ]; then
  51. mv %{buildroot}%{python_sitelib}/%{name}/* %{buildroot}%{python_sitearch}/%{name}/
  52. fi
  53. %check
  54. desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
  55. desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-prefs.desktop
  56. %pre
  57. # uninstall old schemas before update
  58. if [ "$1" -gt 1 ]; then
  59. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  60. gconftool-2 --makefile-uninstall-rule \
  61. %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null ||:
  62. fi
  63. %post
  64. update-desktop-database &>/dev/null || :
  65. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  66. # install schemas after install/update
  67. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  68. gconftool-2 --makefile-install-rule \
  69. %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null ||:
  70. %preun
  71. # uninstall schemas before clean remove
  72. if [ "$1" -eq 0 ]; then
  73. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  74. gconftool-2 --makefile-uninstall-rule \
  75. %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null;
  76. fi
  77. %postun
  78. update-desktop-database &>/dev/null || :
  79. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  80. %clean
  81. %{__rm} -rf $RPM_BUILD_ROOT
  82. %files -f %{name}.lang
  83. %defattr(-,root,root)
  84. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
  85. %{_bindir}/%{name}
  86. %{_bindir}/%{name}-prefs
  87. %{_datadir}/%{name}
  88. %{_datadir}/applications/%{name}-prefs.desktop
  89. %{_datadir}/applications/%{name}.desktop
  90. %{_datadir}/dbus-1/services/org.guake.Guake.service
  91. %{_datadir}/icons/hicolor/*/
  92. %{_datadir}/pixmaps/%{name}
  93. %{python_sitearch}/%{name}
  94. %{_mandir}/man1/guake.1*
  95. %{_sysconfdir}/gconf/schemas/%{name}.schemas
  96. #%{_sysconfdir}/xdg/autostart/%{name}.desktop
  97. %changelog
  98. * Fri Mar 21 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.4-2
  99. - rebuilt with new toolchain
  100. * Sat Jul 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.4-1
  101. - new upstream release
  102. - added Patch1 from Fedora
  103. - run gtk-update-icon-cache in %%post, %%posutn
  104. * Thu Jun 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.3-2
  105. - run desktop-file-validate in %%check
  106. * Tue Jun 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.3-1
  107. - new upstream release
  108. - added Patch0 from Fedora rawhide
  109. - added BuildRequires: desktop-file-utils, gettext, intltool
  110. - run desktop-file-validate in %%install
  111. * Sun Oct 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.4.2-1
  112. - new upstream release
  113. * Sat Jul 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.4.1-1
  114. - initial build for Vine Linux
  115. - add Source1: updated japanese translation (ja.po)