]> git.pld-linux.org Git - packages/bootsplash.git/blobdiff - bootsplash.spec
- added chkconfig stuff (its off by default anyway, cause
[packages/bootsplash.git] / bootsplash.spec
index efd4604f285b3a46d7159c1ce9e3951ba5b73b6e..17e9be3cf197a4a93e4d5af22305fd20426a2300 100644 (file)
@@ -20,6 +20,7 @@ Patch0:               %{name}-3.2_makefile_libmng.patch
 URL:           http://www.bootsplash.org/
 BuildRequires: freetype-devel >= 2.1
 BuildRequires: libmng-devel
+Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _bindir /bin
@@ -65,6 +66,15 @@ install Utilities/*.ttf $RPM_BUILD_ROOT%{_datadir}/%{name}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add bootsplash
+
+%preun
+if [ "$1" = "0" ]; then
+       %service bootsplash stop
+       /sbin/chkconfig --del bootsplash
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc {Documentation,Utilities}/README.*
This page took 0.057463 seconds and 4 git commands to generate.