File ttf-caslon.spec of Package ttf-caslon

#
# spec file for package ttf-caslon (Version 20031202)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           ttf-caslon
%if %suse_version > 910
BuildRequires:  xorg-x11-devel
%else
BuildRequires:  XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define	fontdir     /usr/share/fonts/truetype
%else
%define	fontdir     /usr/X11R6/lib/X11/fonts/truetype
%endif
License:        BSD
Group:          System/X11/Fonts
Provides:       scalable-font-el, scalable-font-he, scalable-font-ru, scalable-font-bg
Autoreqprov:    on
PreReq:         %suseconfig_fonts_prereq
Version:        20031202
Release:        76
URL:            http://bibliofile.mc.duke.edu/gww/fonts/Unicode.html
# downloaded from
# http://bibliofile.mc.duke.edu/gww/fonts/Caslon/CasUni.zip
# and converted to tar.bz2 to save a bit of space
Source0:        http://bibliofile.mc.duke.edu/gww/fonts/Caslon/ttf-caslon-%{version}.tar.bz2
Source1:        http://bibliofile.mc.duke.edu/gww/FreeWare/license.html
Source2:        http://bibliofile.mc.duke.edu/gww/fonts/Unicode.html
BuildArchitectures: noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Caslon TrueType fonts

%description
The Caslon TrueType font is a partial implementation of Unicode. I does
not contain

* CJK characters (ideographs)

* Asian & Indian alphabets and sylabaries

* Arabic

but it contains enough for most European languages including the
euro-sign.



Authors:
--------
    George Williams <gww@silcom.com>

%prep
%setup -n %{name}
cp $RPM_SOURCE_DIR/*.html .

%build

%install
if [ -n "%{?buildroot}" ] ; then
   [ %{buildroot} != "/" ] && rm -rf %{buildroot};
fi
mkdir -p $RPM_BUILD_ROOT%{fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{fontdir}

%clean
#rm -rf $RPM_BUILD_ROOT

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files 
%defattr(-, root,root)
%doc *.html
%dir %{fontdir}/
%{fontdir}/*

%changelog -n ttf-caslon
* Wed Aug 09 2006 - mfabian@suse.de
- move fonts to /usr/share/fonts/truetype
  (openSUSE 10.2 will use X11R7).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 03 2004 - mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Mon Sep 13 2004 - mfabian@suse.de
- Bugzilla #45156: add "Provides: scalable-font-{el,he,ru,bg}".
* Fri Mar 19 2004 - mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Fri Feb 27 2004 - mfabian@suse.de
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Tue Dec 02 2003 - mfabian@suse.de
- update to latest version (20031202).
- remove fonts.scale completely.
* Wed Nov 26 2003 - mfabian@suse.de
- don't build as root
- remove unsupported ascii-0 encoding from fonts.scale
- remove useless %%post and %%postun.
* Fri Jun 13 2003 - mfabian@suse.de
- add %%dir /usr/X11R6/lib/X11/fonts/truetype/ to file list
* Wed Sep 19 2001 - mfabian@suse.de
- new package: ttf-caslon, version 20010222
openSUSE Build Service is sponsored by