File plymouth-theme-rumbletumble.spec of Package plymouth-theme-rumbletumble
#
# spec file for package plymouth-theme-rumbletumble
#
# Copyright (c) 2025 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.
%define build_tar_ball 1
Name: plymouth-theme-rt
Version: 1760889387.844c6da
Release: 0
Summary: RumbleTumble animated Plymouth theme
License: GPL-2.0-or-later
Group: System/Base
URL: https://gitlab.com/rumble-tumble-os/packages/plymouth-theme-rt
%if %{build_tar_ball}
Source0: %{name}-%version.tar.xz
%else
Source0: _service
%endif
Requires(post): plymouth-scripts
BuildArch: noarch
Provides: plymouth-theme-rumbletumble = %{version}
Provides: rumbletumble-branding = %{version}
Obsoletes: plymouth-theme-rumbletumble < %{version}
%description
plymouth-theme-rt is an animated Rumble Tumble theme for Plymouth.
%prep
%setup -q
%build
# Nothing to build
%install
# Install using the theme's Makefile
mkdir -p %{buildroot}%{_datadir}/plymouth/themes/rt
cp rt/frames/* %{buildroot}%{_datadir}/plymouth/themes/rt/
cp rt/rt.script %{buildroot}%{_datadir}/plymouth/themes/rt/
cp rt/rt.plymouth %{buildroot}%{_datadir}/plymouth/themes/rt/
%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 rt
else
%{_sbindir}/plymouth-set-default-theme rt
fi
fi
fi
%postun
if [ $1 -eq 0 ]; then
export LIB=%{_libdir}
if [ "$(%{_sbindir}/plymouth-set-default-theme)" = "rt" ]; then
%{_sbindir}/plymouth-set-default-theme -R --reset
fi
fi
%files
%{_datadir}/plymouth/themes/rt
%changelog