%define fontname brettfont %define fontdir %{_datadir}/fonts/%{fontname} %define fontconfdir %{_sysconfdir}/fonts/conf.d Name: %{fontname}-fonts Version: 1.0 Release: 2%{?dist} Summary: A handwriting font Group: User Interface/X License: OFL URL: http://openfontlibrary.org/media/files/brettalton/205 Source0: http://openfontlibrary.org/people/brettalton/brettalton_-_Brett_Font.ttf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %description A handwriting font made by Brett Alton. %prep cp -p %{SOURCE0} $RPM_BUILD_DIR/brettfont.ttf %build %install rm -rf $RPM_BUILD_ROOT install -dm 755 $RPM_BUILD_ROOT%{fontdir} install -pm 644 *.ttf $RPM_BUILD_ROOT%{fontdir} %clean rm -rf $RPM_BUILD_ROOT %post if [ -x %{_bindir}/fc-cache ] ; then %{_bindir}/fc-cache -f %{fontdir} || : fi %postun if [ $1 -eq 0 -a -x %{_bindir}/fc-cache ] ; then %{_bindir}/fc-cache -f %{fontdir} || : fi %files %defattr(644,root,root,755) %doc %dir %{fontdir}/ %{fontdir}/*.ttf %changelog * Mon May 05 2008 Jon Stanley - 1.0-2 - Changed %%description * Mon May 05 2008 Jon Stanley - 1.0-1 - Initial package