File sugar-toolkit.spec of Package sugar-toolkit

#
# spec file for package sugar-toolkit
#
# Copyright (c) 2013 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/
#

Name:           sugar-toolkit
Version:        0.98.1
%if 0%{?suse_version}
Release:        1
%else
Release:        1%{?dist}
%endif
License:        LGPL-2.0+
Summary:        Sugar toolkit
Url:            http://sugarlabs.org/
Group:          Development/Tools/Other

Source:         http://download.sugarlabs.org/sources/sucrose/glucose/sugar-toolkit/sugar-toolkit-%{version}.tar.bz2

# PATCH-FIX-UPSTREAM dbus-gobject-import.patch http://bugs.sugarlabs.org/ticket/3539
Patch0:         dbus-gobject-import.patch
Source10:       macros.sugar

Requires:       dbus-1-python
Requires:       gnome-python-desktop
Requires:       python
Requires:       python-cjson
Requires:       python-dateutil
Requires:       python-gobject2 >= 2.15
Requires:       python-gtk
Requires:       python-hippo-canvas >= 0.3.0
Requires:       python-rsvg
Requires:       python-telepathy
Requires:       sugar-base >= 0.98
Requires:       sugar-datastore >= 0.98
Requires:       sugar-presence-service >= 0.90.2
Requires:       unzip

BuildRequires:  alsa-devel
BuildRequires:  fdupes
BuildRequires:  gettext
BuildRequires:  intltool >= 0.33
BuildRequires:  perl-XML-Parser
BuildRequires:  python-devel
BuildRequires:  python-gobject2-devel >= 2.15
BuildRequires:  python-gtk-devel
BuildRequires:  xorg-x11-libSM-devel
BuildRequires:  xorg-x11-proto-devel
BuildRequires:  pkgconfig(gtk+-2.0)

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The toolkit provides a set of widgets to build HIG compliant applications
and interfaces to interact with system services like presence
and the datastore.

%prep
%setup -q
%patch0 -p1

%build
%define __libtoolize true
%configure
make %{?_smp_mflags}

%install
%make_install
mkdir -p %{buildroot}/%{_sysconfdir}/rpm
install -Dm644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/rpm/macros.sugar
%find_lang sugar-toolkit
%fdupes -s %{buildroot}

%clean
rm -rf %{buildroot}

%files -f sugar-toolkit.lang
%defattr(-,root,root,-)
%dir %{python_sitelib}/sugar
%(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/sugar/*
%doc AUTHORS COPYING README
%config %{_sysconfdir}/rpm/macros.sugar

%changelog
openSUSE Build Service is sponsored by