File xfntkr.spec of Package xfntkr

#
# spec file for package xfntkr (Version 2.1)
#
# Copyright (c) 2010 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
%define	fontdir     /usr/share/fonts/misc
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:        812
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)
%{fontdir}

%changelog
openSUSE Build Service is sponsored by