Blob Blame History Raw
%global fontname woodardworks-laconic
%global fontconf 60-%{fontname}

Name:		%{fontname}-fonts
Summary:	An artistic and minimal sans-serif font family
Version:	001.001
Release:	4%{?dist}
License:	OFL
Group:		User Interface/X
Source0:	http://www.woodardworks.com/laconic.zip
Source1:	%{name}-fontconfig.conf
Source2:	%{fontname}-shadow-fonts-fontconfig.conf
URL:		http://www.woodardworks.com/type13.html
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	fontpackages-devel
Requires:	fontpackages-filesystem
BuildArch:	noarch

%description
Laconic is a typeface font design meant to be dry without quite seeming 
parched. Curves and diagonals are kept to a bare minimum without sacrificing
legibility. What it lacks in design features are more than made up for in 
OpenType features. All the weights contain small caps, proportial figures,
old style figures, tabular figures, ligatures and stylistic alternates.

%package -n %{fontname}-shadow-fonts
Summary:	A shadowed version of the Laconic sans-serif font family
Group:		User Interface/X
Requires:	fontpackages-filesystem

%description -n %{fontname}-shadow-fonts
Laconic is a typeface font design meant to be dry without quite seeming
parched. Curves and diagonals are kept to a bare minimum without sacrificing
legibility. What it lacks in design features are more than made up for in
OpenType features. All the weights contain small caps, proportial figures,
old style figures, tabular figures, ligatures and stylistic alternates.
This package contains the Laconic Shadow font face.

%prep
%setup -q -c -T -n laconic
# We have to do this to avoid leaving a stray __MACOSX dir in the buildroot
unzip -j -L -q %{SOURCE0}
# Get rid of junk files
rm -rf ._*

%build
# Nothing to do here, already in OTF.

%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.otf %{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}-shadow.conf
ln -s %{_fontconfig_templatedir}/%{fontconf}.conf %{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf
ln -s %{_fontconfig_templatedir}/%{fontconf}-shadow.conf %{buildroot}%{_fontconfig_confdir}/%{fontconf}-shadow.conf

%clean
rm -rf %{buildroot}

%_font_pkg -f %{fontconf}.conf Laconic_Bold.otf Laconic_Light.otf Laconic_Regular.otf
%doc laconic_eula.pdf

%_font_pkg -n shadow -f %{fontconf}-shadow.conf Laconic_Shadow.otf
%doc laconic_eula.pdf

%changelog
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 001.001-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue May 26 2009 Tom "spot" Callaway <tcallawa@redhat.com> 001.001-3
- fix shadow fontconfig file

* Tue May 26 2009 Tom "spot" Callaway <tcallawa@redhat.com> 001.001-2
- unzip manually to avoid leaving stray directories
- split off shadow fontface into subpackage
- mark fontconfig files as sans-serif

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