Put %post script in {}'s for tidyness, and change the call to fc-cache to
use %{_bindir}/fc-cache
This commit is contained in:
parent
5283328a60
commit
c674c89bf9
|
@ -53,10 +53,11 @@ make %{_smp_mflags}
|
|||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
# Force regeneration of all fontconfig cache files.
|
||||
fc-cache -f --system-only
|
||||
{
|
||||
/sbin/ldconfig
|
||||
# Force regeneration of all fontconfig cache files.
|
||||
%{_bindir}/fc-cache -f --system-only
|
||||
}
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
|
Loading…
Reference in New Issue