From 7e48cf322a3778cf1f23167c427d3f87ea136f58 Mon Sep 17 00:00:00 2001 From: Toshio くらとみ Date: Apr 06 2009 15:40:13 +0000 Subject: Iniital import. --- diff --git a/.cvsignore b/.cvsignore index e69de29..08be240 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +tuffy-20071106.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..22f7d66 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +tulrich-tuffy-fonts-1_1-3_fc10:HEAD:tulrich-tuffy-fonts-1.1-3.fc10.src.rpm:1239031994 diff --git a/sources b/sources index e69de29..606b93a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f6b6fed6791ba6fa92af1f5e97c7b81d tuffy-20071106.tar.gz diff --git a/tulrich-tuffy-fonts-fontconfig.conf b/tulrich-tuffy-fonts-fontconfig.conf new file mode 100644 index 0000000..75c1481 --- /dev/null +++ b/tulrich-tuffy-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + sans-serif + + tuffy + + + + tuffy + + sans-serif + + + diff --git a/tulrich-tuffy-fonts.spec b/tulrich-tuffy-fonts.spec new file mode 100644 index 0000000..dd0f883 --- /dev/null +++ b/tulrich-tuffy-fonts.spec @@ -0,0 +1,78 @@ +%global fontname tulrich-tuffy +%global fontconf 60-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.1 +Release: 3%{?dist} +Summary: Generic sans font + +Group: User Interface/X +License: Public Domain +URL: http://tulrich.com/fonts/ +Source0: http://tulrich.com/fonts/tuffy-20071106.tar.gz +Source1: %{name}-fontconfig.conf +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildArch: noarch +BuildRequires: fontpackages-devel +BuildRequires: fontforge +Requires: fontpackages-filesystem + +%description +Tuffy is an innocuous looking sans font. + +%prep +%setup -q -n tuffy-20071106 + +%build +# be really sure that we don't package pre-generated ttf files +rm *.ttf +# We use the legacy font forge script to generate the TTF files (instead of a +# Python one) because of bug 489109. +fontforge -lang=ff -script "-" *.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 -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 LICENSE.txt + + +%changelog +* Tue Mar 31 2009 Toshio Kuratomi - 1.1-3 +- Change fontconfig file to use "sans-serif" generic. + +* Sat Mar 07 2009 Felix Schwarz - 1.1-2 +- Modified fontforge script to make it compatible with rawhide fontforge + +* Tue Feb 24 2009 Toshio Kuratomi - 1.1-1 +- Initial package +