$ git show --format=fuller --patch-with-stat --summary 83dbcb7a5a37c1ed7534a2856db0111b72deb5b2
commit 83dbcb7a5a37c1ed7534a2856db0111b72deb5b2
Author: rugyada <rugyada@gmail.com>
AuthorDate: Mon Oct 11 20:42:52 2021 +0200
Commit: rugyada <rugyada@gmail.com>
CommitDate: Mon Oct 11 20:42:52 2021 +0200
add files and source
---
.abf.yml | 2 ++
om-plymouth-theme-elegant.spec | 58 +++++++++++++++++++++++++++++++++++++++++
openmandriva-elegant.tar.gz | Bin 0 -> 18072 bytes
3 files changed, 60 insertions(+)
create mode 100644 .abf.yml
create mode 100644 om-plymouth-theme-elegant.spec
create mode 100644 openmandriva-elegant.tar.gz
diff --git a/.abf.yml b/.abf.yml
new file mode 100644
index 0000000..43d4964
--- /dev/null
+++ b/.abf.yml
@@ -0,0 +1,2 @@
+sources:
+ openmandriva-elegant.tar.gz: 0ae330a2377ece1c22b042310ad8ff20de989a7a
diff --git a/om-plymouth-theme-elegant.spec b/om-plymouth-theme-elegant.spec
new file mode 100644
index 0000000..888f7ae
--- /dev/null
+++ b/om-plymouth-theme-elegant.spec
@@ -0,0 +1,58 @@
+# noarch package but uses _lib macro in post scripts
+%define _enable_debug_packages %{nil}
+%define debug_package %{nil}
+
+Summary: "Openmandriva Elegant" Plymouth theme
+Name: om-plymouth-theme-elegant
+Version: 2.0
+Release: 1
+License: Creative Commons Attribution-ShareAlike
+Group: System/Kernel and hardware
+URL: https://github.com/rugyada/om-plymouth-theme-elegant
+Source0: openmandriva-elegant.tar.gz
+Requires: plymouth
+Requires: plymouth-plugin-script
+Requires: plymouth-scripts
+Requires(post,postun): plymouth-scripts
+
+
+%description
+This package contains the "OpenMandriva Elegant" Plymouth theme.
+
+%files
+%{_datadir}/plymouth/themes/openmandriva-elegant
+
+%post
+if [ -x %{_sbindir}/plymouth-set-default-theme ]; then
+ export LIB=%{_lib}
+ if [ $1 -eq 1 ]; then
+ %{_sbindir}/plymouth-set-default-theme --rebuild-initrd openmandriva-elegant
+ else
+ THEME=$(%{_sbindir}/plymouth-set-default-theme)
+ if [ "$THEME" == "text" -o "$THEME" == "openmandriva-elegant" ]; then
+ %{_sbindir}/plymouth-set-default-theme --rebuild-initrd openmandriva-elegant
+ fi
+ fi
+fi
+
+%postun
+export LIB=%{_lib}
+if [ $1 -eq 0 -a -x %{_sbindir}/plymouth-set-default-theme ]; then
+ if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "openmandriva-elegant" ]; then
+ %{_sbindir}/plymouth-set-default-theme --reset --rebuild-initrd
+ fi
+fi
+
+#----------------------------------------------------------------------------
+
+%prep
+%setup -q -c
+find . -type f | xargs chmod 0644
+
+%build
+# nothing
+
+%install
+mkdir -p %{buildroot}%{_datadir}/plymouth/themes/
+
+cp -r openmandriva-elegant %{buildroot}%{_datadir}/plymouth/themes/
diff --git a/openmandriva-elegant.tar.gz b/openmandriva-elegant.tar.gz
new file mode 100644
index 0000000..3e42a19
Binary files /dev/null and b/openmandriva-elegant.tar.gz differ