File plymouth-theme-geko.spec of Package plymouth-theme-geko
#
# spec file for package plymouth-theme-geko
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: plymouth-theme-geko
Version: 0.1
Release: 0
Summary: Theme geko for Plymouth
License: GPL-3.0-or-later
Group: System/Base
URL: https://gitlab.com/z-ray-entertainment/geko-plymouth-theme
Source: https://gitlab.com/z-ray-entertainment/geko-plymouth-theme/-/archive/v%{version}/geko-plymouth-theme-v%{version}.tar.gz
Requires: plymouth-theme-spinner
Requires(post): plymouth-theme-spinner
BuildArch: noarch
%description
Theme geko for Plymouth.
%prep
%setup -q -n geko-plymouth-theme-v%{version}
%build
%install
mkdir -p %{buildroot}%{_datadir}/plymouth/themes
cp -r geko %{buildroot}%{_datadir}/plymouth/themes
%post
if [ $1 -eq 1 ]; then
set -x
export LIB=%{_libdir}
OTHEME="$(%{_sbindir}/plymouth-set-default-theme)"
if [ "$OTHEME" = "text" ]; then
if [ ! -e /.buildenv ]; then
%{_sbindir}/plymouth-set-default-theme -R geko
else
%{_sbindir}/plymouth-set-default-theme geko
fi
fi
fi
%postun
if [ $1 -eq 0 ]; then
export LIB=%{_libdir}
if [ "$(%{_sbindir}/plymouth-set-default-theme)" = "geko" ]; then
%{_sbindir}/plymouth-set-default-theme -R --reset
fi
fi
%files
%license LICENSE
%doc README.md
%{_datadir}/plymouth/themes/geko/
%changelog