bootsplash-theme-Sun.spec
author dermotm
Mon, 06 Sep 2004 10:13:24 +0000
changeset 3858 a0a00bd9bb27
parent 3679 a83eeeda363e
child 4007 3cf8b6afa295
permissions -rw-r--r--
Incremented release numbers for build 18

#
# Copyright (c) 2003 Sun Microsystems Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: bootsplash-theme-Sun
Version: 0.6.16.4
Release: 30
Distribution: Cinnabar
Group: User Interface/Desktops
Vendor: Sun Microsystems, Inc.
Copyright: commercial
Provides: bootsplash-theme
Provides: %{name}
Provides: %{name}-%{version}-%{release}
URL: http://www.sun.com
Source: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: User Interface/Desktops
Summary: Sample boot splash theme for the Sun Mercury Desktop
Autoreqprov:  on

Requires:      aaa_base 

%define splash_theme /etc/bootsplash/themes
%define templates /var/adm/fillup-templates
%define sysconfig sysconfig.%{name}
%define default_theme Sun
%define message /boot/message

%description
Sun branded sample boot splash theme for the Sun Mercury Desktop

Property of Sun Microsystems Inc., 2003

%package devel
Summary: Components for creating the %{name} bootsplash theme.
Group: Development/Libraries/C and C++
%description devel
Contains the necessary components to build the %{name} bootsplash theme.

Property of Sun Microsystems Inc., 2003

%prep
%setup -c

%install

\rm -rf $RPM_BUILD_ROOT
\mkdir -p $RPM_BUILD_ROOT%{splash_theme}/%{default_theme} \
          $RPM_BUILD_ROOT%{templates} \

# Let's start
SRCDIR=`\pwd`/src

# bootsplash files
cd ${SRCDIR}
\cp -f sysconfig $RPM_BUILD_ROOT%{templates}/%{sysconfig}

cd ${SRCDIR}/%{default_theme}
for d in bootloader config src images/*.jpg
do 
  \tar cf - $d | (cd $RPM_BUILD_ROOT%{splash_theme}/%{default_theme} ; tar xpf -)
done

%post
# Link the current theme
if [ -d %{splash_theme} ]; then
   cd %{splash_theme}
   if   [ -h current ]; then
     \rm -f current
   elif [ -d current ]; then
     \mv -f current current.orig
   fi
   \ln -s ./%{default_theme} %{splash_theme}/current

   # Backup original message file ONLY if not done earlier
   if [ ! -f  %{message}.pre-%{name} ]; then
	\install --backup=simple -p --suffix=.pre-%{name} -m 644  ./%{default_theme}/bootloader/message %{message}
   fi

   # Create ramdisk image
   # \mkinitrd   - Per SuSe's request
fi

%clean
\rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README

%{splash_theme}/%{default_theme}/bootloader
%{splash_theme}/%{default_theme}/config
%{splash_theme}/%{default_theme}/images
%{templates}/%{sysconfig}

%files devel
%defattr(-,root,root)
%{splash_theme}/%{default_theme}/src

%changelog
*Wed Jul 07 2004 - [email protected] %Version
	Ported to SuSE9.1, changed splash_theme macro to /etc/bootsplash/themes
*Mon Oct 28 2003 - <[email protected]> %Version
	Expanded graphics to adjust more menu.items
	New graphics for bootsplash
	New graphics for grub and system splash (Less color usage)
*Sun Oct 20 2003 - <[email protected]> %Version
	New graphics from Chester
*Tue Sep 3 2003 - <[email protected]> %Version
	New graphics (Java Desktop System)
	Support scripts in the devel package
*Tue Aug 26 2003 - <[email protected]> %Version
	Added Provides
	Renamed package
	New graphics (compressed)
*Tue Jul 1 2003 Carl Gadener <[email protected]>
	Version 0.6-6
	Separated theme deploy from devel
*Mon Jun 30 2003 Carl Gadener <[email protected]>
	Version 0.6-5
	Modified Images
	Removed Leadership theme
*Fri Jun 27 2003 Carl Gadener <[email protected]>
	Version 0.6-4
	New Images
*Wed Jun 18 2003 Carl Gadener <[email protected]>
	Version 0.6-3
	Changed References from Openstack to Sun
*Fri Jun 13 2003 Carl Gadener <[email protected]>
	Version 0.6-2
	Simplified Makefile
*Wed Jun 11 2003 Carl Gadener <[email protected]>
	Version 0.6-1
	New Grub splash screen
	Added post install script
*Thu Jun 4 2003 Carl Gadener <[email protected]>
	Version 0.5-1
	Creation of RPM package