-#
+# TODO:
+# - upgrade puts new files into /usr/share/fontconfig/conf.avail/*.conf
+# and also removes /etc/fonts/conf.avail/*.conf BUT there is a symlink
+# /etc/fonts/conf.avail/ -> /usr/share/fontconfig/conf.avail/ and in the end
+# rpm deletes freshly installed /usr/share/fontconfig/conf.avail/*.conf files
+
# Conditional build
%bcond_without static_libs # don't build static library
%bcond_without doc
Summary(pt_BR.UTF-8): Ferramentas para configuração e customização do acesso a fontes
Name: fontconfig
Version: 2.10.1
-Release: 1
+Release: 0.1
Epoch: 1
License: MIT
Group: Libraries
%clean
rm -rf $RPM_BUILD_ROOT
-%pretrans
-# this needs to be a symlink
-if [ -d "%{_sysconfdir}/fonts/conf.avail" ]; then
- umask 022
- mv -f %{_sysconfdir}/fonts/conf.avail{,.rpmsave}
-fi
-
%post
umask 022
HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || :