1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
2 | |
---|
3 | Summary: Drop-down terminal for GNOME Desktop Environment |
---|
4 | Summary(ja): GNOME 用のドロップダウン式の端末エミュレータ |
---|
5 | Name: guake |
---|
6 | Version: 0.4.4 |
---|
7 | Release: 2%{?_dist_release} |
---|
8 | Source0: %{name}-%{version}.tar.gz |
---|
9 | #Source1: guake-0.4.1-ja.po |
---|
10 | Patch0: 0001-Fix-focus-issue-on-gnome-shell.patch |
---|
11 | Patch1: 0001-Fix-notification.patch |
---|
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 |
---|
16 | |
---|
17 | License: GPLv2+ |
---|
18 | Group: Applications/Accessories |
---|
19 | URL: http://guake.org/ |
---|
20 | |
---|
21 | Requires(pre): GConf2 |
---|
22 | Requires(post): GConf2 |
---|
23 | Requires(preun):GConf2 |
---|
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 |
---|
30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
31 | |
---|
32 | Vendor: Project Vine |
---|
33 | Distribution: Vine Linux |
---|
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 |
---|
50 | #%{__cp} %{SOURCE1} po/ja.po |
---|
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 |
---|
54 | |
---|
55 | %patch0 -p1 |
---|
56 | %patch1 -p1 |
---|
57 | %patch2 -p1 |
---|
58 | %patch3 -p1 |
---|
59 | %patch4 -p1 |
---|
60 | |
---|
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 |
---|
70 | |
---|
71 | %find_lang %{name} |
---|
72 | rm -f %{buildroot}%{_libdir}/%{name}/globalhotkeys.la |
---|
73 | |
---|
74 | if [ "%{python_sitearch}" != "%{python_sitelib}" ]; then |
---|
75 | mv %{buildroot}%{python_sitelib}/%{name}/* %{buildroot}%{python_sitearch}/%{name}/ |
---|
76 | fi |
---|
77 | |
---|
78 | %check |
---|
79 | desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop |
---|
80 | desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-prefs.desktop |
---|
81 | |
---|
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 || : |
---|
92 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
93 | |
---|
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 || : |
---|
109 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
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 |
---|
124 | %{_datadir}/dbus-1/services/org.guake.Guake.service |
---|
125 | %{_datadir}/icons/hicolor/*/ |
---|
126 | %{_datadir}/pixmaps/%{name} |
---|
127 | %{python_sitearch}/%{name} |
---|
128 | %{_mandir}/man1/guake.1* |
---|
129 | %{_sysconfdir}/gconf/schemas/%{name}.schemas |
---|
130 | #%{_sysconfdir}/xdg/autostart/%{name}.desktop |
---|
131 | |
---|
132 | |
---|
133 | %changelog |
---|
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 | |
---|
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 | |
---|
146 | |
---|
147 | * Thu Jun 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.3-2 |
---|
148 | - run desktop-file-validate in %%check |
---|
149 | |
---|
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 | |
---|
156 | * Sun Oct 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.4.2-1 |
---|
157 | - new upstream release |
---|
158 | |
---|
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) |
---|