File gentium.spec of Package gentium

#
# spec file for package gentium (Version 1.02)
#
# 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:           gentium
BuildRequires:  unzip
%define	fontdir     /usr/share/fonts/truetype
License:        Other uncritical OpenSource License
Group:          System/X11/Fonts
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(vi)
Version:        1.02
Release:        179
Url:            http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=Gentium
# old: http://www.sil.org/~gaultney/gentium/index.html
Source0:        Gentium_102_W.zip
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A international typeface for languages using the Latin script

%description
Gentium is a typeface family designed to enable the diverse ethnic
groups around the world who use the Latin script to produce readable,
high-quality publications. It supports a wide range of Latin-based
alphabets and includes glyphs that correspond to all the Latin ranges
of Unicode.



Authors:
--------
    Victor Gaultney <victor_gaultney@sil.org>

%prep
%setup -T -c %{name} -n %{name}
unzip -j $RPM_SOURCE_DIR/Gentium_102_W.zip
chmod 644 *.vfb *.txt *.TTF

%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 *.vfb
%{fontdir}

%changelog
openSUSE Build Service is sponsored by