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 | |
---|
13 | License: GPLv2+ |
---|
14 | Group: Applications/Accessories |
---|
15 | URL: http://guake.org/ |
---|
16 | |
---|
17 | Requires(pre): GConf2 |
---|
18 | Requires(post): GConf2 |
---|
19 | Requires(preun):GConf2 |
---|
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 |
---|
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 |
---|
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 | |
---|
49 | %patch0 -p1 |
---|
50 | %patch1 -p1 |
---|
51 | |
---|
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 |
---|
61 | |
---|
62 | %find_lang %{name} |
---|
63 | rm -f %{buildroot}%{_libdir}/%{name}/globalhotkeys.la |
---|
64 | |
---|
65 | if [ "%{python_sitearch}" != "%{python_sitelib}" ]; then |
---|
66 | mv %{buildroot}%{python_sitelib}/%{name}/* %{buildroot}%{python_sitearch}/%{name}/ |
---|
67 | fi |
---|
68 | |
---|
69 | %check |
---|
70 | desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop |
---|
71 | desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-prefs.desktop |
---|
72 | |
---|
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 || : |
---|
83 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
84 | |
---|
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 || : |
---|
100 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
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 |
---|
115 | %{_datadir}/dbus-1/services/org.guake.Guake.service |
---|
116 | %{_datadir}/icons/hicolor/*/ |
---|
117 | %{_datadir}/pixmaps/%{name} |
---|
118 | %{python_sitearch}/%{name} |
---|
119 | %{_mandir}/man1/guake.1* |
---|
120 | %{_sysconfdir}/gconf/schemas/%{name}.schemas |
---|
121 | #%{_sysconfdir}/xdg/autostart/%{name}.desktop |
---|
122 | |
---|
123 | |
---|
124 | %changelog |
---|
125 | * Fri Mar 21 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.4-2 |
---|
126 | - rebuilt with new toolchain |
---|
127 | |
---|
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 | |
---|
133 | * Thu Jun 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.3-2 |
---|
134 | - run desktop-file-validate in %%check |
---|
135 | |
---|
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 | |
---|
142 | * Sun Oct 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.4.2-1 |
---|
143 | - new upstream release |
---|
144 | |
---|
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) |
---|