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