%global fontname inkboy
%global fontconf 65-%{fontname}.conf
Name: %{fontname}-fonts
Version: 20070624
Release: 4%{?dist}
Summary: A clean and usable latin fantasy font
Group: User Interface/X
License: OFL
URL: http://inkboy.fr/html/telechargement-ressources.php
Source0: http://inkboy.fr/fichiers/inkboyfont.tar
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
This is a clean and usable latin fantasy font.
%prep
%setup -q -c
%build
for i in FONTLOG.txt OFL.txt OFL-FAQ.txt; do
sed -i~ -e 's|\r||' $i && touch -r $i~ $i
done
for i in FONTLOG.txt; do
iconv -f iso-8859-1 -t utf-8 $i > $i~ && touch -r $i $i~ && mv $i~ $i
done
%install
rm -fr %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
cat <<EOF > %{fontconf}
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>fantasy</family>
<prefer>
<family>Inkboy</family>
</prefer>
</alias>
<alias>
<family>Inkboy</family>
<default>
<family>fantasy</family>
</default>
</alias>
</fontconfig>
EOF
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir}
install -m 0644 -p %{fontconf} %{buildroot}%{_fontconfig_templatedir}
install -m 0755 -d %{buildroot}%{_fontconfig_confdir}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
%clean
rm -fr %{buildroot}
%_font_pkg -f %{fontconf} *.ttf
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt
%changelog
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20070624-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Jun 24 2009 Jim Radford <radford@blackbean.org> - 20070624-3
- add another doc and preserve timestamps
* Tue Jun 23 2009 Jim Radford <radford@blackbean.org> - 20070624-2
- Convert line endings and encodings
* Mon Jun 22 2009 Jim Radford <radford@blackbean.org> - 20070624-1
- Initial Version