2019-09-30 10:43:09 -04:00
|
|
|
%global fontname google-noto-cjk
|
|
|
|
|
%global fontconf google-noto
|
|
|
|
|
|
2019-11-06 19:22:25 +08:00
|
|
|
%global commit0 32a5844539f2e348ed36b44e990f9b06d7fb89fe
|
|
|
|
|
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
|
|
|
2019-09-30 10:43:09 -04:00
|
|
|
%global common_desc \
|
2019-11-06 19:22:25 +08:00
|
|
|
Noto Sans CJK comprehensively cover Simplified Chinese,Traditional Chinese, \
|
|
|
|
|
Japanese, and Korean in a unified font family. This includes the full coverage of CJK Ideographs \
|
|
|
|
|
with variation support for 4 regions, Kangxi radicals, Japanese Kana, Korean Hangul, and other CJK \
|
|
|
|
|
symbols and letters in the Basic Multilingual Plane of Unicode. \
|
2019-09-30 10:43:09 -04:00
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
Name: google-noto-cjk-fonts
|
|
|
|
|
Version: 20170602
|
2022-11-25 08:32:05 +00:00
|
|
|
Release: 11
|
2019-09-30 10:43:09 -04:00
|
|
|
Summary: Google Noto Sans CJK Fonts
|
2022-05-10 11:25:43 +00:00
|
|
|
License: OFL-1.1
|
2022-11-25 08:32:05 +00:00
|
|
|
URL: https://github.com/googlefonts/noto-cjk
|
|
|
|
|
Source0: https://github.com/googlefonts/noto-cjk/archive/%{commit0}.tar.gz#/noto-cjk-%{shortcommit0}.tar.gz
|
2019-09-30 10:43:09 -04:00
|
|
|
Source1: genfontconf.py
|
|
|
|
|
Source2: genfontconf.sh
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2019-11-06 19:22:25 +08:00
|
|
|
BuildRequires: fontpackages-devel python3 /usr/bin/xmllint
|
|
|
|
|
Requires: fontpackages-filesystem google-noto-sans-cjk-ttc-fonts google-noto-serif-cjk-ttc-fonts
|
2019-09-30 10:43:09 -04:00
|
|
|
|
2019-11-06 19:22:25 +08:00
|
|
|
Obsoletes: google-noto-cjk-fonts-common
|
|
|
|
|
Provides: google-noto-cjk-fonts-common
|
2019-09-30 10:43:09 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%common_desc
|
|
|
|
|
|
|
|
|
|
%define notocjkpkg(n:f:p:) \
|
|
|
|
|
%define _font_pkg_name() %1 \
|
|
|
|
|
%define subpkgname %{-n:%{-n*}} \
|
|
|
|
|
%define fontfiles %{-f:%{-f*}}\
|
|
|
|
|
%define fconf %{-p*}%{!-p:66}-%{fontconf}-%{subpkgname}.conf\
|
|
|
|
|
%package -n google-noto-%subpkgname-fonts \
|
|
|
|
|
Summary: %* font files for %{name} \
|
|
|
|
|
Requires: %{name}-common = %{version}-%{release} \
|
|
|
|
|
\
|
|
|
|
|
%description -n google-noto-%subpkgname-fonts \
|
|
|
|
|
%common_desc \
|
|
|
|
|
\
|
|
|
|
|
The google-noto-%subpkgname-fonts package contains %* fonts. \
|
|
|
|
|
\
|
|
|
|
|
%_font_pkg -n google-noto-%subpkgname-fonts -f %{fconf} %fontfiles \
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-cjk-ttc -f NotoSansCJK-*.ttc -p 65-0 Sans OTC
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-cjk-ttc -f NotoSerifCJK-*.ttc -p 65-0 Serif OTC
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-cjk-jp -f NotoSansCJKjp-*.otf Japanese Multilingual Sans OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-cjk-jp -f NotoSerifCJKjp-*.otf Japanese Multilingual Serif OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-mono-cjk-jp -f NotoSansMonoCJKjp-*.otf Japanese Multilingual Sans Mono OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-cjk-kr -f NotoSansCJKkr-*.otf Korean Multilingual Sans OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-cjk-kr -f NotoSerifCJKkr-*.otf Korean Multilingual Serif OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-mono-cjk-kr -f NotoSansMonoCJKkr-*.otf Korean Multilingual Sans Mono OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-cjk-sc -f NotoSansCJKsc-*.otf Simplified Chinese Multilingual Sans OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-cjk-sc -f NotoSerifCJKsc-*.otf Simplified Chinese Multilingual Serif OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-mono-cjk-sc -f NotoSansMonoCJKsc-*.otf Simplified Chinese Multilingual Sans Mono OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-cjk-tc -f NotoSansCJKtc-*.otf Traditional Chinese Multilingual Sans OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-cjk-tc -f NotoSerifCJKtc-*.otf Traditional Chinese Multilingual Serif OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-mono-cjk-tc -f NotoSansMonoCJKtc-*.otf Traditional Chinese Multilingual Sans Mono OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-jp -f NotoSansJP-*.otf Japanese Region-specific Sans OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-jp -f NotoSerifJP-*.otf Japanese Region-specific Serif OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-kr -f NotoSansKR-*.otf Korean Region-specific Sans OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-kr -f NotoSerifKR-*.otf Korean Region-specific Serif OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-sc -f NotoSansSC-*.otf Simplified Chinese Region-specific Sans OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-sc -f NotoSerifSC-*.otf Simplified Chinese Region-specific Serif OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n sans-tc -f NotoSansTC-*.otf Traditional Chinese Region-specific Sans OTF
|
|
|
|
|
|
|
|
|
|
%notocjkpkg -n serif-tc -f NotoSerifTC-*.otf Traditional Chinese Region-specific Serif OTF
|
|
|
|
|
|
2019-11-06 19:22:25 +08:00
|
|
|
%package_help
|
2019-09-30 10:43:09 -04:00
|
|
|
|
|
|
|
|
%prep
|
2019-11-06 19:22:25 +08:00
|
|
|
%autosetup -n noto-cjk-%{commit0}
|
2019-09-30 10:43:09 -04:00
|
|
|
cp -p %{SOURCE1} %{SOURCE2} .
|
|
|
|
|
bash -x ./genfontconf.sh
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -m 0755 -d %{buildroot}%{_fontdir}
|
|
|
|
|
|
|
|
|
|
install -m 0644 -p NotoSansCJK-*.ttc %{buildroot}%{_fontdir}
|
|
|
|
|
install -m 0644 -p NotoSerifCJK-*.ttc %{buildroot}%{_fontdir}
|
|
|
|
|
|
|
|
|
|
install -m 0644 -p NotoSansCJK{jp,kr,sc,tc}-*.otf %{buildroot}%{_fontdir}
|
|
|
|
|
install -m 0644 -p NotoSerifCJK{jp,kr,sc,tc}-*.otf %{buildroot}%{_fontdir}
|
|
|
|
|
install -m 0644 -p NotoSansMonoCJK{jp,kr,sc,tc}-*.otf %{buildroot}%{_fontdir}
|
|
|
|
|
|
|
|
|
|
install -m 0644 -p NotoSans{JP,KR,SC,TC}-*.otf %{buildroot}%{_fontdir}
|
|
|
|
|
install -m 0644 -p NotoSerif{JP,KR,SC,TC}-*.otf %{buildroot}%{_fontdir}
|
|
|
|
|
|
|
|
|
|
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
|
|
|
|
%{buildroot}%{_fontconfig_confdir}
|
|
|
|
|
|
|
|
|
|
for f in sans-cjk-ttc serif-cjk-ttc \
|
|
|
|
|
sans-cjk-jp serif-cjk-jp sans-mono-cjk-jp \
|
|
|
|
|
sans-cjk-kr serif-cjk-kr sans-mono-cjk-kr \
|
|
|
|
|
sans-cjk-sc serif-cjk-sc sans-mono-cjk-sc \
|
|
|
|
|
sans-cjk-tc serif-cjk-tc sans-mono-cjk-tc \
|
|
|
|
|
sans-jp serif-jp \
|
|
|
|
|
sans-kr serif-kr \
|
|
|
|
|
sans-sc serif-sc \
|
|
|
|
|
sans-tc serif-tc;
|
|
|
|
|
do
|
|
|
|
|
fconf=$(basename -a *-%{fontconf}-$f.conf)
|
|
|
|
|
if [ "$(echo $fconf | wc -w)" -ne 1 ]; then
|
|
|
|
|
echo "Did not find unique \*-%{fontconf}-$f.conf file"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
install -m 0644 -p ${fconf} \
|
|
|
|
|
%{buildroot}%{_fontconfig_templatedir}/${fconf}
|
|
|
|
|
|
|
|
|
|
ln -s %{_fontconfig_templatedir}/${fconf} \
|
|
|
|
|
%{buildroot}%{_fontconfig_confdir}/${fconf}
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%files
|
2019-11-06 19:22:25 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:43:09 -04:00
|
|
|
%license LICENSE
|
|
|
|
|
|
2019-11-06 19:22:25 +08:00
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc NEWS HISTORY README.formats README.third_party
|
2019-09-30 10:43:09 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2022-11-25 08:32:05 +00:00
|
|
|
* Fri Nov 25 2022 wangkerong <wangkerong@h-partners.com> - 20170602-11
|
|
|
|
|
- update source url
|
|
|
|
|
|
2022-05-10 11:25:43 +00:00
|
|
|
* Tue May 10 2022 liuyumeng <liuyumeng5@h-partners.com> - 20170602-10
|
|
|
|
|
- fix license error
|
|
|
|
|
|
2019-11-06 19:22:25 +08:00
|
|
|
* Sat Oct 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 20170602-9
|
|
|
|
|
- Package init
|
2019-09-30 10:43:09 -04:00
|
|
|
|