Name: myfonts Summary: Collection of My Funny Fonts Version: 1.1 Release: 1 License: GPL Group: User Interface/X Source: %{name}.tar.gz BuildRoot: %{_tmppath}/build-root-%{name} BuildArch: noarch Requires: freetype Packager: Avi Alkalay Prefix: /usr/share/fonts Url: http://myfonts.com/ %description These are the fonts used in our marketing campaign, designed by our marketing agency specially for us. The package includes the following fonts: Font 1, Font 2, Font 3, Font 4. %prep %setup -q -n %{name} %build %install mkdir -p $RPM_BUILD_ROOT/%{prefix} cp -r %{name}/ $RPM_BUILD_ROOT/%{prefix} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,0755) %{prefix}/%{name} %post { if test -x /sbin/conf.d/SuSEconfig.fonts ; then # This is a SUSE system. Use proprietary SuSE tools... if test "$YAST_IS_RUNNING" != "instsys" ; then if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.fonts ; then /sbin/SuSEconfig --module fonts else echo -e "\nERROR: SuSEconfig or requested SuSEconfig module not present!\n" ; exit 1 fi fi if test -x /sbin/conf.d/SuSEconfig.pango ; then if test "$YAST_IS_RUNNING" != "instsys" ; then if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.pango ; then /sbin/SuSEconfig --module pango else echo -e "\nERROR: SuSEconfig or requested SuSEconfig module not present!\n" ; exit 1 fi fi fi else # Use regular open standards methods... ttmkfdir -d %{prefix}/%{name} \ -o %{prefix}/%{name}/fonts.scale umask 133 /usr/X11R6/bin/mkfontdir %{prefix}/%{name} /usr/sbin/chkfontpath -q -a %{prefix}/%{name} [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache fi } &> /dev/null || : %preun { if [ "$1" = "0" ]; then cd %{prefix}/%{name} rm -f fonts.dir fonts.scale fonts.cache* fi } &> /dev/null || : %postun { if test -x /sbin/conf.d/SuSEconfig.fonts ; then # This is a SUSE system. Use proprietary SuSE tools... if test "$YAST_IS_RUNNING" != "instsys" ; then if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.fonts ; then /sbin/SuSEconfig --module fonts else echo -e "\nERROR: SuSEconfig or requested SuSEconfig module not present!\n" ; exit 1 fi fi if test -x /sbin/conf.d/SuSEconfig.pango ; then if test "$YAST_IS_RUNNING" != "instsys" ; then if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.pango ; then /sbin/SuSEconfig --module pango else echo -e "\nERROR: SuSEconfig or requested SuSEconfig module not present!\n" ; exit 1 fi fi fi else # Use regular open standards methods... if [ "$1" = "0" ]; then /usr/sbin/chkfontpath -q -r %{prefix}/%{name} fi [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache fi } &> /dev/null || : %changelog * Sun Apr 15 2007 Avi Alkalay <avi unix sh> 1.1 - Added support to SUSE on installation scriptlets * Thu Dec 14 2002 Avi Alkalay <avi unix sh> 1.0 - Tested - Ready for deployment * Thu Dec 10 2002 Avi Alkalay <avi unix sh> 0.9 - First version of the template