diff --git a/.gitignore b/.gitignore index e69de29..c5c999c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ttf-sil-nuosusil-2.1.1.tar.gz diff --git a/sil-nuosu-fonts-fontconfig.conf b/sil-nuosu-fonts-fontconfig.conf new file mode 100644 index 0000000..e5b247a --- /dev/null +++ b/sil-nuosu-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + sans-serif + + Nuosu SIL + + + + Nuosu SIL + + sans-serif + + + diff --git a/sil-nuosu-fonts.spec b/sil-nuosu-fonts.spec new file mode 100644 index 0000000..8c73690 --- /dev/null +++ b/sil-nuosu-fonts.spec @@ -0,0 +1,56 @@ +%global fontname sil-nuosu +%global fontconf 66-%{fontname}.conf + +%global archivename ttf-sil-nuosusil-2.1.1.tar.gz + +Name: %{fontname}-fonts +Version: 2.1.1 +Release: 2%{?dist} +Summary: The Nuosu SIL Font + +Group: User Interface/X +License: OFL +URL: http://scripts.sil.org/SILYi_home +Source0: %{archivename} +Source1: %{name}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +The Nuosu SIL Font is a single Unicode font for the standardized Yi script +used by a large ethnic group in southwestern China. +Until this version, the font was called SIL Yi. + +%prep +%setup -q -c %{name} + + +%build + + +%install +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} + + +%_font_pkg -f %{fontconf} *.ttf + +%doc + + +%changelog +* Sun Jan 30 2011 Peng Wu - 2.1.1-2 +- Clean the spec file and add fontconfig file + +* Wed Jan 26 2011 Peng Wu - 2.1.1-1 +- Initial package diff --git a/sources b/sources index e69de29..efaceb8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +85d8c2aec643620bba069b8d9a49fa72 ttf-sil-nuosusil-2.1.1.tar.gz