%define fontname sj %define fontconf 63-%{fontname} %define common_desc Two fonts by Steve Jordi released under the GPL Name: %{fontname}-fonts Version: 2.0.2 Release: %mkrel 2 Summary: Two fonts by Steve Jordi released under the GPL Group: System/Fonts/True type License: GPLv2 with exceptions URL: http://sjfonts.sourceforge.net Source0: sjfonts-source-2.0.2.tar.bz2 Source1: %{name}-delphine-fontconfig.conf Source2: %{name}-stevehand-fontconfig.conf BuildArch: noarch BuildRequires: fontpackages-devel BuildRequires: fontforge %description %common_desc %package common Summary: Common files for %{name} Group: System/Fonts/True type Requires: fontpackages-filesystem %description common %common_desc This package consists of files used by other %{name} packages. %package -n %{fontname}-delphine-fonts Summary: Handwriting font Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-delphine-fonts %common_desc Handwriting font by Steve Jordi covering latin glyphs. %_font_pkg -n delphine -f %{fontconf}-delphine.conf Delphine.ttf %package -n %{fontname}-stevehand-fonts Summary: Handwriting font Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-stevehand-fonts %common_desc Handwriting font by Steve Jordi covering latin glyphs. %_font_pkg -n stevehand -f %{fontconf}-stevehand.conf SteveHand.ttf %prep %setup -q -c %{name}-%{version} %build fontforge -lang=ff -script "-" Delphine.sfd SteveHand.sfd <<EOF i = 1 while ( i < \$argc ) Open (\$argv[i], 1) Generate (\$fontname + ".ttf") PrintSetup (5) PrintFont (0, 0, "", \$fontname + "-sample.pdf") Close() i++ endloop EOF %install rm -rf $RPM_BUILD_ROOT 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}-delphine.conf install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-stevehand.conf for fontconf in %{fontconf}-delphine.conf %{fontconf}-stevehand.conf ; do ln -s %{_fontconfig_templatedir}/$fontconf %{buildroot}%{_fontconfig_confdir}/$fontconf done %files common %defattr(0644,root,root,0755) %doc COPYING %doc README %dir %{_fontdir} %changelog * Mon Jan 14 2013 umeabot <umeabot> 2.0.2-2.mga3 + Revision: 382099 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Jul 25 2011 dmorgan <dmorgan> 2.0.2-1.mga3 + Revision: 128514 - imported package sj-fonts