File 844-ksc-pcf.spec of Package 844-ksc-pcf
#
# spec file for package 844-ksc-pcf
#
# 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: 844-ksc-pcf
%define fontdir /usr/share/fonts/misc
Url: http://www.debian.or.kr/~cwryu/archive/fonttools/
License: Public Domain, Freeware
Group: System/X11/Fonts
PreReq: %suseconfig_fonts_prereq
Provides: locale(xorg-x11:ko)
Summary: Korean 8x4x4 Johab Fonts
Version: 19990207
Release: 772
Source0: 844-ksc-pcf-19990207.1.tar.bz2
Source1: README.844-ksc.fonts.TXT
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Korean 8x4x4 johab fonts.
%prep
%setup -q -n 844-ksc-pcf-19990207.1
cp $RPM_SOURCE_DIR/README.844-ksc.fonts.TXT .
# name conflict with fonts from efont-unicode package:
for i in h[0-9][0-9].pcf
do
mv $i ${i%.pcf}-844-ksc.pcf
done
%build
%install
mkdir -p %{buildroot}%{fontdir}
gzip --best *.pcf
install -m 644 *.gz %{buildroot}%{fontdir}
# Ruediger Oertel wrote:
# > that is the way an update works with rpm:
# >
# > %pre(in) new package
# > install all files from new package
# > %post(in) new package
# > %preun old package
# > remove all files from old package not present in new package
# > %postun old package
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-,root,root)
%doc README*
%{fontdir}
%changelog