File sil-charis.spec of Package sil-charis
#
# spec file for package sil-charis (Version 4.0.02)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: sil-charis
BuildRequires: unzip
%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: Open Font License
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(vi;ru;bg)
Version: 4.0.02
Release: 156
Url: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=CharisSILfont
Source0: CharisSIL4.0.02.r1.zip
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: smart Unicode font for Latin and Cyrillic scripts
%description
Charis is similar to Bitstream Charter, one of the first fonts designed
specifically for laser printers. It is highly readable and holds up
well in less-than-ideal reproduction environments. It also has a full
set of styles - regular, italic, bold, bold italic - and so is more
useful in general publishing than Doulos SIL. Charis is a serif,
proportionally-spaced font optimized for readability in long printed
documents.
The goal for this product was to provide a single Unicode-based font
family that would contain a comprehensive inventory of glyphs needed
for almost any Roman- or Cyrillic-based writing system, whether used
for phonetic or orthographic needs. In addition, there is provision for
other characters and symbols useful to linguists. This font makes use
of state-of-the-art font technologies to support complex typographic
issues, such as the need to position arbitrary combinations of base
glyphs and diacritics optimally.
Authors:
--------
Non-Roman Script Initiative, SIL International <nrsi@sil.org>
%prep
%setup -T -c %{name} -n %{name}
unzip -j $RPM_SOURCE_DIR/CharisSIL4.0.02.r1.zip
chmod 644 *
%build
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{fontdir}
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-, root,root)
%doc *.txt *.pdf
%dir %{fontdir}/
%{fontdir}/*
%changelog
* Thu Mar 29 2007 rguenther@suse.de
- add unzip BuildRequires
* Fri Oct 20 2006 mfabian@suse.de
- new package: sil-charis, 4.0.02