File fonts-thai.spec of Package fonts-thai
#
# spec file for package fonts-thai
#
# Copyright (c) 2011 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: fonts-thai
BuildRequires: fontforge xorg-x11
%define ttf_fontdir %{_datadir}/fonts/truetype
License: Public Domain, Freeware
Group: System/X11/Fonts
PreReq: %suseconfig_fonts_prereq
Provides: locale(th)
Version: 0.4.15
Release: 1
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.bz2
Patch0: build.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A Collection of Thai TrueType Fonts
%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 $RPM_BUILD_ROOT%{ttf_fontdir}/encodings.dir
rm -f $RPM_BUILD_ROOT%{ttf_fontdir}/fonts.*
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-, root,root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{ttf_fontdir}/
%config /etc/fonts/conf.avail/*
%changelog