Blob Blame Raw
%define fontname silkscreen
%define fontconf 60-%{fontname}

%define common_desc \
Silkscreen is a four member type family for your Web graphics created by Jason \
Kottke. Silkscreen is best used in places where extremely small graphical \
display type is needed. The primary use is for navigational items (nav bars, \
menus, etc), but it works well wherever small type is needed. In order to \
preserve the proper spacing and letterforms, Silkscreen should be used at 8pt. \
multiples (8pt., 16pt., 24pt., etc.) with anti-aliasing turned off. \

Name:		%{fontname}-fonts
Summary: 	Silkscreen four member type family
Version:	1.0
Release:	4%{?dist}
# License attribution confirmed by author and Open Font Library
License:	OFL
Group:		User Interface/X
Source1:	%{name}-fontconfig.conf
Source2:	%{name}-expanded-fontconfig.conf
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch
BuildRequires:	fontpackages-devel
Requires:	%{name}-common = %{version}-%{release}


%package common
Summary:	Common files for Silkscreen fonts (documentation...)
Group:		User Interface/X
Requires:	fontpackages-filesystem

%description common

This package consists of files used by other Silkscreen packages.

%package -n %{fontname}-expanded-fonts
Summary:	Expanded Silkscreen font family
Group:		User Interface/X
Requires:	%{name}-common = %{version}-%{release}

%description -n %{fontname}-expanded-fonts

This font family has a slightly expanded spacing between the letters in 
comparison to the normal Silkscreen font family.

%_font_pkg -n expanded -f %{fontconf}-expanded.conf slkscre*.ttf

%setup -q -c -n %{name}


rm -rf %{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}.conf
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-expanded.conf

for fontconf in %{fontconf}.conf %{fontconf}-expanded.conf ; do
	ln -s %{_fontconfig_templatedir}/$fontconf %{buildroot}%{_fontconfig_confdir}/$fontconf

rm -rf %{buildroot}

%_font_pkg -f %{fontconf}.conf slkscr.ttf slkscrb.ttf

%files common
%doc readme.txt
%dir %{_fontdir}

* Sun Jul 26 2009 Fedora Release Engineering <> - 1.0-4
- Rebuilt for

* Wed Feb 25 2009 Fedora Release Engineering <> - 1.0-3
- Rebuilt for

* Thu Jan 15 2009 Tom "spot" Callaway <> 1.0-2
- rework package for new font guidelines

* Tue Dec 11 2007 Tom "spot" Callaway <> 1.0-1
- Initial package for Fedora