%global fontname drehatlas-widelands %global fontconf 61-%{fontname}.conf # This is a highly-stylized titling font, so picking an ideal substitute with # fontconfig is pointless Name: %{fontname}-fonts Version: 1.0.2.2 Release: 4%{?dist} Summary: A Latin typeface inspired by feudal calligraphy Group: User Interface/X License: OFL URL: http://www.drehatlas.de/ Source0: widelands-%{version}.zip Source1: %{fontconf} Source2: Makefile.widelands BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch BuildRequires: fontpackages-devel fontforge Requires: fontpackages-filesystem %description This font was created by Nasenbaer as a logo for the Widelands project, but has since been enhanced. The font is decorative and not really usable for real texts, but it looks nice for logos, banners or similar stuff. All normal latin glyphs and arabic numbers are included and usable. %prep %setup -q -c %{name}-%{version} # Wrap the license file at 80 chars fold -s LICENSE > LICENSE.new touch -r LICENSE LICENSE.new mv LICENSE.new LICENSE %build # A .ttf file is included, but .otf is preferred. make -f %{SOURCE2} Widelands.otf %install rm -fr %{buildroot} install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p *.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} %clean rm -fr %{buildroot} %_font_pkg -f %{fontconf} *.otf %doc LICENSE FONTLOG %changelog * Fri Oct 16 2009 Dave Ludlow 1.0.2.2-4 - Rename from olfb-widelands to drehatlas-widelands - Update conversion Makefile to be more general * Wed Oct 14 2009 Dave Ludlow 1.0.2.2-3 - Update for Fedora packaging guidelines * Wed Oct 14 2009 Dave Ludlow 1.0.2.2-1 - Initial packaging