Blob Blame History Raw
%define	fontname	hanazono
%define	fontdir		%{_datadir}/fonts/%{fontname}
%define	fontconfdir	%{_sysconfdir}/fonts/conf.d
%define archivename	%{fontname}-%{version}
%define	priority	66

Name:		%{fontname}-fonts
Version:	20081012
Release:	5%{?dist}
Summary:	Japanese Mincho-typeface TrueType font

Group:		User Interface/X
License:	Copyright only
URL:		http://fonts.jp/hanazono/
Source0:	http://fonts.jp/hanazono/%{archivename}.zip
Source1:	%{name}-fontconfig.conf
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:	noarch

%description
Hanazono Mincho typeface is a Japanese TrueType font that developed with
a support of Grant-in-Aid for Publication of Scientific Research Results from
Japan Society for the Promotion of Science and the International Research
Institute for Zen Buddhism (IRIZ), Hanazono University. also with volunteers
who work together on glyphwiki.org.

This font supports:
 - 6359 characters in JIS X 0208:1997
 - 3695 characters in JIS X 0213:2004
 - 22 characters in ISO/IEC 10646:2003/Amd.1:2005 (U+9FA6~U+9FBB)
 - 8 characters in Unicode 5.1 (U+9FBC~U+9FC3)
 - 16 characters in ISO/IEC 10646:2003/Amd.1:2005 (U+31C0~U+31CF)
 - 20 characters in ISO/IEC 10646:2003/Amd.3:2008 (U+31D0~U+31E3)
 - 84 characters in IBM extensions

%prep
%setup -q -T -c -a 0


%build


%install
rm -rf $RPM_BUILD_ROOT

install -dm 0755 $RPM_BUILD_ROOT%{fontdir}
install -pm 0644 hanazono.ttf $RPM_BUILD_ROOT%{fontdir}
install -dm 0755 $RPM_BUILD_ROOT%{fontconfdir}
install -pm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{fontconfdir}/%{priority}-%{fontname}.conf


%clean
rm -rf $RPM_BUILD_ROOT


%post
if [ -x %{_bindir}/fc-cache ]; then
	%{_bindir}/fc-cache %{fontdir} || :
fi

%postun
if [ $1 -eq 0 -a -x %{_bindir}/fc-cache ]; then
	%{_bindir}/fc-cache %{fontdir} || :
fi


%files
%defattr(0644, root, root, 0755)
%doc LISENCE.txt README.txt THANKS.txt
%config(noreplace) %{fontconfdir}/%{priority}-%{fontname}.conf
%dir %{fontdir}/
%{fontdir}/*.ttf


%changelog
* Fri Nov 14 2008 Akira TAGOH <tagoh@redhat.com> - 20081012-5
- Fix a typo in fontconfig config again.

* Thu Nov 13 2008 Akira TAGOH <tagoh@redhat.com> - 20081012-4
- Try to test the language with the exact match in fontconfig config.

* Wed Nov 12 2008 Akira TAGOH <tagoh@redhat.com> - 20081012-3
- Fix a typo in fontconfig config.

* Mon Nov 10 2008 Akira TAGOH <tagoh@redhat.com>
- Drop -f from fc-cache.
- Improve fontconfig config.

* Mon Nov 10 2008 Akira TAGOH <tagoh@redhat.com> - 20081012-2
- Improve a bit in the spec file.

* Tue Oct 28 2008 Akira TAGOH <tagoh@redhat.com> - 20081012-1
- Initial packaging.