Blob Blame History Raw
%define fontname tlomt-sniglet
%define fontconf 60-%{fontname}

Name:		%{fontname}-fonts
Summary:	A rounded, sans-serif font useful for headlines
Version:	1.000
Release:	3%{?dist}
# License attribution confirmed by author
# See: sniglet-license-confirmation-email.txt
License:	OFL
Group:		User Interface/X
Source0:	https://s3.amazonaws.com/theleague-production/fonts/sniglet.zip
Source1:	%{name}-fontconfig.conf
Source2:	sniglet-license-confirmation-email.txt
URL:		http://www.theleagueofmoveabletype.com/fonts/2-sniglet
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch
BuildRequires:	fontpackages-devel
Requires:	fontpackages-filesystem

%description
Sniglet is a fun rounded, sans-serif font useful for headlines and other
creative treaments. The font was created by Haley Fiege, and it supports a
full Latin character set including diacritics (accent marks). Notably, it
has full coverage for Icelandic and French characters.

%prep
%setup -q -c -n %{name}
cp %{SOURCE2} .

%build

%install
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

ln -s %{_fontconfig_templatedir}/%{fontconf}.conf %{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf

%clean
rm -rf %{buildroot}

%_font_pkg -f %{fontconf}.conf Sniglet.ttf
%doc sniglet-license-confirmation-email.txt

%changelog
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Feb 22 2010 Tom "spot" Callaway <tcallawa@redhat.com> 1.000-2
- include license clarification email as doc
- don't bother with common_desc macro
- add Requires: fontpackages-filesystem
- don't loop on a single fontconfig file
- change fontconfig from "sans-serif" to "fantasy"

* Wed Nov 11 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.000-1
- Initial package for Fedora