]> git.pld-linux.org Git - packages/STonX.git/commitdiff
- use fontpostinst
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 20 Mar 2006 17:39:03 +0000 (17:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    STonX.spec -> 1.15

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.091163 seconds and 4 git commands to generate.