File gentium.spec of Package gentium

#
# spec file for package gentium (Version 1.02)
#
# Copyright (c) 2007 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
%if %suse_version > 910
BuildRequires:  unzip 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
Group:          System/X11/Fonts
Autoreqprov:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(vi)
Version:        1.02
Release:        50
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
BuildArchitectures: 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
%dir %{fontdir}/
%{fontdir}/*

%changelog
* Fri Mar 30 2007 - ro@suse.de
- added unzip to buildreq
* Wed Aug 09 2006 - mfabian@suse.de
- move fonts to /usr/share/fonts/truetype
  (openSUSE 10.2 will use X11R7).
* Wed Mar 01 2006 - mfabian@suse.de
- add "Provides: locale(vi)".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 24 2006 - mfabian@suse.de
- update to 1.02.
- new license! "SIL Open Font License (OFL)", see also:
  http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=OFL
* Thu Sep 29 2005 - dmueller@suse.de
- add norootforbuild
* Fri Dec 03 2004 - mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Fri Mar 19 2004 - mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Fri Feb 27 2004 - mfabian@suse.de
- update to 1.01
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Tue Apr 29 2003 - mfabian@suse.de
- new package: gentium, Version 1
openSUSE Build Service is sponsored by