From 009e7a94b9582c662d90cf937351be7cdfd98a37 Mon Sep 17 00:00:00 2001 From: nim Date: Sun, 12 Feb 2006 14:19:49 +0000 Subject: [PATCH] auto-import dejavu-fonts-2.2-4.fc5 on branch devel from dejavu-fonts-2.2-4.fc5.src.rpm initial build from sfd package, is not expected to build before bug #181052 is fixed --- .cvsignore | 2 +- dejavu-fonts.spec | 35 ++++++++++++++++++++++++++++++----- sources | 2 +- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/.cvsignore b/.cvsignore index a663660..cf0c2d4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -dejavu-ttf-2.2.tar.gz +dejavu-sfd-2.2.tar.gz diff --git a/dejavu-fonts.spec b/dejavu-fonts.spec index f2ac8ee..c4c5f78 100644 --- a/dejavu-fonts.spec +++ b/dejavu-fonts.spec @@ -1,15 +1,25 @@ -%define archivename dejavu-ttf +%define archivename dejavu-sfd %define fontdir %{_datadir}/fonts/dejavu +# Let the perl Maintainer worry about Unicode.org data files (updates, licensing) +%define Blocks %(eval "$(%{__perl} -V:privlibexp)"; echo $privlibexp)/unicore/Blocks.txt +%define UnicodeData %(eval "$(%{__perl} -V:privlibexp)"; echo $privlibexp)/unicore/UnicodeData.txt + Name: dejavu-fonts Version: 2.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: DejaVu Fonts Group: User Interface/X License: Redistributable, with restrictions URL: http://dejavu.sf.net/ -Source: http://prdownloads.sourceforge.net/dejavu/%{archivename}-%{version}.tar.gz +Source0: http://prdownloads.sourceforge.net/dejavu/%{archivename}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# See bug #181052 +BuildRequires: fontforge >= 20060209 +# The CPAN sources do not declare perl(Font::TTF) +BuildRequires: perl-Font-TTF +# Needed to compute unicode coverage +BuildRequires: %{Blocks} %{UnicodeData} BuildArch: noarch Conflicts: fontconfig < 2.3.93 @@ -23,13 +33,25 @@ the process of collaborative develop %setup -q -n %{archivename}-%{version} %build +./generate.sh +./status.pl %{version} status.txt *.sfd > status.txt.new +mv status.txt.new status.txt +./unicover.pl %{UnicodeData} %{Blocks} \ + DejaVuSans.sfd Sans \ + DejaVuSerif.sfd Serif \ + DejaVuMonoSans.sfd "Sans Mono" > unicover.txt + +%check +# Current upstream files are full of "problems" +# Do not panic if the output is long +./problems.pl -l 3 *.sfd %install /bin/rm -rf %{buildroot} #fonts install -d -m 0755 %{buildroot}%{fontdir} -install -m 0644 *.ttf %{buildroot}%{fontdir} +install -m 0644 generated/*.ttf %{buildroot}%{fontdir} %clean /bin/rm -rf %{buildroot} @@ -52,11 +74,14 @@ fi %defattr(0644,root,root,0755) %doc *.txt AUTHORS BUGS LICENSE NEWS README - %dir %{fontdir} %{fontdir}/*.ttf %changelog +* Sun Feb 12 2006 Nicolas Mailhot 2.2-4 +- WARNING: in an effort to get Fedora Extras as self-hosting as possible + starting from this release ttf files are regenerated from sfd sources + * Mon Jan 16 2006 Nicolas Mailhot 2.2-2 - bump release to ensure graceful FC4 -> FC5 update - bump again because of bas CVS tag diff --git a/sources b/sources index 2544056..0b325ce 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cfd45d17c2bffc761997cfcb00040e1f dejavu-ttf-2.2.tar.gz +c37ef5e2a5f8d8a8de55fe87cfb84739 dejavu-sfd-2.2.tar.gz