Blob Blame History Raw
%global fontname adobe-source-han-serif-kr
%global fontconf 65-2-%{fontname}.conf
%global archivename SourceHanSerifKR

Name:		adobe-source-han-serif-kr-fonts
Version:	1.001
Release:	1%{?dist}
Summary:	Adobe OpenType Pan-CJK font family for Korean

License:	OFL
URL:		https://github.com/adobe-fonts/source-han-serif/
Source0:	https://github.com/adobe-fonts/source-han-serif/raw/release/SubsetOTF/%{archivename}.zip
Source1:	%{name}-fontconfig.conf

BuildArch:	noarch
BuildRequires:	fontpackages-devel
Requires:	fontpackages-filesystem

%description
Source Han Serif is a set of OpenType/CFF Pan-CJK fonts.

%prep
%autosetup -n %{archivename}

%build

%install

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
* Fri Oct 27 2017 Akira TAGOH <tagoh@redhat.com> - 1.001-1
- Initial packaging.