%global fontname opendyslexic %global fontconf 60-%{fontname}.conf %global gitdate 20121008 %global gitrev 0c6748ab6b Name: %{fontname}-fonts Version: 0.600 Release: 1%{?dist} Summary: Font designed for dyslexics and high readability License: Bitstream Vera and CC-BY URL: http://dyslexicfonts.com/ # No source tarballs that I could find, so we get it from github # git clone https://github.com/antijingoist/open-dyslexic # mv open-dyslexic opendyslexic # tar cfj opendyslexic-20121008git0c6748ab6b.tar.bz2 opendyslexic Source0: %{fontname}-%{gitdate}git%{gitrev}.tar.bz2 Source1: %{name}-fontconfig.conf BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description OpenDyslexic is a new open sourced font created to increase readability for readers with dyslexia. The typefaces includes regular, bold, italic and bold-italic styles. It is being updated continually and improved based on input from dyslexic users. %prep %setup -q -n %{fontname} %build # Nothing to do here. %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p otf/*.otf %{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} *.otf %doc README.md %changelog * Mon Oct 8 2012 Tom Callaway - 0.600-1 - initial package