Blame adobe-source-han-sans-jp-fonts.spec

Akira TAGOH 1ec80eb
%global fontname adobe-source-han-sans-jp
Akira TAGOH d126c0d
%global fontconf 68-%{fontname}.conf
Akira TAGOH 1ec80eb
%global archivename SourceHanSansJP
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
Name:		adobe-source-han-sans-jp-fonts
Akira TAGOH bf61984
Version:	2.000
Akira TAGOH bf61984
Release:	1%{?dist}
Akira TAGOH 1ec80eb
Summary:	Adobe OpenType Pan-CJK font family for Japanese
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
License:	OFL
Akira TAGOH 1ec80eb
URL:		https://github.com/adobe-fonts/source-han-sans/
Akira TAGOH 1ec80eb
Source0:	https://github.com/adobe-fonts/source-han-sans/raw/release/SubsetOTF/%{archivename}.zip
Akira TAGOH 1ec80eb
Source1:	%{name}-fontconfig.conf
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
BuildArch:	noarch
Akira TAGOH 1ec80eb
BuildRequires:	fontpackages-devel
Akira TAGOH 1ec80eb
Requires:	fontpackages-filesystem
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
%description
Akira TAGOH 1ec80eb
Source Han Sans is a set of OpenType/CFF Pan-CJK fonts.
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
%prep
Akira TAGOH 1ec80eb
%autosetup -n %{archivename}
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
%build
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
%install
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
install -m 0755 -d %{buildroot}%{_fontdir}
Akira TAGOH 1ec80eb
install -m 0644 -p *.otf %{buildroot}%{_fontdir}
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
Akira TAGOH 1ec80eb
		   %{buildroot}%{_fontconfig_confdir}
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
install -m 0644 -p %{SOURCE1} \
Akira TAGOH 1ec80eb
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
Akira TAGOH 1ec80eb
ln -s	%{_fontconfig_templatedir}/%{fontconf} \
Akira TAGOH 1ec80eb
	%{buildroot}%{_fontconfig_confdir}/%{fontconf}
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
%_font_pkg -f %{fontconf} *.otf
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
%license LICENSE.txt
Akira TAGOH 1ec80eb
Akira TAGOH 1ec80eb
%changelog
Akira TAGOH bf61984
* Thu Jan 17 2019 Akira TAGOH <tagoh@redhat.com> - 2.000-1
Akira TAGOH bf61984
- Update to 2.000.
Akira TAGOH bf61984
Akira TAGOH d126c0d
* Wed Jul 18 2018 Akira TAGOH <tagoh@redhat.com> - 1.004-4
Akira TAGOH d126c0d
- Update the fontconfig priority to make Noto default.
Akira TAGOH d126c0d
1603069
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-3
1603069
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1603069
9099f1d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-2
9099f1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9099f1d
Akira TAGOH 1ec80eb
* Fri Oct 27 2017 Akira TAGOH <tagoh@redhat.com> - 1.004-1
Akira TAGOH 1ec80eb
- Initial packaging.