File thai-fonts.spec of Package thai-fonts
#
# spec file for package thai-fonts
#
# Copyright (c) 2012 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/
#
Name:           thai-fonts
Version:        0.4.17
Release:        1
%define	ttf_fontdir     %{_datadir}/fonts/truetype
License:        GPL-2.0-with-font-exception and LPPL-1.3c
Summary:        A Collection of Thai TrueType Fonts
Url:            ftp://linux.thai.net/pub/thailinux/software/thaifonts-scalable/
Group:          System/X11/Fonts
#Url:            http://linux.thai.net/cvs/
# cvs -d :pserver:anonymous@linux.thai.net:/home/cvs login  # blank password, just enter
# cvs -d :pserver:anonymous@linux.thai.net:/home/cvs co software/thai-ttf
Source0:        thaifonts-scalable-%{version}.tar.gz
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         build.patch
BuildRequires:  fontforge
BuildRequires:  xorg-x11
Requires(pre):  %suseconfig_fonts_prereq
Provides:       locale(th)
Obsoletes:      fonts-thai < 0.4.16
Provides:       fonts-thai = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%description
The Thai TrueType fonts included here are Norasi and Garuda from the
National Font project.
%prep
%setup -q -n thaifonts-scalable-%{version}
%patch0 -p1
%build
%configure --with-ttfdir=%{ttf_fontdir}
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f %{buildroot}%{ttf_fontdir}/encodings.dir
rm -f %{buildroot}%{ttf_fontdir}/fonts.*
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-, root,root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{ttf_fontdir}/
%config %{_sysconfdir}/fonts/conf.avail/*
%changelog