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

Akira TAGOH 2804ee
%global fontname adobe-source-han-code-jp
Akira TAGOH be2b72
%global fontconf 68-%{fontname}.conf
Akira TAGOH 2804ee
%global archivename source-han-code-jp-%{version}R
Akira TAGOH 2804ee
Akira TAGOH 2804ee
Name:		adobe-source-han-code-jp-fonts
Akira TAGOH 84ff24
Version:	2.011
c7c7a7
Release:	2%{?dist}
Akira TAGOH 2804ee
Summary:	Adobe OpenType UI font for mixed Latin and Japanese text
Akira TAGOH 2804ee
Akira TAGOH 2804ee
License:	OFL
Akira TAGOH 2804ee
URL:		https://github.com/adobe-fonts/source-han-code-jp/
Akira TAGOH 2804ee
Source0:	https://github.com/adobe-fonts/source-han-code-jp/archive/%{version}R/%{archivename}.zip
Akira TAGOH 2804ee
Source1:	%{name}-fontconfig.conf
Akira TAGOH 2804ee
Akira TAGOH 2804ee
BuildArch:	noarch
Akira TAGOH 2804ee
BuildRequires:	fontpackages-devel
Akira TAGOH 2804ee
Requires:	fontpackages-filesystem
Akira TAGOH 2804ee
Akira TAGOH 2804ee
%description
Akira TAGOH 2804ee
Source Han Code JP is a derivative of Source Han Sans that replaces
Akira TAGOH 2804ee
its proportional Latin glyphs with fixed-width 667-unit glyphs from
Akira TAGOH 2804ee
Source Code Pro. The Latin glyphs are scaled to match the glyphs for
Akira TAGOH 2804ee
Japanese kana and kanji, and their widths are adjusted to be exactly
Akira TAGOH 2804ee
667 units (two-thirds of an EM). Source Han Code JP is intended to be
Akira TAGOH 2804ee
used as a UI font for mixed Latin and Japanese text on displays,
Akira TAGOH 2804ee
for programming, editing HTML/CSS, viewing text or inputing to
Akira TAGOH 2804ee
the command line in a terminal app, and so on.
Akira TAGOH 2804ee
Akira TAGOH 2804ee
%prep
Akira TAGOH 2804ee
%autosetup -n %{archivename}
Akira TAGOH 2804ee
chmod 0644 README.md
Akira TAGOH 2804ee
Akira TAGOH 2804ee
%build
Akira TAGOH 2804ee
Akira TAGOH 2804ee
%install
Akira TAGOH 2804ee
Akira TAGOH 2804ee
install -m 0755 -d %{buildroot}%{_fontdir}
Akira TAGOH 2804ee
install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir}
Akira TAGOH 2804ee
Akira TAGOH 2804ee
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
Akira TAGOH 2804ee
		   %{buildroot}%{_fontconfig_confdir}
Akira TAGOH 2804ee
Akira TAGOH 2804ee
install -m 0644 -p %{SOURCE1} \
Akira TAGOH 2804ee
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
Akira TAGOH 2804ee
ln -s	%{_fontconfig_templatedir}/%{fontconf} \
Akira TAGOH 2804ee
	%{buildroot}%{_fontconfig_confdir}/%{fontconf}
Akira TAGOH 2804ee
Akira TAGOH 2804ee
%_font_pkg -f %{fontconf} *.otf
Akira TAGOH 2804ee
Akira TAGOH 2804ee
%license LICENSE.txt
Akira TAGOH 2804ee
%doc README.md relnotes.txt
Akira TAGOH 2804ee
Akira TAGOH 2804ee
%changelog
c7c7a7
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-2
c7c7a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c7c7a7
Akira TAGOH 84ff24
* Thu Jan 17 2019 Akira TAGOH <tagoh@redhat.com> - 2.011-1
Akira TAGOH 84ff24
- Update to 2.011.
Akira TAGOH 84ff24
Akira TAGOH be2b72
* Wed Jul 18 2018 Akira TAGOH <tagoh@redhat.com> - 2.000-6
Akira TAGOH be2b72
- Update the priority to make Noto default.
Akira TAGOH be2b72
436705
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-5
436705
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
436705
95488e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-4
95488e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
95488e
Akira TAGOH 39a350
* Thu Nov 16 2017 Akira TAGOH <tagoh@redhat.com> - 2.000-3
Akira TAGOH 39a350
- Correct fontconfig config.
Akira TAGOH 39a350
Akira TAGOH 2804ee
* Mon Oct 30 2017 Akira TAGOH <tagoh@redhat.com> - 2.000-2
Akira TAGOH 2804ee
- Correct the file permission for README.md
Akira TAGOH 2804ee
- Correct the source URL.
Akira TAGOH 2804ee
Akira TAGOH 2804ee
* Fri Oct 27 2017 Akira TAGOH <tagoh@redhat.com> - 2.000-1
Akira TAGOH 2804ee
- Initial packaging.