%global fontname kanotf %global fontconf 65-%{fontname}.conf %global _subdir /fonts Name: %{fontname}-fonts Version: 1.0 Release: 1%{?dist} Summary: OpenType Kannada fonts Group: User Interface/X License: GPLv2 URL: http://sourceforge.net/projects/brahmi/ Source0: http://sourceforge.net/projects/brahmi/files/Brahmi%20OpenType%20Fonts/OpenType%20font%20for%20Kannada%20-%20Kedgae%20and%20Mallige%20Ver%201.0/kanotf.zip Source1: %{name}-fontconfig.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description Consists of two Kannada open-type fonts named "Kedage" and "Mallige". %define debug_package %{nil} %prep %setup -q -n %{fontname}%{_subdir} %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} ln -s %{_fontconfig_templatedir}/%{fontconf} \ %{buildroot}%{_fontconfig_confdir}/%{fontconf} %_font_pkg -f %{fontconf} *.TTF %doc ../readme.txt ../gpl.txt %changelog * Thu Nov 12 2010 Susmit Shannigrahi - 1.0-1 - Initial Packaging