%global fontname vdrsymbol
%global fontconf 69-%{fontname}.conf
Name: %{fontname}-fonts
Version: 20100612
Release: 1%{?dist}
Summary: VDR symbol fonts
Group: User Interface/X
License: Bitstream Vera and Public Domain
URL: http://andreas.vdr-developer.org/fonts/
Source0: http://andreas.vdr-developer.org/fonts/download/vdrsymbols-ttf-%{version}.tgz
Source1: %{name}-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
VDRSymbols is a font for use with VDR plugins and patches.
%prep
%setup -q -n vdrsymbols
chmod -x insert_vdr_symbols.pe
%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 COPYRIGHT.txt HISTORY README insert_vdr_symbols.pe
%changelog
* Fri Feb 18 2011 Ville Skyttä <ville.skytta@iki.fi> - 20100612-1
- First build.