File sugar-base.spec of Package sugar-base
#
# spec file for package sugar-base
#
# 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-base
Version: 0.98.0
%if 0%{?suse_version}
Release: 1
%else
Release: 1%{?dist}
%endif
License: LGPL-2.0+
Summary: Base Sugar library
Url: http://sugarlabs.org/
Group: System/Libraries
Source: http://download.sugarlabs.org/sources/sucrose/glucose/sugar-base/sugar-base-%{version}.tar.bz2
Requires: dbus-1-python
Requires: python
Requires: python-decorator
Requires: python-gobject2 >= 2.15
Requires: python-gtk
Requires: unzip
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: intltool >= 0.33
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: python-devel
BuildRequires: python-gobject2-devel >= 2.15
BuildRequires: python-gtk-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The base libary for Sugar. It provides helpers for the development
of services and activities.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags} V=1
%install
%make_install
install -d -m 0755 %{buildroot}/%{_datadir}/sugar/activities
for i in bi cpp na; do
install -d -m 0755 %{buildroot}/%{_datadir}/locale/$i/LC_MESSAGES
done
%find_lang sugar-base
%fdupes -s %{buildroot}
%clean
rm -rf %{buildroot}
%files -f sugar-base.lang
%defattr(-,root,root,-)
%dir %{_datadir}/sugar
%dir %{_datadir}/sugar/activities
%(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/*
%doc COPYING NEWS
%if 0%{?suse_version} <= 1110
%dir %{_datadir}/locale/na
%dir %{_datadir}/locale/na/LC_MESSAGES
%dir %{_datadir}/locale/bi
%dir %{_datadir}/locale/bi/LC_MESSAGES
%dir %{_datadir}/locale/cpp
%dir %{_datadir}/locale/cpp/LC_MESSAGES
%dir %{_datadir}/locale/ay
%dir %{_datadir}/locale/ay/LC_MESSAGES
%dir %{_datadir}/locale/fa_AF
%dir %{_datadir}/locale/fa_AF/LC_MESSAGES
%dir %{_datadir}/locale/ff
%dir %{_datadir}/locale/ff/LC_MESSAGES
%dir %{_datadir}/locale/ht
%dir %{_datadir}/locale/ht/LC_MESSAGES
%dir %{_datadir}/locale/mvo
%dir %{_datadir}/locale/mvo/LC_MESSAGES
%dir %{_datadir}/locale/pap
%dir %{_datadir}/locale/pap/LC_MESSAGES
%dir %{_datadir}/locale/pis
%dir %{_datadir}/locale/pis/LC_MESSAGES
%dir %{_datadir}/locale/qu
%dir %{_datadir}/locale/qu/LC_MESSAGES
%dir %{_datadir}/locale/sd
%dir %{_datadir}/locale/sd/LC_MESSAGES
%dir %{_datadir}/locale/tpi
%dir %{_datadir}/locale/tpi/LC_MESSAGES
%if ! 0%{?sles_version}
%dir %{_datadir}/locale/ha
%dir %{_datadir}/locale/ha/LC_MESSAGES
%endif
%dir %{_datadir}/locale/ig
%dir %{_datadir}/locale/ig/LC_MESSAGES
%endif
%changelog