]> git.pld-linux.org Git - packages/STonX.git/blobdiff - STonX.spec
- use fontpostinst
[packages/STonX.git] / STonX.spec
index a33db4499be4c5568f39d5bfdc8f959c26417d55..cd7f00142878f78caba3b909c222ca6508b684c4 100644 (file)
@@ -25,6 +25,7 @@ BuildRequires:        autoconf
 BuildRequires: rpmbuild(macros) >= 1.268
 %{?with_svga:BuildRequires:    svgalib-devel}
 BuildRequires: unzip
+Requires(post,postun): fontpostinst
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -73,16 +74,10 @@ EOF
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -x /usr/X11R6/bin/mkfontdir ]; then
-       (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
-fi
-%service -q xfs reload
+fontpostinst misc
 
 %postun
-if [ -x /usr/X11R6/bin/mkfontdir ]; then
-       (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
-fi
-%service -q xfs reload
+fontpostinst misc
 
 %files
 %defattr(644,root,root,755)
@@ -92,4 +87,4 @@ fi
 %attr(755,root,root) %{_libdir}/STonX/stonx
 %{_libdir}/STonX/*.img
 %{_libdir}/STonX/Keysyms
-%{_fontsdir}/misc/*
+%{_fontsdir}/misc/*.pcf.gz
This page took 0.083809 seconds and 4 git commands to generate.