%define fontname gentium-basic %define fontdir %{_datadir}/fonts/%{fontname} %define fontconfdir %{_sysconfdir}/fonts/conf.d %define archivename GentiumBasic_110_source Name: %{fontname}-fonts Version: 1.1 Release: 1%{?dist} Summary: Gentium Basic font based on Gentium design Group: User Interface/X License: OFL URL: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=Gentium_basic # The source link is a redirect and is not directly accessible Source0: %{archivename}.zip Source1: %{name}-fontconfig.conf BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch %description Gentium is a typeface family designed to enable the diverse ethnic groups around the world who use the Latin and Greek scripts to produce readable, high-quality publications. It supports a wide range of Latin-based alphabets and includes glyphs that correspond to all the Latin ranges of Unicode. Gentium Basic is based on the original Gentium design, but with additional weight. %prep %setup -q -c unzip -j -L -q %{SOURCE0} for txt in *.txt ; do fold -s $txt > $txt.new sed -i 's/\r//' $txt.new touch -r $txt $txt.new mv $txt.new $txt done %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) %doc *.txt %config(noreplace) %{fontconfdir}/61-%{fontname}.conf %dir %{fontdir}/ %{fontdir}/*.ttf %changelog * Fri Jul 27 2008 Minto Joseph - 1.1-1 - initial package