%global fontname bashithacomplex %global fontconf 66-%{fontname}.conf %global checkout 20150628 Name: %{fontname}-fonts Version: 1.000 Release: 0.2.%{checkout}%{?dist} Summary: Bashitha Sinhala Font License: CC-BY URL: http://www.icta.lk Source0: http://www.icta.lk/attachments/article/1497/LBhashitaComplex.ttf Source1: %{name}-fontconfig.conf Source2: bashithacomplex-metainfo.xml BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description %description The bashithacomplex-fonts package contains fonts for the display of Sinhala. %prep %build %install rm -fr %{buildroot} install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p %{SOURCE0} %{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 %changelog * Fri Jul 03 2015 Danishka Navin - 1.000-0.2.20150628 - Added metainfo file - Fixed missing '.' inrelease * Sun Jun 28 2015 Danishka Navin - 1.000-0.120150628 - initial packaging