Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/0.84/platform/sugar/SPECS/sugar.spec
blob: 3f8864fd4303995498676b2f291029ea75dbe1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# NOTE: Do not edit, file was generated by jhconvert

Name: sugar
Version: 0.84.5
Release: 1
Summary: Sugar window manager
License: GPL/LGPL
Group: System Environment/Libraries
Url: http://sugarlabs.org/

Source: http://download.sugarlabs.org/sources/sucrose/glucose/sugar/sugar-0.84.5.tar.bz2

Patch: sugar-0.84.5-sugar-start-script.patch

Requires: sugar-artwork >= 0.84.1
Requires: dbus-1  
Requires: dbus-1-x11  
Requires: gconf2  
Requires: gstreamer-0_10-plugins-base  
Requires: python-gstreamer-0_10  
Requires: gtk2  
Requires: hal  
Requires: gnome-python-desktop  
Requires: matchbox-window-manager  
Requires: python-numpy  
Requires: openssh  
Requires: python-gtk  
Requires: python-gtksourceview  
Requires: python  
Requires: python-cjson  
Requires: sugar-toolkit >= 0.84.4
Requires: xorg-x11  

BuildRequires: perl-XML-Parser  
BuildRequires: gconf2-devel  
BuildRequires: gettext  
BuildRequires: gtk2-devel  
BuildRequires: intltool >= 0.33
BuildRequires: python-gtk-devel  
BuildRequires: python-devel  
BuildRequires: fdupes

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
This package contains the base modules for Sugar.
Sugar is a graphical user interface aimed at children which promotes sharing
and collaborative learning. It was introduced on the One Laptop Per Child
(OLPC) XO laptop but is useful on other devices as well.

%package emulator
Summary: The emulator for the Sugar Desktop Environment
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: x11-server-xephyr
%description emulator
This package contains the Sugar emulator. It is using Xephyr
to run a Sugar environment similar to what is on the XO laptop. 

%prep
%setup -q -n sugar-0.84.5
%patch -p1

%build
%configure 
make 

%install
rm -rf %{buildroot}
make  \
	DESTDIR=%{buildroot} \
	install
%fdupes -s %{buildroot}
%find_lang sugar

%post
if (update-mime-database -v &> /dev/null); then
  update-mime-database "%{_datadir}/mime" > /dev/null
fi
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule \
	%{_sysconfdir}/gconf/schemas/sugar.schemas > /dev/null || :

%preun
if [ "$1" -eq 0 ]; then
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    gconftool-2 --makefile-uninstall-rule \
      %{_sysconfdir}/gconf/schemas/sugar.schemas > /dev/null || :
fi

%postun
if (update-mime-database -v &> /dev/null); then
  update-mime-database "%{_datadir}/mime" > /dev/null
fi

%clean
rm -rf %{buildroot}

%files -f sugar.lang
%defattr(-,root,root,-)
%dir %{_datadir}/sugar
%config(noreplace) %{_sysconfdir}/dbus*/system.d/*
%config(noreplace) %{_sysconfdir}/gconf/schemas/*
%{_bindir}/*
%exclude %{_bindir}/sugar-emulator
%(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/*
%{_datadir}/sugar/*
%{_datadir}/mime/packages/*
%{_datadir}/xsessions/sugar.desktop
%doc AUTHORS COPYING README

%files emulator
%defattr(-,root,root,-)
%{_bindir}/sugar-emulator

%changelog
* Thu Apr 23 2009 alsroot@member.fsf.org
- Switch to jhconvert
* Sat Mar  7 2009 lars@linux-schulserver.de
- use fdupes
* Fri Mar  6 2009 cyberorg@opensuse.org
- Update to 0.84.0
- See http://sugarlabs.org/go/DevelopmentTeam/Release/Releases/Sucrose/0.84.0
* Fri Jan 16 2009 cyberorg@opensuse.org
- Update to 0.83.4
* Wed Aug 27 2008 cyberorg@opensuse.org
- Update to 0.82.0
* Tue Aug 26 2008 cyberorg@opensuse.org
- Initial packages for openSUSE based on Fedora 10