%global fontname darkgarden %global fontconf 69-darkgarden.conf %define _fontdir %{_datadir}/fonts %define _fontconfig_confdir %{_sysconfdir}/fonts/conf.d %define _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail Name: %{fontname}-fonts Version: 1.2 Release: 1 Summary: Dark Garden is a decorative outline font of unusual shape Group: User Interface/X License: GPLv2 URL: http://darkgarden.sourceforge.net/ Source0: http://darkgarden.sourceforge.net/%{fontname}-%{version}.ttf.zip Source1: %{name}-fontconfig.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch %description Dark Garden is a decorative outline font of unusual shape. The typeface is based on author's original hand drawings. The letterform is complex, with all characters decorated with spikes resembling thorns or flames, character spacing is very dense. Such a theme makes it a great font for titles, banners, logos etc. Due to the font's complicated form, long text passages are not very legible, but short paragraphs such as titles or lyrics / poetry look very well. # all this hoopla is required because RPM V3 (which we are stuck with on AIX) # does not understand ZIP archives as source files :-( %prep /usr/bin/rm -rf %{fontname}-%{version} unzip %{SOURCE0} %setup -T -D -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 *.ttf ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/ chmod 0644 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/* mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_confdir} mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_templatedir} cp %{SOURCE1} ${RPM_BUILD_ROOT}%{_fontconfig_templatedir}/%{fontconf}.conf ln -sf %{_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 COPYING.txt README.txt COPYING-GPL.txt %{_fontconfig_confdir}/%{fontconf}.conf %{_fontconfig_templatedir}/%{fontconf}.conf %dir %{_fontdir}/%{fontname} %{_fontdir}/%{fontname}/*.ttf %changelog * Mon Jun 25 2012 Michael Perzl - 1.2-1 - first version for AIX V5.1 and higher