File wqy-bitmap-fonts.spec of Package wqy-bitmap-fonts
#
# spec file for package wqy-bitmap-fonts
#
# Copyright (c) 2012 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-bitmap-fonts
Version: 0.9.9_0
Release: 0
License: GPL-2.0-with-font-exception
%define fontdir /usr/share/fonts/Chinese/wqy-bitmapfont
Summary: Wen Quan Yi Bitmap Song CJK Fonts
Url: http://wenq.org/
Group: System/X11/Fonts
Source0: wqy-bitmapfont-pcf-0.9.9-0.tar.gz
BuildRequires: bdfresize
BuildRequires: xorg-x11
Requires(pre): %suseconfig_fonts_prereq
Provides: wqy-bitmapfont = %{version}
Obsoletes: wqy-bitmapfont <= 0.9.9_0
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).
%prep
%setup -n wqy-bitmapfont
%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 %{buildroot}%{_sysconfdir}/fonts/conf.avail/
install -c -m 644 85-wqy-bitmapsong.conf %{buildroot}%{_sysconfdir}/fonts/conf.avail/
mkdir -p %{buildroot}%{_datadir}/icons/
cp LOGO.png %{buildroot}%{_datadir}/icons/wqy-bitmapsong.png
mkdir -p %{buildroot}%{_sysconfdir}/fonts/conf.d/
cd %{buildroot}%{_sysconfdir}/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
%{_sysconfdir}/fonts/conf.avail/85-wqy-bitmapsong.conf
%{_sysconfdir}/fonts/conf.d/85-wqy-bitmapsong.conf
%{_datadir}/icons/wqy-bitmapsong.png
%changelog