%define fontname apanov-heuristica
%define fontdir %{_datadir}/fonts/%{fontname}
%define fontconfdir %{_sysconfdir}/fonts/conf.d
%define archivename heuristica-src-%{version}
Name: %{fontname}-fonts
Version: 20081109
Release: 1%{?dist}
Summary: Heuristica font
Group: User Interface/X
License: OFL
URL: ftp://ftp.dvo.ru/pub/Font/%{fontname}/
Source0: %{url}%{archivename}.tar.bz2
Source1: %{name}-fontconfig.conf
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: fontforge
%description
Heuristica is a serif latin & cyrillic font, derived from the "Adobe Utopia®"
font that was released to the TeX Users Group under a liberal license.
%prep
%setup -q -c
%build
make %{?_smp_mflags} all
%install
rm -fr %{buildroot}
install -m 0755 -d %{buildroot}%{fontdir}
install -m 0644 -p Heuristica-*.otf %{buildroot}%{fontdir}
install -m 0755 -d %{buildroot}%{fontconfdir}
install -m 0644 -p %{SOURCE1} %{buildroot}%{fontconfdir}/61-%{fontname}.conf
%clean
rm -fr %{buildroot}
%post
if [ -x %{_bindir}/fc-cache ] ; then
%{_bindir}/fc-cache %{fontdir} || :
fi
%postun
if [ $1 -eq 0 -a -x %{_bindir}/fc-cache ] ; then
%{_bindir}/fc-cache %{fontdir} || :
fi
%files
%defattr(0644,root,root,0755)
%doc *.txt
%config(noreplace) %{fontconfdir}/61-%{fontname}.conf
%dir %{fontdir}
%{fontdir}/Heuristica-*.otf
%changelog
* Sun Nov 16 2008 <nicolas.mailhot at laposte.net>
- 20081109-1
↝ Fedora import
* Fri Oct 10 2008 <nicolas.mailhot at laposte.net>
- 20080825-1
ԇ FE-LEGAL lifted — update package in review request
* Fri Jun 20 2008 <nicolas.mailhot at laposte.net>
- 20080619-1
я Initial packaging