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