%global fontname ucs-miscfixed %global fontconf 66-%{fontname} %define _fontdir %{_datadir}/fonts %define _fontconfig_confdir %{_sysconfdir}/fonts/conf.d %define _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail Name: %{fontname}-fonts Version: 0.3 Release: 1 Summary: Selected set of bitmap fonts License: Public Domain URL: http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html Group: User Interface/X Source0: bitmap-fonts-%{version}.tar.bz2 Source1: fixfont-3.5.tar.bz2 Source2: 66-ucs-miscfixed.conf Patch1: readme_cleanup.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Requires: fontconfig %description The usc-fixed-fonts package provides bitmap fonts for locations such as terminals. %prep %setup -q -n bitmap-fonts-%{version} -a1 export PATH=/opt/freeware/bin:$PATH %patch1 -p1 -b .1-readme_cleanup %build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} cd fixfont-3.5 make install DESTDIR=${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname} chmod 0755 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname} mv ${RPM_BUILD_ROOT}/usr/share/fonts/bitmap-fonts/* ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/ rm -f ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/lut*.pcf \ ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/fang*.pcf \ ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/cons*.pcf gzip --best ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/*.pcf chmod 0644 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/* mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_confdir} mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_templatedir} cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_fontconfig_templatedir}/%{fontconf}.conf chmod 0644 ${RPM_BUILD_ROOT}%{_fontconfig_templatedir}/*.conf ln -s %{_fontconfig_templatedir}/%{fontconf}.conf ${RPM_BUILD_ROOT}%{_fontconfig_confdir}/%{fontconf}.conf %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc README %{_fontconfig_confdir}/%{fontconf}.conf %{_fontconfig_templatedir}/%{fontconf}.conf %dir %{_fontdir}/%{fontname} %{_fontdir}/%{fontname}/* %changelog * Wed Mar 09 2011 Michael Perzl - 0.3-1 - first version for AIX V5.1 and higher