File KhmerOS-fonts.spec of Package KhmerOS-fonts
#
# spec file for package KhmerOS-fonts (Version 5.0)
#
# 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: KhmerOS-fonts
BuildRequires: xorg-x11-devel
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/truetype
%else
%define fontdir /usr/X11R6/lib/X11/fonts/truetype
%endif
License: LGPL v2.1 or later
Group: System/X11/Fonts
Provides: scalable-font-km
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(km)
Version: 5.0
Release: 105
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
Authors:
--------
Danh Hong <webmaster@khmeros.info>
%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
%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 LICENSE readme.txt
%dir %{fontdir}/
%{fontdir}/*
%changelog
* Wed Jul 11 2007 mfabian@suse.de
- update to 5.0:
• some new fonts were added: KhmerOS_siemreap.ttf,
KhmerOS_metalchrieng.ttf, KhmerOS_content.ttf,
KhmerOS_muolpali.ttf, KhmerOS_muollight.ttf.
* Wed Feb 21 2007 mfabian@suse.de
- update to 4.0:
• two new fonts added: KhmerOSbattambang.ttf, KhmerOSbokor.ttf.
* Wed Aug 09 2006 mfabian@suse.de
- move fonts to /usr/share/fonts/truetype
(openSUSE 10.2 will use X11R7).
* Tue Feb 28 2006 mfabian@suse.de
- add "Provides: locale(km)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 03 2006 mfabian@suse.de
- new package: KhmerOS-fonts version 3.1.