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