File fonts-thai.spec of Package fonts-thai
#
# spec file for package fonts-thai (Version 0.4.3.1)
#
# Copyright (c) 2008 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: fonts-thai
%if %suse_version > 910
BuildRequires: fontforge freetype2 xorg-x11 xorg-x11-devel
%else
BuildRequires: XFree86 XFree86-devel fontforge freetype2
%endif
%if "%(xft-config --prefix)" == "/usr"
%define ttf_fontdir /usr/share/fonts/truetype
%else
%define ttf_fontdir /usr/X11R6/lib/X11/fonts/truetype
%endif
License: Public Domain, Freeware
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(th)
Version: 0.4.3.1
Release: 215
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.
Authors:
--------
Unity Progress
Virach Sornlertlamvanich
Yannis Haralambous
Anuttara Tantraporn
Theppitak Karoonboonyanan <thep@links.nectec.or.th>
%prep
%setup -q -n thaifonts-scalable-%version
%patch0 -p1
%build
./configure --with-ttfdir=%{ttf_fontdir}
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{ttf_fontdir}/encodings.dir
rm -f $RPM_BUILD_ROOT%{ttf_fontdir}/fonts.*
%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 AUTHORS COPYING NEWS README ChangeLog
%dir %{ttf_fontdir}/
%{ttf_fontdir}/*
%changelog
* Fri Aug 04 2006 mfabian@suse.de
- move fonts to /usr/share/fonts/ in STABLE (paths changed
because of the move to Xorg X11R7).
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(th)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 15 2005 uli@suse.de
- update -> 0.4.3.1, build from source (DBThaiText* dropped due
to licensing issues, new fonts Loma, TlwgMono, TlwgTypewriter)
* Fri Dec 03 2004 mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Thu Mar 18 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Sat Feb 14 2004 mfabian@suse.de
- don't build as root
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Fri Jun 13 2003 mfabian@suse.de
- add %%dir /usr/X11R6/lib/X11/fonts/truetype/ to file list.
* Tue May 27 2003 mfabian@suse.de
- new package: fonts-thai version 0.cvs.20030527