File guake.spec of Package guake

#
# spec file for package guake
#
# Copyright (c) 2016 SUSE LINUX 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.8.7
Release:        0
Summary:        A dropdown terminal for GNOME
License:        GPL-2.0+
Group:          System/X11/Terminals
Url:            http://guake-project.org/
Source:         https://github.com/Guake/guake/archive/%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gnome-common
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  python-vte
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-keybinder
Requires:       python-notify
Requires:       python-vte
Requires:       python-xdg
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%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

%build
# Drop shebangs from non-executable files
sed -i '1{/\/usr\/bin\/env/d;}' src/%{name}/{main,prefs}.py

# Run gnome-autogen.sh as upstream tarball is absolutely batshit-crazy...
NOCONFIGURE=1 gnome-autogen.sh
%configure --disable-schemas-install --disable-static
make %{?_smp_mflags}

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

%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}
%fdupes %{buildroot}%{python_sitelib}/%{name}/

%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_sitelib}/%{name}/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by