Changeset 1646 for spec/trunk/SPECS


Ignore:
Timestamp:
May 29, 2019, 11:38:51 AM (7 years ago)
Author:
Silvan Scherrer
Message:

use a tmp dir when installing and executing fc-cache

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/fontconfig.spec

    r1645 r1646  
    55%global _fontconfig_confdir %{_sysconfdir}/fonts/conf.d
    66%global _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail
     7
     8# adjust it when the name changes, as else the build fails
     9%global dllName fntcnf1.dll
    710
    811%global freetype_version 2.10.0
     
    130133
    131134# Force regeneration of all fontconfig cache files
     135# we need to copy the dll to a tmp directory, as else it might not work
     136# imagine when the dll names is the same and it is loaded while installing
    132137rm -rf %{_localstatedir}/cache/fontconfig/*
    133 BEGINLIBPATH="$(echo %{_libdir} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g');$BEGINLIBPATH" \
     138cp %{_libdir}/%{dllName} %{_tmppath}
     139BEGINLIBPATH="$(echo %{_tmppath} | sed -re 's,/@unixroot,'$UNIXROOT',g' -e 's,/,\\,g');$BEGINLIBPATH" \
    134140LIBPATHSTRICT=T \
    135141%{_bindir}/fc-cache -f
     142rm -f %{_tmppath}/%{dllName}
    136143
    137144%postun
     
    148155%doc %{_fontconfig_confdir}/README
    149156%license COPYING
    150 %{_libdir}/fntcnf*.dll
     157%{_libdir}/%{dllName}
    151158%{_bindir}/fc-cache.exe
    152159%{_bindir}/fc-cat.exe
Note: See TracChangeset for help on using the changeset viewer.