| 25 | | |
| | 25 | |
| | 26 | === TrueType-*.spec === |
| | 27 | {{{ |
| | 28 | %define __fccache umask 133;which fc-cache &> /dev/null && fc-cache -f |
| | 29 | %define __updmap [ -x %{_bindir}/updmap-sys ] && %{_bindir}/env - %{_bindir}/updmap-sys --nostop 2> /dev/null |
| | 30 | %define __upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null |
| | 31 | |
| | 32 | %post |
| | 33 | %{_bindir}/mktcapdir %{fontdir} %{fontdir}/*.ttfconf |
| | 34 | ( %{__upddeffont} ) ||: |
| | 35 | ( %{__updmap} ) ||: |
| | 36 | ( %__fccache %{fontdir} ) ||: |
| | 37 | |
| | 38 | %postun |
| | 39 | %{_bindir}/mktcapdir %{fontdir} %{fontdir}/*.ttfconf |
| | 40 | ( %{__upddeffont} ) ||: |
| | 41 | ( %{__updmap} ) ||: |
| | 42 | ( %__fccache %{fontdir} ) ||: |
| | 43 | }}} |