File gtkparasite.spec of Package gtkparasite

# spec file for package gtkparasite
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Novell, Inc.
# 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

Name:           gtkparasite
Version:        0.1.0
Release:        2
License:        MIT
Summary:        GTK+ debugging tool similar to Firebug
Group:          Development/Tools/Debuggers
Source0:        %{name}-%{version}.tar.bz2
# This is the COPYING taken from git. The one in the tarball is wrong.
Source1:        COPYING
# PATCH-FEATURE-OPENSUSE gtkparasite-link-python.patch -- Better detection of which libpython to dlopen(). Otherwise we need to require python-devel.
Patch0:         gtkparasite-link-python.patch
BuildRequires:  gtk2-devel
BuildRequires:  libtool
BuildRequires:  python-gtk-devel
Requires:       python-gtk >= 2.10.3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Parasite is a debugging and development tool that runs inside your
GTK+ application's process. It can inspect your application, giving
you detailed information on your UI, such as the hierarchy, X window IDs,
widget properties, and more. You can modify properties on the fly in
order to experiment with the look of your UI.

If you've used Firebug, it's sort of like that, but for GTK+ applications.

%setup -q
cp %{S:1} COPYING
%patch0 -p1

# autoreconf is needed for patch0.
autoreconf -fiv
%configure --disable-static
%__make %{?_smp_flags}

find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

rm -rf %{buildroot}

%defattr(-, root, root)

openSUSE Build Service is sponsored by