%global fontname mukta %global fontconf 67-%{fontname} %global common_desc \ Mukta is a typeface available in \ seven weights, supporting Devanagari, Gujarati, Tamil and Latin scripts. Name: %{fontname}-fonts Version: 2.538 Release: 1%{?dist} Summary: Free Indian truetype/open type fonts License: OFL URL: https://github.com/EkType/Mukta Source0: https://github.com/EkType/Mukta/releases/download/%{version}/Mukta.Font.Family.%{version}.zip Source1: %{name}-devanagari-fontconfig.conf Source2: %{name}-vaani-fontconfig.conf Source3: %{name}-mahee-fontconfig.conf Source4: %{name}-malar-fontconfig.conf BuildArch: noarch BuildRequires: fontpackages-devel %description %common_desc %package common Summary: Common files of %{name} Requires: fontpackages-filesystem %description common %common_desc %package -n %{fontname}-devanagari-fonts Summary: Free Devanagari font Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-devanagari-fonts %common_desc This package provides a free devanagari truetype/open type font. %_font_pkg -n devanagari -f %{fontconf}-devanagari.conf Mukta-*.ttf %package -n %{fontname}-vaani-fonts Summary: Free Gujarati font Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-vaani-fonts %common_desc This package provides a free Gujarati truetype/open type font. %_font_pkg -n vaani -f %{fontconf}-vaani.conf MuktaVaani-*.ttf %package -n %{fontname}-mahee-fonts Summary: Free Gurmukhi font Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-mahee-fonts %common_desc This package provides a free Gurmukhi truetype/open type font. %_font_pkg -n mahee -f %{fontconf}-mahee.conf MuktaMahee-*.ttf %package -n %{fontname}-malar-fonts Summary: Free Tamil font Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-malar-fonts %common_desc This package provides a free Tamil truetype/open type font. %_font_pkg -n malar -f %{fontconf}-malar.conf MuktaMalar-*.ttf %prep %setup -q -c sed -i 's/\r$//' *.txt README.md %build %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p */*.ttf %{buildroot}%{_fontdir} install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %{buildroot}%{_fontconfig_confdir} # Repeat for every font family install -m 0644 -p %{SOURCE1} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-devanagari.conf install -m 0644 -p %{SOURCE2} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-vaani.conf install -m 0644 -p %{SOURCE3} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mahee.conf install -m 0644 -p %{SOURCE4} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-malar.conf for fconf in %{fontconf}-devanagari.conf \ %{fontconf}-vaani.conf \ %{fontconf}-mahee.conf \ %{fontconf}-malar.conf; do ln -s %{_fontconfig_templatedir}/$fconf \ %{buildroot}%{_fontconfig_confdir}/$fconf done %files common %doc AUTHORS.txt README.md CONTRIBUTORS.txt %license OFL.txt Copyright.txt %changelog * Mon May 28 2018 Vishal Vijayraghavan - 2.538-1 - first release of mukta fonts