From 2a3958cd2ff5deab3fca60214075535e7d3207d7 Mon Sep 17 00:00:00 2001 From: nim Date: Jan 27 2009 06:57:21 +0000 Subject: andika-fonts ⇒ sil-andika-fonts --- diff --git a/.cvsignore b/.cvsignore index e69de29..77439b9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +AndikaBasicR_10.zip diff --git a/import.log b/import.log new file mode 100644 index 0000000..104b880 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +sil-andika-fonts-1_0-4_fc11:HEAD:sil-andika-fonts-1.0-4.fc11.src.rpm:1233039407 diff --git a/sil-andika-fonts-fontconfig.conf b/sil-andika-fonts-fontconfig.conf new file mode 100644 index 0000000..96be8b7 --- /dev/null +++ b/sil-andika-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + sans-serif + + Andika + + + + Andika + + sans-serif + + + diff --git a/sil-andika-fonts.spec b/sil-andika-fonts.spec new file mode 100644 index 0000000..1d30592 --- /dev/null +++ b/sil-andika-fonts.spec @@ -0,0 +1,100 @@ +%define fontname sil-andika +%define fontconf 60-%{fontname}.conf + +# Someday SIL will release sanely named archives +%define archivename AndikaBasicR_10 + +Name: %{fontname}-fonts +Version: 1.0 +Release: 4%{?dist} +Summary: A font for literacy and beginning readers + +Group: User Interface/X +License: OFL +URL: http://scripts.sil.org/Andika +# Actual download URL +# http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=%{archivename}&filename=%{archivename}.zip +Source0: %{archivename}.zip +Source1: %{name}-fontconfig.conf +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem +Obsoletes: andika-fonts < 1.0-4 + +%description +Andika is a sans serif, Unicode-compliant font designed especially for +literacy use, taking into account the needs of beginning readers. The focus is +on clear, easy-to-perceive letterforms that will not be readily confused with +one another. + +A sans serif font is preferred by some literacy personnel for teaching people +to read. Its forms are simpler and less cluttered than those of most serif +fonts. For years, literacy workers have had to make do with fonts that were +not really suitable for beginning readers and writers. In some cases, literacy +specialists have had to tediously assemble letters from a variety of fonts in +order to get all of the characters they need for their particular language +project, resulting in confusing and unattractive publications. Andika +addresses those issues. + + +%prep +%setup -q -n %{archivename} + +# Text files sanitization +for txt in *.txt ; do + # Unicode compliant, check + iconv -f WINDOWS-1252 -t UTF-8 -o $txt.1 $txt + fold -s $txt.1 > $txt.2 + sed -i 's/\r//' $txt.2 + touch -r $txt $txt.2 + mv $txt.2 $txt + rm $txt.1 +done + + +%build + + +%install +rm -fr %{buildroot} + +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.ttf %{buildroot}%{_fontdir} + +install -m 0755 -d %{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 -fr %{buildroot} + + +%_font_pkg -f %{fontconf} *.ttf + +%doc *.txt +%dir %{_fontdir} + + +%changelog +* Sun Jan 25 2009 +- 1.0-4 +► renamed to “sil-andika-fonts” to apply Packaging:FontsPolicy#Naming + +* Sun Nov 23 2008 +- 1.0-3 +ᛤ ‘rpm-fonts’ renamed to “fontpackages” + +* Fri Nov 14 2008 +- 1.0-2 +▤ Rebuild using new « rpm-fonts » + +* Tue Jun 24 2008 +- 1.0-1 +Ṑ Initial packaging diff --git a/sources b/sources index e69de29..0b1c46a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1a8b028ccea53e93fc4f34ca226f2b02 AndikaBasicR_10.zip