%define fontname kiloji %define _fontdir %{_datadir}/fonts/TrueType-%{fontname} Name: TrueType-%{fontname} Summary: kiloji font - Handwriting-like general styles Summary(ja): 手書き風総合書体 きろ字フォント Version: 2.1.0 Release: 3%{?_dist_release} License: New BSD Group: User Interface/X URL: http://www.ez0.net/distribution/font/%{fontname}/ Source0: %{fontname}_%{version}.zip Source1: %{fontname}_b%{version}.zip Source2: %{fontname}_d%{version}.zip Source3: %{fontname}_p%{version}.zip Requires: %{name}-doc >= %{version} BuildRequires: unzip BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch Obsoletes: %{name}-bold, %{name}-fixed, %{name}-proportional, %{name}-thin %description kilo-ji, "kilo" is the author name of these fonts and "ji" means "characters" in Japanese. This fonts consists of four styles. - kiloji.ttf (kiloji Monospace) - kiloji_p.ttf (kiloji Proportional) - kiloji_b.ttf (kiloji Bold) - kiloji_d.ttf (kiloji Thin) %description -l ja きろ字の "kilo" とはこれらのフォントの作者の名前であり、 "ji" は 日本語で "文字" を意味します。 このフォントは4種の書体から成っています。 - kiloji.ttf(等幅) - kiloji_p.ttf (プロポーショナル) - kiloji_b.ttf (太字) - kiloji_d.ttf (細字) %package doc Summary: kiloji fonts Documents Summary(ja): きろ字フォントドキュメント Group: User Interface/X %description doc This package includes important documents for kiloji fonts includes enduser license. %description -l ja doc このパッケージにはきろ字フォントのライセンスを含むドキュメント類が含まれています。 %prep %setup -q -c -T %{_bindir}/unzip -oq %{SOURCE0} %{_bindir}/unzip -oq %{SOURCE1} %{_bindir}/unzip -oq %{SOURCE2} %{_bindir}/unzip -oq %{SOURCE3} %clean if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then rm -rf ${RPM_BUILD_ROOT} fi %build %install rm -rf %{buildroot} mkdir -p $RPM_BUILD_ROOT%{_fontdir} cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir} %post %__font_install_post %{_fontdir} %postun %__font_install_postun %{_fontdir} %files %{_fontdir}/%{fontname}*.ttf %files doc %doc Collecting.txt License.txt %changelog * Mon Jan 13 2014 TANAKA hiroaki 2.1.0-3 - built with gcc-4.8 * Sun Oct 24 2010 Toshiharu Kudoh - 2.1.0-2 - unified bold/fixed/proportional/thin pacakage - fixed %%description a little * Wed Sep 30 2009 Toshiharu Kudoh - 2.1.0-1 - initial build for VineSeed