File wqy-bitmapfont.spec of Package wqy-bitmapfont
#
# spec file for package wqy-bitmapfont (Version 0.9.9_0)
#
# 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/
#
Name: wqy-bitmapfont
BuildRequires: bdfresize xorg-x11
%define fontdir /usr/share/fonts/Chinese/wqy-bitmapfont
License: GPL v2.0 (with font embedding exception **)
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Summary: Wen Quan Yi Bitmap Song CJK Fonts
Version: 0.9.9_0
Release: 7
Url: http://wenq.org/
Source0: %{name}-pcf-0.9.9-0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
The Wen Quan Yi bitmap font includes complete CJK Unified
Ideograph (U4E00 - U9FA5) glyphs at four different sizes
(9pt-12X12 pixel, 10pt-13X13 pixel, 11pt-15X15 pixel,
12pt-16x16 pixel) and two weights (medium and bold).
Authors: The WenQuanYi Project Contributors
%prep
%setup -n %{name}
%install
mkdir -p %{buildroot}%{fontdir}
install -m 644 *.pcf %{buildroot}%{fontdir}
gzip -9 %{buildroot}%{fontdir}/*.pcf
install -c -m 644 fonts.alias %{buildroot}%{fontdir}/fonts.scale
mkdir -p $RPM_BUILD_ROOT/etc/fonts/conf.avail/
install -c -m 644 85-wqy-bitmapsong.conf $RPM_BUILD_ROOT/etc/fonts/conf.avail/
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/
cp LOGO.png $RPM_BUILD_ROOT/usr/share/icons/wqy-bitmapsong.png
mkdir -p $RPM_BUILD_ROOT/etc/fonts/conf.d/
cd $RPM_BUILD_ROOT/etc/fonts/conf.d/
ln -s ../conf.avail/85-wqy-bitmapsong.conf
%clean
rm -rf %{buildroot}
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-, root,root)
%doc AUTHORS README COPYING ChangeLog INSTALL INSTALL.zh.gb2312
%{_datadir}/fonts/Chinese
/etc/fonts/conf.avail/85-wqy-bitmapsong.conf
/etc/fonts/conf.d/85-wqy-bitmapsong.conf
/usr/share/icons/wqy-bitmapsong.png
%changelog