%global fontname abattis-cantarell %global fontconf 63-%{fontname}.conf #global archivename %{name}-%{version} Name: %{fontname}-fonts Version: 1.001 Release: 2%{?dist} Summary: Contemporary humanist sans-serif font Group: User Interface/X License: GPLv3+FE and OFL URL: http://abattis.org/cantarell/ Source0: http://abattis.org/cantarell/Cantarell-2009-07-17.zip Source1: %{name}-fontconfig.conf BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description Cantarell is a contemporary Humanist sans serif that fully support the following writing systems: Basic Latin, Western European, Catalan, Baltic, Turkish, Central European, Dutch and Afrikaans. %prep %setup -q -n Cantarell for file in *.txt; do sed 's/\r//g' "$file" | \ fold -s > "$file.new" && \ touch -r "$file" "$file.new" && \ mv "$file.new" "$file" done %build %install rm -fr %{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} %clean rm -fr %{buildroot} %_font_pkg -f %{fontconf} *.ttf %doc FONTLOG.txt LICENSE.txt %changelog * Fri Aug 13 2010 Luya Tshimbalanga - 1.001-2 - Set to dual license: GPLv3FE and OFL * Thu Aug 12 2010 Luya Tshimbalanga - 1.001-1 - Initial RPM release.