Fonts scriptlet for CORE packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
  While doing reviews of fonts packages in core, i got confused on
post and postun sections (to check) of those packages as they are
using chkfontpath and mkfontdir and ttmkfdir but our standard
scriptlet as given on
http://fedoraproject.org/wiki/Packaging/ScriptletSnippets#head-4863fc4c93cec14292719d8901d83f5d90c3e477
fonts scriptlets uses following as post section in SPEC.
%post
if [ -x /usr/bin/fc-cache ]; then
 /usr/bin/fc-cache /usr/share/fonts
fi

But some core packages(fonts-japanese,fonts-korean,fonts-chinese,xorg-x11-fonts)
also want to use following under %post
umask 133
   touch %{ttfontdir} 2> /dev/null && {
       /usr/bin/ttmkfdir -d %{ttfontdir} -o %{ttfontdir}/fonts.scale
       mkfontdir %{ttfontdir}
       /usr/sbin/chkfontpath -q -a %{ttfontdir}
   }
   mkfontdir %{bmpfontdir} && /usr/sbin/chkfontpath -q -a %{bmpfontdir}
(Sorry for copying above text with under defined macros. I just want
to give example)

Do we need to have alternative scriptlet that includes above lines for
post section for fonts packages in CORE?

Regards,
Parag.

--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers

--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux