ec369dd
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Marco Pesenti Gritti 72aef70
Bernie Innocenti 786137d
Summary: Constructionist learning platform
be0eff3
Name:    sugar
7bc62d3
Version: 0.101.1
94c497f
Release: 1%{?dist}
be0eff3
URL:     http://sugarlabs.org/
Bernie Innocenti 786137d
License: GPLv2+
be0eff3
Group:   User Interface/Desktops
3fd278a
Source0: http://download.sugarlabs.org/sources/sucrose/glucose/%{name}/%{name}-%{version}.tar.xz
be0eff3
Patch0:  sugar-gnomekeyring.patch
Marco Pesenti Gritti 3fae155
Marco Pesenti Gritti 3fae155
BuildRequires: gettext
Marco Pesenti Gritti a6ca1da
BuildRequires: GConf2-devel
4c178ff
BuildRequires: gobject-introspection
4c178ff
BuildRequires: gtk3-devel
4c178ff
BuildRequires: gtksourceview3-devel
0ec655b
BuildRequires: intltool
7233849
BuildRequires: perl-XML-Parser
7233849
BuildRequires: pkgconfig
7233849
BuildRequires: python
4c178ff
1567a3e
Requires: avahi-tools
7233849
Requires: dbus-x11
3ec7782
Requires: ethtool
7e64907
Requires: gnome-keyring-pam
b8f312e
Requires: gstreamer-plugins-espeak
4e2a02f
Requires: gtksourceview3
4e2a02f
Requires: gvfs
4e2a02f
Requires: gwebsockets
4e2a02f
Requires: libwnck3
1567a3e
Requires: libxklavier
7233849
Requires: metacity
03666c7
Requires: NetworkManager
7233849
Requires: openssh
7233849
Requires: python-telepathy
7233849
Requires: sugar-artwork
Daniel Drake 0c45722
Requires: sugar-toolkit-gtk3
7233849
Requires: telepathy-mission-control
Simon Schampijer 2f64634
Requires: upower
073562d
Requires: xdg-user-dirs
Marco Pesenti Gritti 3fae155
e4e4bb8
BuildArch: noarch
e4e4bb8
Marco Pesenti Gritti 3fae155
%description
5a27cda
Sugar provides simple yet powerful means of engaging young children in the 
5a27cda
world of learning that is opened up by computers and the Internet. With Sugar,
5a27cda
even the youngest learner will quickly become proficient in using the 
5a27cda
computer as a tool to engage in authentic problem-solving.  Sugar promotes 
5a27cda
sharing, collaborative learning, and reflection, developing skills that help 
5a27cda
them in all aspects of life. 
Marco Pesenti Gritti 3fae155
5a27cda
Sugar is also the learning environment for the One Laptop Per Child project. 
5a27cda
See http://www.laptop.org for more information on this project.
Marco Pesenti Gritti 3fae155
4c178ff
%package cp-all
4c178ff
Summary: All control panel modules 
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
3fd278a
Requires: %{name}-cp-background %{name}-cp-datetime %{name}-cp-frame %{name}-cp-language
1567a3e
Requires: %{name}-cp-modemconfiguration %{name}-cp-network %{name}-cp-keyboard
3fd278a
Requires: %{name}-cp-webaccount %{name}-cp-updater
4c178ff
4c178ff
%description cp-all
4c178ff
This is a meta package to install all Sugar Control Panel modules
4c178ff
3fd278a
%package cp-background
3fd278a
Summary: Sugar Background control panel
3fd278a
Group: User Interface/Desktops
3fd278a
Requires: %{name} = %{version}-%{release}
3fd278a
3fd278a
%description cp-background
3fd278a
This is the Sugar control panel to change the background
3fd278a
4c178ff
%package cp-datetime
4c178ff
Summary: Sugar Date and Time control panel
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
4c178ff
4c178ff
%description cp-datetime
4c178ff
This is the Sugar Date and Time settings control panel
4c178ff
4c178ff
%package cp-frame
4c178ff
Summary: Sugar Frame control panel
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
4c178ff
4c178ff
%description cp-frame
4c178ff
This is the Sugar Frame settings control panel
4c178ff
4c178ff
%package cp-keyboard
4c178ff
Summary: Sugar Keyboard control panel
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
4c178ff
4c178ff
%description cp-keyboard
4c178ff
This is the Sugar Keyboard settings control panel
4c178ff
4c178ff
%package cp-language
4c178ff
Summary: Sugar Language control panel
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
4c178ff
4c178ff
%description cp-language
4c178ff
This is the Sugar Language settings control panel
4c178ff
4c178ff
%package cp-modemconfiguration
4c178ff
Summary: Sugar Modem configuration control panel
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
4c178ff
4c178ff
%description cp-modemconfiguration
4c178ff
This is the Sugar Modem configuration control panel
4c178ff
4c178ff
%package cp-network
4c178ff
Summary: Sugar Network control panel
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
4c178ff
4c178ff
%description cp-network
4c178ff
This is the Sugar Network settings control panel
4c178ff
4c178ff
%package cp-power
4c178ff
Summary: Sugar Power control panel
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
4c178ff
4c178ff
%description cp-power
4c178ff
This is the Sugar Power settings control panel
4c178ff
4c178ff
%package cp-updater
4c178ff
Summary: Sugar Activity Update control panel
4c178ff
Group: User Interface/Desktops
4c178ff
Requires: %{name} = %{version}-%{release}
4c178ff
4c178ff
%description cp-updater
4c178ff
This is the Sugar Activity Updates control panel
4c178ff
3fd278a
%package cp-webaccount
3fd278a
Summary: Sugar Web Account control panel
3fd278a
Group: User Interface/Desktops
3fd278a
Requires: %{name} = %{version}-%{release}
3fd278a
3fd278a
%description cp-webaccount
3fd278a
This is the Sugar Web Account control panel
3fd278a
4c178ff
Marco Pesenti Gritti 3fae155
%prep
Marco Pesenti Gritti 3fae155
%setup -q
4c178ff
%patch0 -p1 -b .keyring
Marco Pesenti Gritti 3fae155
Marco Pesenti Gritti 3fae155
%build
Marco Pesenti Gritti 3fae155
%configure
Marco Pesenti Gritti 3fae155
make
Marco Pesenti Gritti 3fae155
Marco Pesenti Gritti 3fae155
%install
Marco Pesenti Gritti a27f9c9
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
Marco Pesenti Gritti 3fae155
make install DESTDIR=%{buildroot}
387da06
mkdir %{buildroot}/%{_datadir}/sugar/activities
Marco Pesenti Gritti a27f9c9
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
Marco Pesenti Gritti 3fae155
Marco Pesenti Gritti c272499
%find_lang %{name}
Marco Pesenti Gritti c272499
213a02d
%post
213a02d
if (update-mime-database -v &> /dev/null); then
213a02d
  update-mime-database "%{_datadir}/mime" > /dev/null
