File KhmerOS-fonts.spec of Package KhmerOS-fonts
#
# spec file for package KhmerOS-fonts
#
# 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: KhmerOS-fonts
%define fontdir /usr/share/fonts/truetype
License: LGPLv2.1+
Group: System/X11/Fonts
Provides: scalable-font-km
PreReq: %suseconfig_fonts_prereq
Provides: locale(km)
Version: 5.0
Release: 106
Url: http://sourceforge.net/projects/khmer
# original source is zipped, converted to tar.bz2 to save some space
Source0: http://mesh.dl.sourceforge.net/sourceforge/khmer/All_KhmerOS_5.0.tar.bz2
Source1: LICENSE
Source2: readme.txt
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Fonts for the Khmer language of Cambodia
%description
Fonts for the Khmer language of Cambodia
%prep
%setup -n All_KhmerOS_5.0
cp $RPM_SOURCE_DIR/LICENSE .
cp $RPM_SOURCE_DIR/readme.txt .
%build
%install
mkdir -p $RPM_BUILD_ROOT%{fontdir}
for i in *.ttf
do
install -c -m 644 "$i" $RPM_BUILD_ROOT%{fontdir}
done
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-, root,root)
%doc LICENSE readme.txt
%{fontdir}
%changelog