File bootsplash-branding-openSUSE.spec of Package bootsplash-branding-openSUSE

#
# spec file for package bootsplash-branding-openSUSE (Version 3.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           bootsplash-branding-openSUSE
Url:            http://www.bootsplash.org/
Version:        3.1.1
Release:        100
Summary:        Default SUSE Bootsplash Theme
License:        BSD 3-clause (or similar)
Group:          System/Boot
AutoReqProv:    on
PreReq:         %fillup_prereq perl
Supplements:    branding-openSUSE
Provides:       bootsplash-branding
Obsoletes:      bootsplash-theme-SuSE
Provides:       bootsplash-theme-SuSE
# Scripts and programs
Source0:        openSUSE.tar.bz2
Source1:        SLES.tar.bz2
Source2:        SLED.tar.bz2
Source3:        upstream.tar.bz2
Source4:        LICENSE
# sysconfig files
Source20:       sysconfig.bootsplash-branding-openSUSE
Source21:       sysconfig.bootsplash-branding-SLES
Source22:       sysconfig.bootsplash-branding-SLED
Source23:       sysconfig.bootsplash-branding-upstream
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       bootsplash >= 3.3-11
BuildArch:      noarch

%description
This package contains the default theme for SUSE's graphical boot. Find
more information at http://www.bootsplash.org/.



Authors:
--------
    Stefan Reinauer <stepan@suse.de>
    Kenneth W. Wimer <wimer@suse.de>

%package -n     bootsplash-branding-SLES
License:        BSD 3-clause (or similar)
Supplements:    branding-SLES
Provides:       bootsplash-branding
Obsoletes:      bootsplash-theme-SuSE-SLES
Provides:       bootsplash-theme-SuSE-SLES
Summary:        Default SuSE Linux Enterprise Server Bootsplash Theme
AutoReqProv:    on
PreReq:         %fillup_prereq perl
Group:          System/Boot
Requires:       bootsplash >= 3.3-11

%description -n bootsplash-branding-SLES
This package contains the SLES theme for SuSE's graphical bootup
mechanism. More information can be found at http://www.bootsplash.org/



Authors:
--------
    Stefan Reinauer <stepan@suse.de>
    Kenneth W. Wimer <wimer@suse.de>

%package -n     bootsplash-branding-SLED
License:        BSD 3-clause (or similar)
Supplements:    branding-SLED
Provides:       bootsplash-branding
Obsoletes:      bootsplash-theme-SuSE-NLD
Provides:       bootsplash-theme-SuSE-NLD
Summary:        Default NLD Bootsplash Theme
AutoReqProv:    on
PreReq:         %fillup_prereq perl
Group:          System/Boot
Requires:       bootsplash >= 3.3-11

%description -n bootsplash-branding-SLED
This package contains the default theme for NLD's graphical bootup.
More information can be found at http://www.bootsplash.org/.



Authors:
--------
    Stefan Reinauer <stepan@suse.de>
    Kenneth W. Wimer <wimer@suse.de>

%package -n     bootsplash-branding-upstream
License:        BSD 3-clause (or similar)
Supplements:    branding-upstream
Provides:       bootsplash-branding
Summary:        Unbranded Bootsplash Theme
AutoReqProv:    on
PreReq:         %fillup_prereq perl
Group:          System/Boot
Requires:       bootsplash >= 3.3-11

%description -n bootsplash-branding-upstream
This package contains a theme without trademarked logos.



Authors:
--------
    Stefan Reinauer <stepan@suse.de>
    Kenneth W. Wimer <wimer@suse.de>

%prep
%setup -q -c
%setup -T -D -a 0
%setup -T -D -a 1
%setup -T -D -a 2
%setup -T -D -a 3
cp -p %{SOURCE4} .

%build

%install
mkdir -p %{buildroot}/etc/bootsplash
cp -a themes %{buildroot}/etc/bootsplash
for i in %{buildroot}/etc/bootsplash/themes/* ; do
  cp -a LICENSE $i/.
done
mkdir -p %{buildroot}/var/adm/fillup-templates
cp %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{buildroot}/var/adm/fillup-templates/

%post 
%{fillup_only -ns bootsplash branding-openSUSE }
perl -pi -e 's/^(THEME=).*/$1"openSUSE"/' /etc/sysconfig/bootsplash

%post -n bootsplash-branding-SLES
%{fillup_only -ns bootsplash branding-SLES }
perl -pi -e 's/^(THEME=).*/$1"SLES"/' /etc/sysconfig/bootsplash

%post -n bootsplash-branding-SLED
%{fillup_only -ns bootsplash branding-SLED }
perl -pi -e 's/^(THEME=).*/$1"SLED"/' /etc/sysconfig/bootsplash

%post -n bootsplash-branding-upstream
%{fillup_only -ns bootsplash branding-upstream }
perl -pi -e 's/^(THEME=).*/$1"upstream"/' /etc/sysconfig/bootsplash

%files
%defattr(-,root,root)
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
/etc/bootsplash/themes/openSUSE
%config /var/adm/fillup-templates/sysconfig.bootsplash-branding-openSUSE

%files -n bootsplash-branding-SLES
%defattr(-,root,root)
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
/etc/bootsplash/themes/SLES
%config /var/adm/fillup-templates/sysconfig.bootsplash-branding-SLES

%files -n bootsplash-branding-SLED
%defattr(-,root,root)
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
/etc/bootsplash/themes/SLED
%config /var/adm/fillup-templates/sysconfig.bootsplash-branding-SLED

%files -n bootsplash-branding-upstream
%defattr(-,root,root)
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
/etc/bootsplash/themes/upstream
%config /var/adm/fillup-templates/sysconfig.bootsplash-branding-upstream

%changelog
openSUSE Build Service is sponsored by