File d-feet.spec of Package d-feet

#
# spec file for package d-feet
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           d-feet
Version:        0.1.12
Release:        6
Summary:        Graphical D-Bus Debugger
Group:          Development/Tools/Debuggers
License:        GPLv2+
Url:            http://live.gnome.org/DFeet/
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gettext
BuildRequires:  python-gtk-devel
BuildRequires:  python-setuptools
BuildRequires:  scrollkeeper
BuildRequires:  update-desktop-files
Requires:       python-gtk
Patch0:         bugfix_python27_not_start.patch
BuildArch:      noarch
%py_requires

%description
D-Feet is a graphical D-Bus debugger.  D-Bus is an RPC library used on
the Desktop.  D-Feet can be used to inspect D-Bus objects of running
programs and invoke methods on those objects.

%prep
%setup -q
%patch0 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
%{__python} setup.py build

%install
%{__python} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
%suse_update_desktop_file -N "D-Feet D-Bus Debugger" dfeet

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_bindir}/d-feet
%{python_sitelib}/dfeet/
%{python_sitelib}/d_feet-%{version}-*.egg-info
%{_datadir}/dfeet/
%{_datadir}/applications/dfeet.desktop
%{_datadir}/icons/hicolor/*/apps/*

%changelog
openSUSE Build Service is sponsored by