Sophie

Sophie

distrib > Arklinux > devel > i586 > by-pkgid > 5bcc2fc3ba4d9e440c7bb5a193f26831 > files > 2

ttfonts-larabie-20020823-7ark.src.rpm

%define ttfontdir %{_datadir}/fonts/default/TrueType

Name: ttfonts-larabie
Version: 20020823
Release: 7ark
Summary: High quality TrueType fonts from Ray Larabie
Source0: %{name}-%{version}.tar.bz2
License: Distributable
Group: User Interface/X
BuildRoot: %{_tmppath}/%{name}-root
BuildArch: noarch
Prereq: freetype chkfontpath findutils
Prereq: fontconfig xorg-font-utils

%description
The ttfonts-larabie package contains excellent TrueType fonts made and
provided by Ray Larabie.  We recommend visiting the following sites for
more fonts, and information on Typodermic.

   * http://www.typodermic.com/
   * http://www.larabiefonts.com/

Fonts included in this package include:

Berylium, betsy flanagan, blue highway, blue highway condensed, bullpen
bullpen 3d, chinese rocks, colourbars, credit valley, dream orphans,
edmunds, engebrachtre, engebrachtre expanded, forgotten futurist, 
goodfish, guanine, heart sweet heart, hemi head 426, junegull, kirsty, 
mufferaw, nasalization, pupcat, rina, spongy, squealer, squealer embossed,
subpear, teen, teen light, typodermic, union city blue, vahika, vectroid, 
venus rising, vibrocentric, vinque, zekton

%prep
%setup -q

%install
rm -rf $RPM_BUILD_ROOT

install -m755 -d $RPM_BUILD_ROOT/%ttfontdir
find . -name "*.ttf" -exec install -m644 {} $RPM_BUILD_ROOT%{ttfontdir} \;

# These are created properly in the post section
touch $RPM_BUILD_ROOT%{ttfontdir}/fonts.{dir,scale,cache-1}

%post
%_bindir/mkfontscale %ttfontdir
%_bindir/mkfontdir %ttfontdir
/usr/sbin/chkfontpath -q -a %{ttfontdir}

%postun
if [ "$1" = "0" ]; then
  if [ "x$(find %{ttfontdir} -name "*.ttf" -or -name "*.TTF" 2>/dev/null)" != "x" ]; then
  # stuff left-over, reconfig
    cd %{ttfontdir}
    %_bindir/mkfontscale
    %_bindir/mkfontdir
    %_bindir/fc-cache %{ttfontdir} 2>/dev/null ||:
  else
    # we're empty
    rm -f %{ttfontdir}/encodings.dir
    chkfontpath -q -r %{ttfontdir} ||:
  fi
fi

# trigger for fc-cache in case XFree>=4.1.0 is installed after we are
%triggerin -- XFree86 >= 4.1.0
fc-cache %{ttfontdir} ||:

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc READ_ME.TXT BETSY.TXT TEEN.TXT
%ghost %{ttfontdir}/fonts.dir
%ghost %{ttfontdir}/fonts.scale
%ghost %{ttfontdir}/fonts.cache-1
%{ttfontdir}/*.ttf

%changelog
* Sun Jan 22 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 20020823-7ark
- Eliminate dependency on XFree86-font-utils

* Thu Jan 12 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 20020823-6ark
- mkfontscale lives in %_bindir these days

* Mon Dec 20 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 20020823-5ark
- Use mkfontscale rather than ttmkfdir

* Thu Jan 09 2003 Natasha Sainty <natasha@arklinux.org> 20020823-4ark
- Add PreReq for all necessary pkgs - fontconfig XFree86-font-utils
  ttmkfdir, for fc-cache, ttmkfdir, mkfontdir
- Ghost fonts.cache-1

* Sun Dec 08 2002 Sergio Visinoni <piffio@arklinux.org> 20020823-3ark
- Use fc-cache instead of xftcache in postlet scripts (fix #1)

* Sun Aug 31 2002 David Sainty <saint@arklinux.org> 20020823-1ark
- First Ark release