fonts-bitmap-milkjf-20011009-2kkr2009.0.spec
%define name fonts-bitmap-milkjf
%define version 20011009
%define release %mkrel 2
%define bmpfontdir %{_datadir}/fonts/misc
%define __bdftopcf %{_bindir}/bdftopcf
%define __mkfontdir %{_bindir}/mkfontdir
Summary: 16dot Japanese bitmap font for X
Summary(ja): X向けの16ドット日本語ビットマップフォント
Name: %{name}
Version: %{version}
Release: %{release}
Group: System/Fonts/X11 bitmap
License: Public Domain
URL: http://web.archive.org/web/20080124140424/http://phe.phyas.aichi-edu.ac.jp/~cyamauch/xfonts.html
Source: http://web.archive.org/web/20061212224857/http://phe.phyas.aichi-edu.ac.jp/~cyamauch/arch/milkjf_bdf.tar.gz
# Size : 481,027
# MD5 : 47e3e36c0465b5d333f5f4552704aea0
# SHA-1 : da12bb495af397f16538643fb6a13c0c33cbc510
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: bdftopcf mkfontdir
BuildArch: noarch
%description
This package provides milkjf font, 16dot Japanese bitmap font for X
%description
このパッケージはX向けの16ドット日本語ビットマップフォントmilkjfを提供します。
%prep
%setup -q -c
%build
for s in 8x16 8x16B 8x16r 8x16rb k16 k16b; do
%{__bdftopcf} milkjf_${s}.bdf | %{__gzip} -9 > milkjf_${s}.pcf.gz
done
%install
%{__rm} %{buildroot} -fr
%{__install} -d %{buildroot}/%{bmpfontdir}
%{__install} -p -m 644 *.pcf.gz %{buildroot}/%{bmpfontdir}/
%{__lzma} README.1ST
%clean
%{__rm} %{buildroot} -fr
%post
cd %{bmpfontdir}/ && %{__mkfontdir}
%postun
if [ ${1} -eq 0 ]; then
cd %{bmpfontdir}/ && %{__mkfontdir}
fi
%files
%defattr(-, root, root)
%{bmpfontdir}/*.pcf.gz
%doc README.1ST*
%changelog
* Fri Dec 12 2008 kakurasan <kakurasan AT gmail DOT com> - 20011009-2kkr2009.0
- mkfontdir only if successfully changed directory (post/postun)
- remove distsuffix
- replace "mkdir -p" with "install -d"
* Mon Nov 24 2008 kakurasan <kakurasan AT gmail DOT com> - 20011009-1kkr2009.0
- initial build