%global fontname adobe-source-han-sans-jp
%global fontconf 65-2-%{fontname}.conf
%global archivename SourceHanSansJP
Name: adobe-source-han-sans-jp-fonts
Version: 1.004
Release: 1%{?dist}
Summary: Adobe OpenType Pan-CJK font family for Japanese
License: OFL
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
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
Source Han Sans 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.004-1
- Initial packaging.