blob: 687416c7bfb74680c9ec04f3c16c2e82e20a9866 (
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
|
Name: sugar-logos
Version: 2
Release: 2%{?dist}
Summary: Boot splash imagery for Sugar on a Stick
Group: System Environment/Base
License: GPLv2+
URL: http://git.sugarlabs.org/projects/sugar-logos
Source0: http://download.sugarlabs.org/sources/external/sugar-logos/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: plymouth
Requires: plymouth-plugin-two-step
%description
A boot splash screen for Sugar using Plymouth.
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/sugar/
for i in src/* ; do
install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/sugar/
done
%clean
rm -rf $RPM_BUILD_ROOT
%post
export LIB=%{_lib}
if [ $1 -eq 1 ]; then
%{_sbindir}/plymouth-set-default-theme sugar
else
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "solar" ]; then
%{_sbindir}/plymouth-set-default-theme sugar
fi
fi
%postun
export LIB=%{_lib}
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "sugar" ]; then
%{_sbindir}/plymouth-set-default-theme --reset
fi
fi
%files
%defattr(-,root,root,-)
%doc COPYING AUTHORS
%{_datadir}/plymouth/themes/sugar/
%changelog
* Sat Feb 27 2010 Sebastian Dziallas <sebastian@when.com> 2-2
- activate the new theme too
- add authors file
* Wed Feb 17 2010 Sebastian Dziallas <sebastian@when.com> 2-1
- initial packaging
|