Skip to content

Commit

Permalink
add readme and spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebat committed Feb 25, 2014
1 parent 30364af commit 7014436
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@ cmexfonts
=========

CMEX Big5+ chinese DBF fonts
----------------------------

This package contains the standard Big5+ Chinese Ming 24x24 bitmap font (and
a resized 16x16 bitmap font) by CMEX and DynaLab for the X Window System
(PCF). This is one of the few Big5 or Big5+ Chinese bitmap fonts on the
Internet that is DFSG-compliant.

The font was designed by DynaLab and released by CMEX as part of the
proposed Big5+ standard documentation. It was then converted to HBF and BDF
format and further modified by Wei-Lun Chao in September 1998.
52 changes: 52 additions & 0 deletions cmexfonts.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
%define fontdir %{_datadir}/fonts/cmexfonts

Summary: CMEX chinese BDF fonts
Name: cmexfonts
Version: 0.2
Release: 1
License: MIT
Group: User Interface/X
URL: www.cmex.org.tw
BuildArch: noarch
Source0: %{name}-%{version}.zip
BuildRequires: xorg-x11-font-utils
Requires: fontconfig

%description
This package contains the standard Big5+ Chinese Ming 24x24 bitmap font (and
a resized 16x16 bitmap font) by CMEX and DynaLab for the X Window System
(PCF). This is one of the few Big5 or Big5+ Chinese bitmap fonts on the
Internet that is DFSG-compliant.

The font was designed by DynaLab and released by CMEX as part of the
proposed Big5+ standard documentation. It was then converted to HBF and BDF
format and further modified by Wei-Lun Chao in September 1998.

%prep
%setup -q -c

%build
bdftopcf cmex16m.bdf | gzip -c > cmex16m.pcf.gz
bdftopcf cmex24m.bdf | gzip -c > cmex24m.pcf.gz

%install
%__install -d $RPM_BUILD_ROOT%{fontdir}
%__install -m644 cmex16m.pcf.gz $RPM_BUILD_ROOT%{fontdir}
%__install -m644 cmex24m.pcf.gz $RPM_BUILD_ROOT%{fontdir}
mkfontdir $RPM_BUILD_ROOT%{fontdir}
install -d $RPM_BUILD_ROOT/etc/X11/fontpath.d
ln -s %{fontdir} $RPM_BUILD_ROOT/etc/X11/fontpath.d/%{name}

%post
fc-cache 2> /dev/null

%postun
fc-cache 2> /dev/null

%files
%{fontdir}
/etc/X11/fontpath.d/%{name}

%changelog
* Mon Feb 10 2014 Wei-Lun Chao <bluebat@member.fsf.org> 0.2-1
- initial package

0 comments on commit 7014436

Please sign in to comment.