File guake.spec of Package guake

#
# spec file for package guake
#
# Copyright (c) 2014 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.5.0
Release:        0
Summary:        A dropdown terminal for GNOME
License:        GPL-2.0+
Group:          System/X11/Terminals
Url:            https://github.com/Guake/guake
Source0:        https://github.com/Guake/guake/archive/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM guake-default-transparency.patch bnc#799862 rbrownccb@opensuse.org -- fix for default transparency being too high 
Patch1:         guake-default-transparency.patch
BuildRequires:  gnome-common
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:       libgnome
Requires:       python-gconf
Requires:       python-gtk
Requires:       python-notify
Requires:       python-vte
Requires:       python-xdg
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 -n guake-guake-%{version}
%patch1 -p1

%build
# Run gnome-autogen.sh as upstream tarball is absolutely batshit-crazy...
NOCONFIGURE=1 gnome-autogen.sh
%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
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}-prefs.desktop X-SuSE-ControlCenter-Personal
%find_gconf_schemas
%find_lang %{name} %{?no_lang_C}

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files -f %{name}.schemas_list
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS
%{_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}/icons/hicolor/*/*/*.*
%{_datadir}/pixmaps/%{name}/
%{_mandir}/man1/%{name}.1%{?ext_man}
%{python_sitearch}/%{name}/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by