Blob Blame History Raw
Name: bitmap-fonts
Version: 0.3
Release: 3
License: distributable
Source: bitmap-fonts-%{version}.tar.bz2
Source1: fixfont.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root
BuildArch: noarch
Group: User Interface/X
Summary: Selected set of bitmap fonts
Prereq: fontconfig
BuildRequires: XFree86

%description
The bitmap-fonts package provides a number of bitmap fonts selected
from the XFree86 package designed for use locations such as
terminals.

%package cjk
Summary: Selected cjk bitmap fonts for Anaconda
Group: Applications/System
Prereq: fontconfig
BuildRequires: XFree86

%description cjk
bitmap-fonts-cjk package contains bitmap fonts used by Anacondar. They are
selected from XFree86 package, and the font encoding are converted from 
native encoding to ISO10646. They are only intended to be used in Anaconda.

%prep
%setup -q -a 1

%install
rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT

cp fixfont/* $RPM_BUILD_ROOT%{_datadir}/fonts/bitmap-fonts

# %%ghost the fonts.cache-1 file
touch $RPM_BUILD_ROOT%{_datadir}/fonts/bitmap-fonts/fonts.cache-1

%clean
rm -rf $RPM_BUILD_ROOT

%post
fc-cache %{_datadir}/fonts

%postun
if [ "$1" = "0" ]; then
  fc-cache %{_datadir}/fonts
fi

%post cjk
fc-cache %{_datadir}/fonts

%postun cjk
if [ "$1" = "0" ]; then
  fc-cache %{_datadir}/fonts
fi

%files
%defattr(-,root,root)
%doc README LU_LEGALNOTICE
%dir %{_datadir}/fonts/bitmap-fonts
%{_datadir}/fonts/bitmap-fonts/lut*
%{_datadir}/fonts/bitmap-fonts/con*
%{_datadir}/fonts/bitmap-fonts/[0-9]*
%ghost %{_datadir}/fonts/bitmap-fonts/fonts.cache-1

%files cjk
%defattr(-,root,root)
%dir %{_datadir}/fonts/bitmap-fonts
%{_datadir}/fonts/bitmap-fonts/fangsongti*
%ghost %{_datadir}/fonts/bitmap-fonts/fonts.cache-1

%changelog
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt

* Tue Jan 21 2003 Owen Taylor <otaylor@redhat.com>
- Version 0.3 adding misc-fixed fonts from ucs-fonts
- Adjust %%post, %%postun

* Mon Jan 13 2003 Owen Taylor <otaylor@redhat.com>
- Patch from Anthony Fok, to fix problem where fangsongti16.bdf
  wasn't considered to cover english because it didn't have
  e-diaresis. (Causing bad font choice in Anaconda)

* Wed Dec 18 2002 Than Ngo <than@redhat.com> 0.2-4
- add some bitmap fonts

* Thu Oct 31 2002 Owen Taylor <otaylor@redhat.com> 0.2-3
- Own the bitmap-fonts directory (Enrico Scholz, #73940)
- Add %%post, %%postun for cjk subpackage

* Fri Aug 30 2002 Alexander Larsson <alexl@redhat.com> 0.2-2
- Call fc-cache from post

* Wed Aug 28 2002 Owen Taylor <otaylor@redhat.com>
- Augment fangsongti fonts with characters from 8x16, 12x24

* Tue Jul 31 2002 Yu Shao <yshao@redhat.com>
- add fangsong*.bdf converted from gb16fs.bdf and gb24st.bdf

* Mon Nov 13 2000 Owen Taylor <otaylor@redhat.com>
- Initial package