File xfntkr.spec of Package xfntkr
#
# spec file for package xfntkr (Version 2.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: xfntkr
%if %suse_version > 910
BuildRequires: xorg-x11-devel
%else
BuildRequires: XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/misc
%else
%define fontdir /usr/X11R6/lib/X11/fonts/misc
%endif
License: Public Domain, Freeware
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(xorg-x11:ko)
Summary: Korean Hangul X Window System Fonts
Version: 2.1
Release: 811
Source0: korean-fonts.tar.gz
Source1: hanyang-fonts.tar.gz
Source2: johab-fonts.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Korean Hangul X Window System fonts.
%prep
%setup -q -n xfntkr -c -a 1 -a 2
gunzip */*.pcf.Z
gzip --best */*.pcf
%install
mkdir -p %{buildroot}%{fontdir}
install -m 644 hanyang-fonts/* %{buildroot}%{fontdir}
install -m 644 johab-fonts/* %{buildroot}%{fontdir}
install -m 644 korean-fonts/* %{buildroot}%{fontdir}
rm -rf %{buildroot}%{fontdir}/fonts.dir
%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)
%dir %{fontdir}/
%{fontdir}/*
%changelog
* Tue Aug 22 2006 schwab@suse.de
- Remove broken dependency.
* Fri Aug 11 2006 mfabian@suse.de
- don't install .pcf.Z, convert them to .pcf.gz before installing.
* Wed Aug 09 2006 mfabian@suse.de
- move fonts to /usr/share/fonts/misc
(openSUSE 10.2 will use X11R7).
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(xorg-x11:ko)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 03 2004 mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Fri Mar 19 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Mon Mar 01 2004 mfabian@suse.de
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Wed Feb 04 2004 hmacht@suse.de
- added option # norootforbuild in specfile
* Fri Jun 13 2003 mfabian@suse.de
- add %%dir /usr/X11R6/lib/X11/fonts/misc/ to file list
* Mon Mar 11 2002 mfabian@suse.de
- remove %%post and %%postun, SuSEconfig.fonts does that already,
it's better not duplicate the work of SuSEconfig.fonts.
* Wed Jan 10 2001 mfabian@suse.de
- improved %%post and %%postun scripts. The previous version
can fail when this package is installed by autobuild into
the buildsystem's chroot environment. I hope this is fixed now.
* Wed Jan 03 2001 violiet@susekorea.net
- NEW JOHAB FONT........
- Group change: User Interface/Korean -> Extensions/Korean.
- SPEC clean.
* Tue Aug 29 2000 mfabian@suse.de
- test whether mkfontdir is available
* Tue Aug 22 2000 mfabian@suse.de
- new package. I used the source-rpm received from
www.susekorea.net and changed it a little bit to comply
with the usual SuSE style.