--- /dev/null
+[Unit]
+Description=psplash splash screen writer
+DefaultDependencies=0
+Requires=systemd-tmpfiles-setup.service
+After=systemd-tmpfiles-setup.service
+
+[Service]
+Environment=TMPDIR=/run/psplash
+ExecStart=/usr/bin/psplash -n
+
+[Install]
+WantedBy=sysinit.target
--- /dev/null
+Name: psplash
+Version: 0.1
+Release: 0
+Summary: Very simple boot splash screen
+Group: Base/Startup
+License: GPL-2.0+
+URL: http://git.yoctoproject.org/cgit/cgit.cgi/psplash
+Source: %{name}-%{version}.tar.bz2
+
+%description
+Very simple boot splash screen
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+./autogen.sh --prefix=/usr
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/
+cp data/psplash.conf $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/
+
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system/sysinit.target.wants
+install -m 0644 data/psplash.service $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system
+ln -s ../psplash.service $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system/sysinit.target.wants/psplash.service
+
+mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/systemd/user/weston.target.wants
+install -m 0644 data/psplash-quit.service $RPM_BUILD_ROOT%{_prefix}/lib/systemd/user
+ln -s ../psplash-quit.service $RPM_BUILD_ROOT%{_prefix}/lib/systemd/user/weston.target.wants/psplash-quit.service
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/psplash*
+%{_prefix}/lib/systemd/system/psplash.service
+%{_prefix}/lib/systemd/system/sysinit.target.wants/psplash.service
+%{_prefix}/lib/systemd/user/psplash-quit.service
+%{_prefix}/lib/systemd/user/weston.target.wants/psplash-quit.service
+%{_prefix}/lib/tmpfiles.d/psplash.conf
+%doc