diff --git a/66-sil-abyssinica.conf b/66-sil-abyssinica.conf new file mode 100644 index 0000000..805074e --- /dev/null +++ b/66-sil-abyssinica.conf @@ -0,0 +1,19 @@ + + + + + + Abyssinica SIL + + serif + + + + + serif + + Abyssinica SIL + + + + diff --git a/sil-abyssinica-fonts.spec b/sil-abyssinica-fonts.spec index f9ada80..8c1c5c4 100644 --- a/sil-abyssinica-fonts.spec +++ b/sil-abyssinica-fonts.spec @@ -1,8 +1,9 @@ %global fontname sil-abyssinica +%global fontconf 66-%{fontname}.conf Name: %{fontname}-fonts Version: 1.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: SIL Abyssinica fonts Group: User Interface/X @@ -10,6 +11,7 @@ License: OFL URL: http://scripts.sil.org/AbyssinicaSIL # download from http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=AbyssinicaSIL1.0.zip&filename=abyssinicasil1.0.zip Source0: abyssinicasil%{version}.zip +Source1: %{fontconf} BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch @@ -22,8 +24,8 @@ BuildRequires: dos2unix Provides: abyssinica-fonts = %{version}-%{release} Obsoletes: abyssinica-fonts < 1.0-6 -%description +%description SIL Abyssinica is a Unicode typeface family containing glyphs for the Ethiopic script. @@ -37,6 +39,7 @@ characters supported by Abyssinica SIL). Abyssinica SIL is based on Ethiopic calligraphic traditions. This release is a regular typeface, with no bold or italic version available or planned. + %prep %setup -q -c @@ -52,16 +55,26 @@ rm -rf %{buildroot} install -d -m 0755 %{buildroot}%{_fontdir} install -m 0644 *.ttf %{buildroot}%{_fontdir} +#fontconfig +install -d -m 0755 %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} +install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} %clean rm -rf %{buildroot} -%_font_pkg *.ttf +%_font_pkg -f %{fontconf} *.ttf %doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt + %changelog +* Sat Jun 12 2010 Mathieu Bridon - 1.0-9 +- Add fontconfig configuration file (BZ#586248) + * Tue Feb 16 2010 Mathieu Bridon - 1.0-8 - Fix Obsolete: that was wrong when renaming the package. - The font base folder was listed twice (one was hidden in the font macro)