guake-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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.8.7
  6. Release: 1%{?_dist_release}
  7. Source0: https://github.com/Guake/guake/archive/%{version}.tar.gz#/%{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. #Patch2: 0001-Let-allow-the-signal.SIGTERM-to-fail.patch
  12. #Patch3: 0001-Fix-regex-to-include-the-port-number-when-there-is-o.patch
  13. # Upstream patch at https://github.com/Guake/guake/pull/75
  14. #Patch4: 0001-Include-bpython-and-ipython-as-interpreters.patch
  15. License: GPLv2+
  16. Group: Applications/Accessories
  17. URL: http://guake.org/
  18. Requires: gnome-python
  19. Requires: python-keybinder
  20. Requires(pre): GConf2
  21. Requires(post): GConf2
  22. Requires(preun):GConf2
  23. BuildRequires: python, python-devel
  24. BuildRequires: gtk2-devel, pygtk2-devel
  25. BuildRequires: vte, GConf2-devel, libffi-devel
  26. BuildRequires: desktop-file-utils
  27. BuildRequires: intltool, gettext
  28. BuildRequires: gnome-common
  29. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. Packager: kazutaka
  33. %description
  34. Guake is a dropdown terminal made for the GNOME desktop environment.
  35. Its style of window is based on an fps games, and one of its goals
  36. is be easy to reach.
  37. %description -l ja
  38. Guake は GNOME デスクトップ環境向けに開発されたドロップダウン
  39. 形の端末です。
  40. FPS ゲーム用端末と同じスタイルを採用しており、素早く利用できる、
  41. というのがこのプログラムのゴールの一つです。
  42. %prep
  43. %setup -q
  44. #%{__cp} %{SOURCE1} po/ja.po
  45. sed -i 's/Encoding=UTF-8//g' data/guake.desktop.in data/guake-prefs.desktop.in
  46. sed -i 's/Categories=GNOME;GTK;Utility;TerminalEmulator;/Categories=GNOME;GTK;Utility;/g' \
  47. data/guake.desktop.in
  48. #%patch0 -p1
  49. #%patch1 -p1
  50. #%patch2 -p1
  51. #%patch3 -p1
  52. #%patch4 -p1
  53. %build
  54. ./autogen.sh
  55. %configure --disable-static \
  56. --disable-schemas-install
  57. %{__make} %{?_smp_mflags}
  58. %install
  59. %{__rm} -rf $RPM_BUILD_ROOT
  60. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  61. %find_lang %{name}
  62. rm -f %{buildroot}%{_libdir}/%{name}/globalhotkeys.la
  63. if [ "%{python_sitearch}" != "%{python_sitelib}" ]; then
  64. mv %{buildroot}/usr/lib/ %{buildroot}%{_libdir}
  65. fi
  66. %check
  67. desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
  68. desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-prefs.desktop
  69. %pre
  70. # uninstall old schemas before update
  71. if [ "$1" -gt 1 ]; then
  72. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  73. gconftool-2 --makefile-uninstall-rule \
  74. %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null ||:
  75. fi
  76. %post
  77. update-desktop-database &>/dev/null || :
  78. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  79. # install schemas after install/update
  80. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  81. gconftool-2 --makefile-install-rule \
  82. %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null ||:
  83. %preun
  84. # uninstall schemas before clean remove
  85. if [ "$1" -eq 0 ]; then
  86. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  87. gconftool-2 --makefile-uninstall-rule \
  88. %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null;
  89. fi
  90. %postun
  91. update-desktop-database &>/dev/null || :
  92. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  93. %clean
  94. %{__rm} -rf $RPM_BUILD_ROOT
  95. %files -f %{name}.lang
  96. %defattr(-,root,root)
  97. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README.rst
  98. %{_bindir}/%{name}
  99. %{_bindir}/%{name}-prefs
  100. %{_datadir}/%{name}
  101. %{_datadir}/applications/%{name}-prefs.desktop
  102. %{_datadir}/applications/%{name}.desktop
  103. %{_datadir}/dbus-1/services/org.guake.Guake.service
  104. %{_datadir}/icons/hicolor/*/
  105. %{_datadir}/pixmaps/%{name}
  106. %{python_sitearch}/%{name}/*
  107. %{_mandir}/man1/guake.1*
  108. %{_sysconfdir}/gconf/schemas/%{name}.schemas
  109. #%{_sysconfdir}/xdg/autostart/%{name}.desktop
  110. %changelog
  111. * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.8.7-1
  112. - new upstream release
  113. * Sun Apr 24 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.4-1
  114. - new upstream release
  115. - delete all patches
  116. - run autogen.sh in %%build
  117. - added BuildRequires: gnome-common
  118. - added Requires: gnome-python, python-keybinder
  119. - fixed %%install
  120. - fixed %%files and %%doc
  121. * Tue Dec 31 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.4.4-2
  122. - add some patches from Fedora guake-0.4.4-11.fc21
  123. - 0001-Let-allow-the-signal.SIGTERM-to-fail.patch (Patch2)
  124. - 0001-Fix-regex-to-include-the-port-number-when-there-is-o.patch (Patch3)
  125. - 0001-Include-bpython-and-ipython-as-interpreters.patch (Patch4)
  126. - add Vendor and Distribution tags
  127. * Sat Jul 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.4-1
  128. - new upstream release
  129. - added Patch1 from Fedora
  130. - run gtk-update-icon-cache in %%post, %%posutn
  131. * Thu Jun 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.3-2
  132. - run desktop-file-validate in %%check
  133. * Tue Jun 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.3-1
  134. - new upstream release
  135. - added Patch0 from Fedora rawhide
  136. - added BuildRequires: desktop-file-utils, gettext, intltool
  137. - run desktop-file-validate in %%install
  138. * Sun Oct 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.4.2-1
  139. - new upstream release
  140. * Sat Jul 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.4.1-1
  141. - initial build for Vine Linux
  142. - add Source1: updated japanese translation (ja.po)