Blob Blame History Raw
%define fontname silkscreen
%define fontdir %{_datadir}/fonts/%{fontname}
%define fontconfdir %{_sysconfdir}/fonts/conf.d

Name:		%{fontname}-fonts
Summary: 	Silkscreen four member type family
Version:	1.0
Release:	1%{?dist}
# License attribution confirmed by author and Open Font Library
# http://openfontlibrary.org/media/files/jkottke/218
License:	OFL
Group:		User Interface/X
Source0:	http://www.kottke.org/plus/type/silkscreen/download/silkscreen.tar.gz
URL:		http://www.kottke.org/plus/type/silkscreen/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

%description
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.

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

%build

%install
rm -rf $RPM_BUILD_ROOT
install -m 0755 -d $RPM_BUILD_ROOT%{fontdir}
install -m 0644 -p *.ttf $RPM_BUILD_ROOT%{fontdir}

%clean
rm -rf $RPM_BUILD_ROOT

%post
if [ -x %{_bindir}/fc-cache ]; then
	%{_bindir}/fc-cache -f %{fontdir} || :
fi

%postun
if [ "$1" = "0" ]; then
	if [ -x %{_bindir}/fc-cache ]; then
		%{_bindir}/fc-cache -f %{fontdir} || :
	fi
fi

%files
%defattr(0644,root,root,0755)
%doc readme.txt
%dir %{fontdir}
%{fontdir}/*.ttf 

%changelog
* Tue Dec 11 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-1
- Initial package for Fedora