sil-nuosu-fonts/sil-nuosu-fonts.spec

60 lines
1.5 KiB
RPMSpec
Raw Normal View History

2011-02-12 07:15:53 +00:00
%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
2011-02-12 07:19:21 +00:00
Release: 3%{?dist}
2011-02-12 07:15:53 +00:00
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}
2011-02-12 07:19:21 +00:00
sed -i 's/\r//' OFL.txt doc/FONTLOG.txt
2011-02-12 07:15:53 +00:00
%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
2011-02-12 07:19:21 +00:00
%doc OFL.txt doc/FONTLOG.txt
2011-02-12 07:15:53 +00:00
%changelog
2011-02-12 07:19:21 +00:00
* Sat Feb 12 2011 Peng Wu <pwu@redhat.com> - 2.1.1-3
- Add document.
2011-02-12 07:15:53 +00:00
* Sun Jan 30 2011 Peng Wu <pwu@redhat.com> - 2.1.1-2
- Clean the spec file and add fontconfig file
* Wed Jan 26 2011 Peng Wu <pwu@redhat.com> - 2.1.1-1
- Initial package