File tilda.spec of Package tilda

# spec file for package tilda
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

# FIXME incorrect-fsf-address reported upstream

Name:           tilda
Version:        0.9.6
Release:        0
Summary:        A quake like terminal for GNOME
License:        GPL-2.0+
Group:          System/X11/Terminals
# PATCH-FIX-UPSTREAM tilda-desktop_icon.patch sf#3473002 -- Fix fullpath to icon and icon file extension
Patch0:         tilda-desktop-icon.patch
# PATCH-FIX-UPSTREAM tilda-fix-pointers.patch sf#3473004 -- Fix 64bit-portability-issue
Patch1:         tilda-fix-pointers.patch
# PATCH-FIX-UPSTREAM tilda-fix-gdk-x11-window-set-user-time.patch bnc#633863 sf#2988694 -- Fix a crash
Patch2:         tilda-fix-gdk-x11-window-set-user-time.patch
# PATCH-FIX-UPSTREAM tilda-fix-glib-include.patch sf#3473000 -- Only <glib.h> can be included directly
Patch3:         tilda-fix-glib-include.patch
# PATCH-FIX-UPSTREAM tilda-add-xrandr-check.patch sf#3492123 -- Add check for the presence of the xrandr headers in configure.
Patch4:         tilda-add-xrandr-check.patch
# needed for patch4
BuildRequires:  autoconf
# needed for patch4
BuildRequires:  automake
BuildRequires:  flex
BuildRequires:  libconfuse-devel
BuildRequires:  update-desktop-files
%if 0%{?suse_version} >= 1210
BuildRequires:  vte2-devel
BuildRequires:  vte-devel
%if 0%{?suse_version} > 1210
BuildRequires:  libX11-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libXt-devel
BuildRequires:  xorg-x11-libXt-devel
%if 0%{?suse_version} >= 1140
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(pango)
BuildRequires:  libglade2-devel
BuildRequires:  pango-devel
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Tilda is a Linux terminal taking after the likeness of many classic terminals
from first person shooter games, Quake, Doom and Half-Life (to name a few),
where the terminal has no border and is hidden from the desktop until a key is

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

# Fix glade file installed location; needs mv in %%install
sed -i 's|""|"%{name}/%{name}.glade"|g' src/wizard.c

# needed for patch4
autoreconf -fi
make %{?_smp_mflags}

mkdir -p %{buildroot}%{_datadir}/%{name}
# If removing this, then the sed hack in %%prep can be dropped too
mv %{buildroot}%{_datadir}/%{name}.glade \
%suse_update_desktop_file %{name}
%find_lang %{name} %{?no_lang_C}

%if 0%{?suse_version} > 1130

%if 0%{?suse_version} > 1130


%files lang -f %{name}.lang

openSUSE Build Service is sponsored by