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