%global fontname adobe-source-han-sans-tw %global fontconf 65-0-%{fontname}.conf %global archivename SourceHanSansTW Name: adobe-source-han-sans-tw-fonts Version: 1.002 Release: 1%{?dist} Summary: Adobe OpenType Pan-CJK font family for Traditional Chinese License: ASL 2.0 URL: https://github.com/adobe-fonts/source-han-sans/ Source0: https://github.com/adobe-fonts/source-han-sans/raw/release/SubsetOTF/%{archivename}.zip Source1: %{name}-fontconfig.conf Source2: https://raw.githubusercontent.com/adobe-fonts/source-han-sans/master/LICENSE.txt BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem Provides: adobe-source-han-sans-twhk-fonts = %{version}-%{release} Obsoletes: adobe-source-han-sans-twhk-fonts <= 1.002-1 %description Source Han Sans is a sans serif Pan-CJK font family that is offered in seven weights—ExtraLight, Light, Normal, Regular, Medium, Bold, and Heavy—and in several OpenType/CFF-based deployment configurations to accommodate various system requirements or limitations. As the name suggests, Pan-CJK fonts are intended to support the characters necessary to render or display text in Simplified Chinese, Traditional Chinese, Japanese, and Korean. %prep %setup -q -n %{archivename} %build %install #install doc install -m 0644 -p %{SOURCE2} . install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p *.otf %{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} *.otf %license LICENSE.txt %changelog * Thu Apr 23 2015 Peng Wu - 1.002-1 - Update to 1.002 * Mon Apr 13 2015 Peng Wu - 1.001-2 - Update spec according to review feedback. * Mon Mar 30 2015 Peng Wu - 1.001-1 - Renamed from adobe-source-han-sans-twhk-fonts