File sil-charis.spec of Package sil-charis
#
# spec file for package sil-charis (Version 4.106)
#
# Copyright (c) 2010 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: dos2unix unzip
%define fontdir /usr/share/fonts/truetype
License: Open Font License
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(vi;ru;bg)
Version: 4.106
Release: 1
Url: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=CharisSILfont
Source0: CharisSIL4.106.zip
Source1: Changes.txt
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.106.zip
chmod 644 *
cp %{S:1} .
# Fix rpmlint warnings:
find . -name \*.txt -print0 | xargs -0 dos2unix
%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
%{fontdir}
%changelog