213a02d
fi
Marco Pesenti Gritti a27f9c9
Marco Pesenti Gritti a27f9c9
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
Marco Pesenti Gritti a6ca1da
gconftool-2 --makefile-install-rule \
Marco Pesenti Gritti a6ca1da
	%{_sysconfdir}/gconf/schemas/sugar.schemas > /dev/null || :
Marco Pesenti Gritti a6ca1da
Marco Pesenti Gritti a6ca1da
%pre
Marco Pesenti Gritti a6ca1da
if [ "$1" -gt 1 ]; then
Marco Pesenti Gritti a6ca1da
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
Marco Pesenti Gritti a6ca1da
    gconftool-2 --makefile-uninstall-rule \
Marco Pesenti Gritti a6ca1da
      %{_sysconfdir}/gconf/schemas/sugar.schemas > /dev/null || :
Marco Pesenti Gritti a6ca1da
fi
Marco Pesenti Gritti a6ca1da
Marco Pesenti Gritti a6ca1da
%preun
Marco Pesenti Gritti a6ca1da
if [ "$1" -eq 0 ]; then
Marco Pesenti Gritti a6ca1da
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
Marco Pesenti Gritti a6ca1da
    gconftool-2 --makefile-uninstall-rule \
Marco Pesenti Gritti a6ca1da
      %{_sysconfdir}/gconf/schemas/sugar.schemas > /dev/null || :
Marco Pesenti Gritti a6ca1da
fi
213a02d
213a02d
%postun
213a02d
if (update-mime-database -v &> /dev/null); then
213a02d
  update-mime-database "%{_datadir}/mime" > /dev/null
