author | dermotm |
Mon, 11 Apr 2005 08:50:58 +0000 | |
changeset 5333 | 817fa62bc95d |
parent 5298 | c5fcaa0ae6ab |
child 5338 | ed8e0b7db1fb |
permissions | -rw-r--r-- |
1118 | 1 |
# |
2 |
# Copyright (c) 2003 Sun Microsystems Inc. |
|
3 |
# This file and all modifications and additions to the pristine |
|
4 |
# package are under the same license as the package itself. |
|
5 |
# |
|
6 |
Name: bootsplash-theme-Sun |
|
5298 | 7 |
Version: 0.8.3 |
5333 | 8 |
Release: 33 |
4867
e8cfe7e64783
*.spec (almost): update Vendor and Distribution tags
dermotm
parents:
4860
diff
changeset
|
9 |
Distribution: Java Desktop System, Release 3 |
1118 | 10 |
Group: User Interface/Desktops |
11 |
Vendor: Sun Microsystems, Inc. |
|
12 |
Copyright: commercial |
|
13 |
Provides: bootsplash-theme |
|
14 |
Provides: %{name} |
|
15 |
Provides: %{name}-%{version}-%{release} |
|
16 |
URL: http://www.sun.com |
|
17 |
Source: %{name}-%{version}.tgz |
|
4455 | 18 |
Source1: l10n-configure.sh |
1118 | 19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
20 |
Group: User Interface/Desktops |
|
21 |
Summary: Sample boot splash theme for the Sun Mercury Desktop |
|
22 |
Autoreqprov: on |
|
23 |
||
5021 | 24 |
Requires: aaa_base mkinitrd |
1118 | 25 |
|
3628 | 26 |
%define splash_theme /etc/bootsplash/themes |
1118 | 27 |
%define templates /var/adm/fillup-templates |
28 |
%define sysconfig sysconfig.%{name} |
|
29 |
%define default_theme Sun |
|
30 |
%define message /boot/message |
|
31 |
||
32 |
%description |
|
33 |
Sun branded sample boot splash theme for the Sun Mercury Desktop |
|
34 |
||
35 |
Property of Sun Microsystems Inc., 2003 |
|
36 |
||
37 |
%package devel |
|
38 |
Summary: Components for creating the %{name} bootsplash theme. |
|
39 |
Group: Development/Libraries/C and C++ |
|
40 |
%description devel |
|
41 |
Contains the necessary components to build the %{name} bootsplash theme. |
|
42 |
||
43 |
Property of Sun Microsystems Inc., 2003 |
|
44 |
||
45 |
%prep |
|
46 |
%setup -c |
|
47 |
||
4455 | 48 |
bash -x %SOURCE1 |
49 |
||
1118 | 50 |
%install |
51 |
||
52 |
\rm -rf $RPM_BUILD_ROOT |
|
53 |
\mkdir -p $RPM_BUILD_ROOT%{splash_theme}/%{default_theme} \ |
|
54 |
$RPM_BUILD_ROOT%{templates} \ |
|
55 |
||
56 |
# Let's start |
|
4328 | 57 |
SRCDIR=`\pwd`/bootsplash-theme-Sun/src |
1118 | 58 |
|
59 |
# bootsplash files |
|
60 |
cd ${SRCDIR} |
|
61 |
\cp -f sysconfig $RPM_BUILD_ROOT%{templates}/%{sysconfig} |
|
62 |
||
63 |
cd ${SRCDIR}/%{default_theme} |
|
4208 | 64 |
for d in bootloader config/*.cfg images/*.jpg bootloader-src-SLES-9.1 |
1118 | 65 |
do |
66 |
\tar cf - $d | (cd $RPM_BUILD_ROOT%{splash_theme}/%{default_theme} ; tar xpf -) |
|
67 |
done |
|
68 |
||
69 |
%post |
|
70 |
# Link the current theme |
|
71 |
if [ -d %{splash_theme} ]; then |
|
72 |
cd %{splash_theme} |
|
73 |
if [ -h current ]; then |
|
74 |
\rm -f current |
|
75 |
elif [ -d current ]; then |
|
76 |
\mv -f current current.orig |
|
77 |
fi |
|
78 |
\ln -s ./%{default_theme} %{splash_theme}/current |
|
79 |
||
80 |
# Backup original message file ONLY if not done earlier |
|
4635 | 81 |
\install --backup=simple -p --suffix=.pre-%{name} -m 644 ./%{default_theme}/bootloader/message %{message} |
82 |
\install --backup=simple -p --suffix=.pre-%{name} ./%{default_theme}/bootloader/splash /sbin/splash |
|
4328 | 83 |
# copy sysconfig template to /etc/sysconfig/bootsplash |
84 |
\mv /etc/sysconfig/bootsplash /etc/sysconfig/bootsplash.old |
|
85 |
\cp /var/adm/fillup-templates/sysconfig.bootsplash-theme-Sun /etc/sysconfig/bootsplash |
|
86 |
||
1118 | 87 |
# Create ramdisk image |
4208 | 88 |
\mkinitrd |
1118 | 89 |
fi |
90 |
||
91 |
%clean |
|
92 |
\rm -rf $RPM_BUILD_ROOT |
|
93 |
||
94 |
%files |
|
95 |
%defattr(-,root,root) |
|
96 |
||
97 |
%{splash_theme}/%{default_theme}/bootloader |
|
98 |
%{splash_theme}/%{default_theme}/config |
|
99 |
%{splash_theme}/%{default_theme}/images |
|
100 |
%{templates}/%{sysconfig} |
|
101 |
||
102 |
%files devel |
|
103 |
%defattr(-,root,root) |
|
4208 | 104 |
%{splash_theme}/%{default_theme}/bootloader-src-SLES-9.1 |
1118 | 105 |
|
106 |
%changelog |
|
4208 | 107 |
*Fri Oct 08 2004 - [email protected] %Version |
108 |
Modification for the SuSE 9.1 boot theme rewrite |
|
3628 | 109 |
*Wed Jul 07 2004 - [email protected] %Version |
110 |
Ported to SuSE9.1, changed splash_theme macro to /etc/bootsplash/themes |
|
1352 | 111 |
*Mon Oct 28 2003 - <[email protected]> %Version |
112 |
Expanded graphics to adjust more menu.items |
|
113 |
New graphics for bootsplash |
|
114 |
New graphics for grub and system splash (Less color usage) |
|
1297 | 115 |
*Sun Oct 20 2003 - <[email protected]> %Version |
116 |
New graphics from Chester |
|
1118 | 117 |
*Tue Sep 3 2003 - <[email protected]> %Version |
118 |
New graphics (Java Desktop System) |
|
119 |
Support scripts in the devel package |
|
120 |
*Tue Aug 26 2003 - <[email protected]> %Version |
|
121 |
Added Provides |
|
122 |
Renamed package |
|
123 |
New graphics (compressed) |
|
124 |
*Tue Jul 1 2003 Carl Gadener <[email protected]> |
|
125 |
Version 0.6-6 |
|
126 |
Separated theme deploy from devel |
|
127 |
*Mon Jun 30 2003 Carl Gadener <[email protected]> |
|
128 |
Version 0.6-5 |
|
129 |
Modified Images |
|
130 |
Removed Leadership theme |
|
131 |
*Fri Jun 27 2003 Carl Gadener <[email protected]> |
|
132 |
Version 0.6-4 |
|
133 |
New Images |
|
134 |
*Wed Jun 18 2003 Carl Gadener <[email protected]> |
|
135 |
Version 0.6-3 |
|
136 |
Changed References from Openstack to Sun |
|
137 |
*Fri Jun 13 2003 Carl Gadener <[email protected]> |
|
138 |
Version 0.6-2 |
|
139 |
Simplified Makefile |
|
140 |
*Wed Jun 11 2003 Carl Gadener <[email protected]> |
|
141 |
Version 0.6-1 |
|
142 |
New Grub splash screen |
|
143 |
Added post install script |
|
144 |
*Thu Jun 4 2003 Carl Gadener <[email protected]> |
|
145 |
Version 0.5-1 |
|
146 |
Creation of RPM package |