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} cp data/psplash-tizen-img.h psplash-poky-img.h %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