213a02d
fi
213a02d
Marco Pesenti Gritti 3fae155
%files -f %{name}.lang
3fd278a
%doc COPYING
Marco Pesenti Gritti a6ca1da
%config %{_sysconfdir}/dbus-1/system.d/nm-user-settings.conf
Marco Pesenti Gritti a6ca1da
%config %{_sysconfdir}/gconf/schemas/sugar.schemas
642f6a7
%{_bindir}/sugar*
642f6a7
%{_datadir}/GConf/gsettings/sugar-schemas.convert
642f6a7
%{_datadir}/glib-2.0/schemas/org.sugarlabs.gschema.xml
642f6a7
%{_datadir}/mime/packages/sugar.xml
642f6a7
%{_datadir}/xsessions/sugar.desktop
Marco Pesenti Gritti 3fae155
Marco Pesenti Gritti a6ca1da
%{python_sitelib}/*
Marco Pesenti Gritti a6ca1da
642f6a7
%dir %{_datadir}/sugar
642f6a7
%dir %{_datadir}/sugar/activities
642f6a7
%dir %{_datadir}/sugar/extensions
642f6a7
%dir %{_datadir}/sugar/extensions/cpsection
642f6a7
642f6a7
%{_datadir}/sugar/data
642f6a7
%{_datadir}/sugar/extensions/deviceicon
642f6a7
%{_datadir}/sugar/extensions/globalkey
642f6a7
%{_datadir}/sugar/extensions/webservice
642f6a7
%{_datadir}/sugar/extensions/cpsection/*.py*
3fd278a
%{_datadir}/sugar/extensions/cpsection/aboutcomputer
3fd278a
%{_datadir}/sugar/extensions/cpsection/aboutme
642f6a7
%exclude %{_datadir}/sugar/extensions/cpsection/[b-z]*
Marco Pesenti Gritti 9d8698f
4c178ff
%files cp-all
4c178ff
3fd278a
%files cp-background
3fd278a
%{_datadir}/sugar/extensions/cpsection/background
3fd278a
4c178ff
%files cp-datetime
4c178ff
%{_datadir}/sugar/extensions/cpsection/datetime
4c178ff
4c178ff
%files cp-frame
4c178ff
%{_datadir}/sugar/extensions/cpsection/frame
4c178ff
4c178ff
%files cp-keyboard
4c178ff
%{_datadir}/sugar/extensions/cpsection/keyboard
4c178ff
4c178ff
%files cp-language
4c178ff
%{_datadir}/sugar/extensions/cpsection/language
4c178ff
4c178ff
%files cp-modemconfiguration
4c178ff
%{_datadir}/sugar/extensions/cpsection/modemconfiguration
4c178ff
4c178ff
%files cp-network
4c178ff
%{_datadir}/sugar/extensions/cpsection/network
4c178ff
4c178ff
%files cp-power
4c178ff
%{_datadir}/sugar/extensions/cpsection/power
4c178ff
4c178ff
%files cp-updater
4c178ff
%{_datadir}/sugar/extensions/cpsection/updater
4c178ff
3fd278a
%files cp-webaccount
3fd278a
%{_datadir}/sugar/extensions/cpsection/webaccount
3fd278a
Marco Pesenti Gritti 3fae155
%changelog
7bc62d3
* Mon Jan 13 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.101.1-1
7bc62d3
- 0.101.1 devel release
7bc62d3
2a9f631
* Sun Dec  8 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.101.0-1
0c123fb
- 0.101.0 devel release
0c123fb
a7eef58
* Fri Nov 22 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.100.2-1
a7eef58
- Sugar 0.100.2 stable release
a7eef58
340f28d
* Fri Nov  1 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.100.1-1
340f28d
- Sugar 0.100.1 stable release
524a3ad
94c497f
* Tue Oct 8  2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.4-1
94c497f
- 0.99.4 devel release
94c497f
Daniel Drake 8f10dfd
* Sat Aug 10 2013 Daniel Drake <dsd@laptop.org> 0.99.1-3
Daniel Drake 8f10dfd
- Add dependency on libxklavier, used via gobject-introspection
Daniel Drake 8f10dfd
4e2a02f
* Mon Aug  5 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.1-2
4e2a02f
- Add dependency on gwebsockets for webservices
4e2a02f
74bcbd1
* Wed Jul 31 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.1-1
74bcbd1
- 0.99.1 devel release
74bcbd1
Daniel Drake 8196c07
* Thu Jul 11 2013 Daniel Drake <dsd@laptop.org> 0.99.0-2
Daniel Drake 8196c07
- Remove dependencies not required by Sugar shell
Daniel Drake 8196c07
3fd278a
* Fri Jun 28 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.0-1
3fd278a
- 0.99.0 devel release
3fd278a
- Trim changelog
3fd278a
3eb3ee0
* Sun May 26 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.8-2
3eb3ee0
- Update default control panels
3eb3ee0
5f3a9b1
* Fri May 24 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.8-1
5f3a9b1
- Sugar 0.98.8 stable release
5f3a9b1
c7b7638
* Fri Apr 12 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.7-1
c7b7638
- Sugar 0.98.7 stable release
c7b7638
d0dcc1f
* Fri Mar 22 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.6-1
d0dcc1f
- Sugar 0.98.6 stable release
d0dcc1f
61f00bd
* Fri Mar  8 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.5-1
61f00bd
- Sugar 0.98.5 stable release
61f00bd
5b67729
* Sat Feb 16 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.4-1
d8cb225
- Sugar 0.98.4 stable release
d8cb225
Simon Schampijer ed12612
* Fri Dec 21 2012 Simon Schampijer <simon@laptop.org> - 0.98.3-1
Simon Schampijer ed12612
- Sugar 0.98.3 stable release
Simon Schampijer ed12612
0cb49f8
* Tue Dec 18 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.2-1
0cb49f8
- Sugar 0.98.2 stable release
0cb49f8
be0eff3
* Mon Dec 10 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.1-1
be0eff3
- Sugar 0.98.1 stable release
be0eff3
be9d613
* Thu Nov 29 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.98.0-1
be0eff3
- Sugar 0.98.0 stable release
be9d613
fb8869f
* Tue Nov 27 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.97.13-1
fb8869f
- 0.97.13 devel release
fb8869f
41c3097
* Sat Nov 24 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.97.12-1
41c3097
- 0.97.12 devel release 
41c3097
68bd51c
* Sat Nov 10 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.97.11-1
68bd51c
- 0.97.11 devel release
68bd51c
d710dc4
* Wed Nov  7 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.97.10-1
d710dc4
- 0.97.10 devel release
d710dc4
2b31f40
* Thu Oct 25 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.97.9-1
2b31f40
- 0.97.9 devel release
2b31f40
Daniel Drake 1d15fc8
* Tue Oct 16 2012 Daniel Drake <dsd@laptop.org> 0.97.8-1
Daniel Drake 1d15fc8
- 0.97.8 devel release
Daniel Drake 1d15fc8
50ca148
* Thu Oct 11 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.97.7-1
50ca148
- 0.97.7 devel release
50ca148
7415996
* Fri Oct  5 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.97.6-1
7415996
- 0.97.6 devel release
7415996
4c178ff
* Thu Oct  4 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.97.5-2
4c178ff
- Split out Control Panels to sub packages
4c178ff
- Update gnome-keyring patch. RHBZ 862581
4c178ff
- Add patch to update build dependencies
4c178ff
Daniel Drake 2b36110
* Thu Sep 27 2012 Daniel Drake <dsd@laptop.org> - 0.97.5-1
Daniel Drake 2b36110
- New development release
Daniel Drake 2b36110
Daniel Drake 64056cd
* Thu Sep 20 2012 Daniel Drake <dsd@laptop.org> - 0.97.4-1
Daniel Drake 64056cd
- New development release
Daniel Drake 64056cd
Daniel Drake 5d834e7
* Thu Sep 13 2012 Daniel Drake <dsd@laptop.org> - 0.97.3-1
Daniel Drake 5d834e7
- New development release
Daniel Drake 5d834e7
50c0608
* Tue Aug 28 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.97.2-1
50c0608
- 0.97.2 devel release
50c0608
085c9d1
* Tue Aug 21 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.97.1-1
085c9d1
- 0.97.1 devel release
085c9d1
b443ada
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96.3-2
b443ada
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b443ada
ee5005a
* Fri Jun 15 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.96.3-1
ee5005a
- 0.96.3 stable release
ee5005a
1270d0d
* Tue Jun  5 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.96.2-1
1270d0d
- 0.96.2 stable release
1270d0d
b869103
* Sat May  5 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.96.1-2
b869103
- Add patch to create gnome keyring if it doesn't exist
b869103
eaed34a
* Mon Apr 30 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.96.1-1
eaed34a
- 0.96.1 stable release
eaed34a
765051f
* Tue Apr 24 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.96.0-1
765051f
- 0.96.0 stable release
765051f
8e403b2
* Thu Apr 19 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.7-1
8e403b2
- devel release 0.95.7
8e403b2
899f44b
* Mon Mar 26 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.6-1
899f44b
- devel release 0.95.6
899f44b
8d1da45
* Wed Mar 14 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.5-1
8d1da45
- devel release 0.95.5
8d1da45
Daniel Drake 0c45722
* Tue Mar  6 2012 Daniel Drake <dsd@laptop.org> - 0.95.4-2
Daniel Drake 0c45722
- Add dependency on sugar-toolkit-gtk3 (needed to launch activities)
Daniel Drake 0c45722
b8f312e
* Thu Feb  2 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.4-1
b8f312e
- devel release 0.95.4
b8f312e
e3fdb2f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95.3-4
e3fdb2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e3fdb2f
88d44cf
* Mon Jan  2 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.3-3
88d44cf
- Drop premature sugar-base obsoletion
88d44cf
8dd9dcd
* Thu Dec 22 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.3-2
8dd9dcd
- Obsolete sugar-base
8dd9dcd
6f75424
* Wed Dec 21 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.3-1
6f75424
- devel release 0.95.3
6f75424
ef92526
* Wed Nov 16 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.2-1
ef92526
- devel release 0.95.2
ef92526
b5226a2
* Tue Oct 25 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 0.95.1-1
b5226a2
- devel release 0.95.1