%define fontname oldstandard %define fontdir %{_datadir}/fonts/%{fontname} %define fontconfdir %{_sysconfdir}/fonts/conf.d Name: %{fontname}-sfd-fonts Version: 1.0 Release: 1%{?dist} Summary: Old Standard True-Type Fonts Group: User Interface/X License: OLF URL: http://www.thessalonica.org.ru/en/fonts.html Source0: http://www.thessalonica.org.ru/downloads/oldstand-1.0.src.zip #Source1: %{name}-fontconfig.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: fontforge %description Old Standard is an attempt to provide a high quality font, suitable for classical, biblical and medieval studies as well as for general-purpose typesetting in languages which use Greek or Cyrillic script. %prep %setup -q -c -n oldstand-%{version} %build fontforge -script "-" OldStandard*.ttf.sfd <-%{fontname}.conf %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(0644,root,root,0755) %doc *.txt #%config(noreplace) %{fontconfdir}/XX-%{fontname}.conf %dir %{fontdir}/ %{fontdir}/*.ttf %changelog