%global fontname aajohan-comfortaa %global fontconf 61-%{fontname}.conf Name: %{fontname}-fonts Version: 1.004 Release: %mkrel 4 Summary: Modern style true type font Group: System/X11 License: OFL URL: http://aajohan.deviantart.com Source0: http://www.deviantart.com/download/105395949/comfortaa___font_by_aajohan-d1qr019.zip Source1: %{name}-fontconfig.conf BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description Comfortaa is a sans-serif font comfortable in every aspect with Bold, Regular, and Thin variants. It has very good European language coverage and decent Cyrillic coverage. %prep %setup -q -n comfortaa # Fixing # wrong-file-end-of-line-encoding issue # Thanks to Paul Flo Williams for file in *.txt; do sed 's/\r//g' "$file" | \ fold -s > "$file.new" && \ touch -r "$file" "$file.new" && \ mv "$file.new" "$file" done %install 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 *.txt %changelog * Fri Feb 08 2013 fwang <fwang> 1.004-4.mga3 + Revision: 395553 - cleanup spec * Fri Jan 11 2013 umeabot <umeabot> 1.004-3.mga3 + Revision: 345159 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 25 2012 pterjan <pterjan> 1.004-2.mga3 + Revision: 335015 - Fix documentation files list for new rpm * Sun Mar 13 2011 dmorgan <dmorgan> 1.004-1.mga1 + Revision: 70826 - imported package aajohan-comfortaa-fonts