Raymond Wooninck 2012-02-21 20:46:41 +00:00 committed by Git OBS Bridge
parent a62fee9653
commit 44b8c23286

View File

@ -1,7 +1,21 @@
#
# spec file for package plymouth
#
# Copyright (c) 2012 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/
#
%define plymouthdaemon_execdir %{_sbindir}
%define plymouthclient_execdir %{_bindir}
%define plymouth_libdir %{_libdir}
@ -12,9 +26,9 @@
Name: plymouth
Version: %{tarversion}_git%{patchversion}
Release: 1
License: GPL-2.0+
Release: 0
Summary: Graphical Boot Animation and Logger
License: GPL-2.0+
Group: System/Base
Source0: %{name}-%{version}.tar.bz2
Source1: boot-duration
@ -39,9 +53,9 @@ BuildRequires: pkgconfig(libdrm_intel)
BuildRequires: pkgconfig(libdrm_nouveau)
BuildRequires: pkgconfig(libdrm_radeon)
BuildRequires: pkgconfig(libkms)
Requires: %{name}-branding = %{version}
Requires: suspend >= 0.80.20100129.1
Requires: systemd-plymouth
Requires: %{name}-branding = %{version}
Obsoletes: bootsplash
%description
@ -320,14 +334,14 @@ fi
%postun -n libply-splash-graphics2 -p /sbin/ldconfig
%post theme-spinfinity
export LIB=%{_lib}
export LIB=%{_libdir}
%{_sbindir}/plymouth-set-default-theme spinfinity
if [ -x /sbin/mkinitrd ]; then
/sbin/mkinitrd
fi
%postun theme-spinfinity
export LIB=%{_lib}
export LIB=%{_libdir}
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "spinfinity" ]; then
%{_sbindir}/plymouth-set-default-theme --reset
@ -336,14 +350,14 @@ if [ $1 -eq 0 ]; then
fi
%post theme-fade-in
export LIB=%{_lib}
export LIB=%{_libdir}
%{_sbindir}/plymouth-set-default-theme fade-in
if [ -x /sbin/mkinitrd ]; then
/sbin/mkinitrd
fi
%postun theme-fade-in
export LIB=%{_lib}
export LIB=%{_libdir}
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "fade-in" ]; then
%{_sbindir}/plymouth-set-default-theme --reset
@ -352,14 +366,14 @@ if [ $1 -eq 0 ]; then
fi
%post theme-solar
export LIB=%{_lib}
export LIB=%{_libdir}
%{_sbindir}/plymouth-set-default-theme solar
if [ -x /sbin/mkinitrd ]; then
/sbin/mkinitrd
fi
%postun theme-solar
export lib=%{_lib}
export lib=%{_libdir}
if [ $1 -eq 0 ]; then
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "solar" ]; then
%{_sbindir}/plymouth-set-default-theme --reset