%global fontname manchu
%global fontconf 66-%{fontname}.conf
%global archivename Manchu_Font_2005_2.006.zip
Name: %{fontname}-fonts
Version: 2.006
Release: 7%{?dist}
Summary: A Manchu OpenType (TrueType-flavored) font
Group: User Interface/X
License: GPLv2+
URL: http://sourceforge.net/projects/manchufont/
Source0: http://sourceforge.net/projects/manchufont/files/ManchuFont2005%20%28Obsolete%29/ManchuFont2005%20v2.006/%{archivename}
Source1: %{name}-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
A Manchu OpenType (TrueType-flavored) font
which allows you write and read Manchu script articles correctly.
%prep
%setup -q -c %{name}
sed -i 's/\r//' GNU\ GENERAL\ PUBLIC\ LICENSE.txt
%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 "GNU GENERAL PUBLIC LICENSE.txt"
%changelog
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.006-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.006-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.006-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.006-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Sat Feb 12 2011 Peng Wu <pwu@redhat.com> - 2.006-3
- Add document.
* Sun Jan 30 2011 Peng Wu <pwu@redhat.com> - 2.006-2
- Clean the spec file and add fontconfig file
* Wed Jan 26 2011 Peng Wu <pwu@redhat.com> - 2.006-1
- Initial package