File guake.spec of Package guake
#
# spec file for package guake
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Bjørn Lie
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: guake
Version: 0.4.3
Release: 0
Summary: A dropdown terminal for GNOME
License: GPL-2.0+
Group: System/X11/Terminals
Url: http://guake.org
# We can't use source url http://guake.org/downloads/4
Source0: %{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM guake-fix-pref.desktop.patch bnc#763244 zaitor@opensuse.org -- Fix guake-pref.desktop file, spellingmistake. -- http://guake.org/ticket/448
Patch1: guake-fix-pref.desktop.patch
BuildRequires: intltool
BuildRequires: python-devel
%if 0%{?suse_version} <= 1130
BuildRequires: vte-devel
%else
BuildRequires: python-vte
%endif
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(pygtk-2.0)
Requires: dbus-1-python
Requires: python-gconf
Requires: python-gtk
Requires: python-notify
%if 0%{?suse_version} <= 1130
Requires: vte
%else
Requires: python-vte
%endif
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%gconf_schemas_prereq
%description
Guake is a dropdown terminal made for the GNOME desktop environment.
Its style of window is based on an fps games, and one of its goals is
be easy to reach.
%lang_package
%prep
%setup -q
%patch1 -p1
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
# We need to move the non-arch specific stuff to arch folder. Finding guake in two places confuses python.
if [ "%{python_sitearch}" != "%{python_sitelib}" ]; then
mv %{buildroot}%{python_sitelib}/guake/* %{buildroot}%{python_sitearch}/guake/
fi
rm -r %{buildroot}/%{_datadir}/locale/no
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}-prefs.desktop X-SuSE-ControlCenter-Personal
%suse_update_desktop_file %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop
%find_gconf_schemas
%find_lang %{name} %{?no_lang_C}
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files -f %{name}.schemas_list
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_bindir}/%{name}
%{_bindir}/%{name}-prefs
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-prefs.desktop
%{_datadir}/dbus-1/services/org.guake.Guake.service
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}/
%{_mandir}/man1/%{name}.1%{?ext_man}
%{python_sitearch}/%{name}/
%files lang -f %{name}.lang
%changelog