%define fontname perizia %define fontdir %{_datadir}/fonts/%{fontname} %define fontconfdir %{_sysconfdir}/fonts/conf.d Name: %{fontname}-fonts Version: 2008803 Release: 1%{?dist} Summary: English asymmetric font Group: User Interface/X License: GPLv3 URL: http://hiraneffects.blogspot.com/2008/03/thanks-perizia-is-now-font.html Source0: http://hiran.v.googlepages.com/Perizia.ttf Source1: %{name}-fontconfig.conf BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch %description perizia is an asymmetric English font. %prep #%setup -q -c %build # Nothing there %install rm -fr %{buildroot} install -m 0755 -d %{buildroot}%{fontdir} install -m 0644 -p *.ttf %{buildroot}%{fontdir} install -m 0755 -d %{buildroot}%{fontconfdir} install -m 0644 -p %{SOURCE1} %{buildroot}%{fontconfdir}/61-%{fontname}.conf %clean rm -fr %{buildroot} %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) %config(noreplace) %{fontconfdir}/61-%{fontname}.conf %dir %{fontdir}/ %{fontdir}/*.ttf %changelog * Sun Aug 03 2008 Minto Joseph - 20080803-1 - initial package