File gentium-fonts.spec of Package gentium-fonts

# Spec file for package gentium-fonts 
#
# Copyright (c) 2008 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:           gentium-fonts
%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:        Other uncritical OpenSource License, Other License(s), see package
Group:          System/X11/Fonts
Autoreqprov:    on
PreReq:         %suseconfig_fonts_prereq
Version:        0.20080903
Release:        15
URL:            http://scripts.sil.org/gentium
Source0:        Gentium_102_W.tar.bz2
Source1:        GentiumBasic_110.tar.bz2
BuildArchitectures: noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        An 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 and Greek scripts 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.  

The design is intended to be highly readable, reasonably compact, and visually attractive. 
The additional ‘extended’ Latin letters are designed to naturally harmonize with the 
traditional 26 ones. Diacritics are treated with careful thought and attention to their 
use. Gentium also supports both polytonic and monotonic Greek, including a number of 
alternate forms. 

Authors:
--------
    Bessarion Gugushvili <gougouchvili.vissarion@kolumbus.fi>

%prep
%setup -T -c %{name} -n %{name}
cp $RPM_SOURCE_DIR/*.bz2 .
tar xjf Gentium_102_W.tar.bz2
tar xjf GentiumBasic_110.tar.bz2
mv GentiumBasic110/FONTLOG.txt FONTLOG-GentiumBasic.txt
mv GentiumBasic110/GENTIUM-FAQ.txt GENTIUM-FAQ.txt
mv GentiumBasic110/OFL.txt OFL-GentiumBasic.txt
mv GentiumBasic110/OFL-FAQ.txt OFL-FAQ-GentiumBasic.txt
mv Gentium102/FONTLOG.txt FONTLOG-Gentium.txt
mv Gentium102/OFL.txt OFL-Gentium.txt
mv Gentium102/OFL-FAQ.txt OFL-FAQ-Gentium.txt

%build

%install
mkdir -p $RPM_BUILD_ROOT%{fontdir}/
install -c -m 644 Gentium102/*.ttf $RPM_BUILD_ROOT%{fontdir}/
install -c -m 644 GentiumBasic110/*.ttf $RPM_BUILD_ROOT%{fontdir}/

%clean

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files 
%defattr(-, root,root)
%doc FONTLOG-GentiumBasic.txt GENTIUM-FAQ.txt OFL-GentiumBasic.txt OFL-FAQ-GentiumBasic.txt 
%doc FONTLOG-Gentium.txt OFL-Gentium.txt OFL-FAQ-Gentium.txt Gentium102/QUOTES.txt Gentium102/README.txt
%dir %{fontdir}/
%{fontdir}/*.ttf

%changelog
* Wed Aug 27 2008 - mjung@suse.de
- initial release 
openSUSE Build Service is sponsored by