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:        0
Summary:        A Collection of Thai TrueType Fonts
License:        GPL-2.0-with-font-exception and LPPL-1.3c
Group:          System/X11/Fonts
Url:            ftp://linux.thai.net/pub/thailinux/software/thaifonts-scalable/
#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
BuildRequires:  fontpackages-devel
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         build.patch
BuildRequires:  fontconfig
BuildRequires:  fontforge
%reconfigure_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=%{_ttfontsdir}
make %{?_smp_mflags}

%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f %{buildroot}%{_ttfontsdir}/encodings.dir
rm -f %{buildroot}%{_ttfontsdir}/fonts.*
mkdir -p %{buildroot}%{_fontsconfavaildir}
mv %{buildroot}/etc/fonts/conf.avail/*.conf %{buildroot}%{_fontsconfavaildir}
rm -r %{buildroot}/etc

%reconfigure_fonts_scriptlets

%files
%defattr(-, root,root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{_ttfontsdir}
%files_fontsconf_availdir
%files_fontsconf_file 64-ttf-thai-tlwg.conf
%files_fontsconf_file 89-ttf-thai-tlwg-synthetic.conf

%changelog
openSUSE Build Service is sponsored by