%define fontname hanazono %define archivename %{fontname}-%{version} %define priority 65-1 %define fontconf %{priority}-%{fontname}.conf %define _fontdir %{_datadir}/fonts %define _fontconfig_confdir %{_sysconfdir}/fonts/conf.d %define _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail Name: %{fontname}-fonts Version: 20100718 Release: 1 Summary: Japanese Mincho-typeface TrueType font Group: User Interface/X License: Copyright only URL: http://fonts.jp/hanazono/ Source0: http://fonts.jp/hanazono/%{archivename}.tar.bz2 Source1: %{name}-fontconfig.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 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 contains 57557 characters in ISO/IEC 10646 and Unicode Standard, also supports character sets: - 6355 characters in JIS X 0208:1997 - 5801 characters in JIS X 0212:1990 - 3695 characters in JIS X 0213:2004 - 6763 characters in GB 2312-80 - 13053 characters in Big-5 - 4888 characters in KS X 1001:1992 - 360 characters in IBM extensions - 9810 characters in IICORE %prep %setup -q -n %{fontname}-%{version} %build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname} chmod 0755 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname} cp hanazono.ttf ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/ chmod 0644 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/* mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_confdir} chmod 0755 ${RPM_BUILD_ROOT}%{_fontconfig_confdir} mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_templatedir} chmod 0755 ${RPM_BUILD_ROOT}%{_fontconfig_templatedir} cp %{SOURCE1} ${RPM_BUILD_ROOT}%{_fontconfig_templatedir}/%{fontconf} chmod 0644 ${RPM_BUILD_ROOT}%{_fontconfig_templatedir}/%{fontconf} ln -s %{_fontconfig_templatedir}/%{fontconf} ${RPM_BUILD_ROOT}%{_fontconfig_confdir}/%{fontconf} %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc LICENSE.txt README.txt THANKS.txt %{_fontconfig_confdir}/%{fontconf} %{_fontconfig_templatedir}/%{fontconf} %dir %{_fontdir}/%{fontname} %{_fontdir}/%{fontname}/hanazono.ttf %changelog * Tue Feb 15 2011 Michael Perzl - 20100718-1 - first version for AIX V5.1 and higher