%define fontname pt-sans %define catalogue %{_sysconfdir}/X11/fontpath.d %define fontdir /usr/share/fonts/%{name} Summary: ParaType Sans fonts Name: %{fontname}-fonts Version: 2009.12 Release: 1%{?dist} License: http://fonts.ru/public/pt_openlicense.asp Group: User Interface/X BuildArch: noarch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: fontpackages-devel >= 1.13, xorg-x11-font-utils, unzip Source: http://www.fontstock.com/public/PTSans.zip # wget http://fonts.ru/public/pt_openlicense.asp -O license.ru.html Source1: license.ru.html # wget http://fonts.ru/public -O doc.ru.html Source2: doc.ru.html Source3: http://www.fontstock.com/public/Info_PT_Sans.pdf %description Freely redistributable "public" Sans font created by ParaType. %prep %setup -qc cp %SOURCE1 %SOURCE2 %SOURCE3 . %build %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p *.ttf %{buildroot}%{_fontdir} # catalogue install -m 0755 -d %{buildroot}%{catalogue} ln -sf %{_fontdir} %{buildroot}%{catalogue}/%{name} # fonts.{dir,scale} mkfontdir %{buildroot}%{_fontdir} mkfontscale %{buildroot}%{_fontdir} %clean rm -rf %{buildroot} %_font_pkg *.ttf %doc *html *pdf %{catalogue}/%{name} %verify(not md5 size mtime) %{_fontdir}/fonts.dir %verify(not md5 size mtime) %{_fontdir}/fonts.scale %changelog * Tue Dec 29 2009 Kir Kolyshkin 2009.12-1 - initial packaging