# directories %_fontsdir %{_usr}/share/fonts %_ttfontsdir %{_fontsdir}/truetype # package build macros %reconfigure_fonts_prereq \ Requires(pre): perl aaa_base \ %nil # macro: reconfigure_fonts # font setup for suse # options: # -c (the fonts are CJK fonts, also do setup which is only needed # for CJK) %reconfigure_fonts(c) \ if test -x /usr/sbin/fonts-config ; then \ LC_ALL=POSIX \ /usr/sbin/fonts-config --verbose \ fi \ %{-c: \ if test -x /usr/sbin/acroread-cidfont-config ; then \ /usr/sbin/acroread-cidfont-config \ fi \ if test -x /usr/sbin/ghostscript-cjk-config ; then \ /usr/sbin/ghostscript-cjk-config \ fi} \ %nil # macro: reconfigure_fonts_post # now alias to reconfigure_fonts, this can change in the future # options: # -c (the fonts are CJK fonts, also do setup which is only needed # for CJK) %reconfigure_fonts_post(c) \ if [ $1 -ne 2 ]; then \ %reconfigure_fonts c \ fi \ %nil # macro: reconfigure_fonts_postun # now alias to reconfigure_fonts, this can change in the future # options: # -c (the fonts are CJK fonts, also do setup which is only needed # for CJK) %reconfigure_fonts_postun(c) \ %reconfigure_fonts c \ %nil # macro: reconfigure_fonts_post # do nothing for now, this can change in the future # options: # -c (the fonts are CJK fonts, also do setup which is only needed # for CJK) %reconfigure_fonts_posttrans(c) \ %nil # macro: reconfigure_fonts_scriptles # groups %post, %postun and %posttrans of font packages # options: # -c (the fonts are CJK fonts, also do setup which is only needed # for CJK) # -n (name of subpackage; when ommited, also no -n parameter # is passed to %post, %postun and %posttrans) %reconfigure_fonts_scriptlets(c,n:) \ %post %{-n:-n %{-n*}} \ %reconfigure_fonts_post c \ \ %postun %{-n:-n %{-n*}} \ %reconfigure_fonts_postun c \ \ %posttrans %{-n:-n %{-n*}} \ %reconfigure_fonts_posttrans c \ \ %nil