# SPDX-License-Identifier: MIT Version: 20220807 Release: 1%{?dist} URL: https://github.com/googlefonts/noto-cjk BuildRequires: python3 # The identifier of the entity, that released the font family. %global foundry Google # The font family license identifier. Adjust as necessary. The OFL is our # recommended font license. %global fontlicense OFL-1.1 # # The following directives are lists of space-separated shell globs # – matching files associated with the font family, # – as they exist in the build root, # — at the end of the %build stage: # – legal files (licensing…) %global fontlicenses LICENSE # – documentation files %global fontdocs *.txt # – exclusions from the ”fontdocs” list %global fontdocsex %{fontlicenses} # The human-friendly font family name, whitespace included, restricted to the # the Basic Latin Unicode block. %global fontfamily Noto Serif CJK %global fontsummary Google Noto Serif CJK Fonts # # More shell glob lists: # – font family files %global fonts OTC/*.ttc # – fontconfig files %global fontconfs 65-1-%{fontpkgname}.conf %{SOURCE10} # # A multi-line description block for the generated package. %global fontdescription %{expand: Noto CJK fonts, supporting Simplified Chinese, Traditional Chinese, \ Japanese, and Korean. The supported scripts are Han, Hiragana, Katakana, \ Hangul, and Bopomofo. Latin, Greek, Cyrllic, and various symbols are also \ supported for compatibility with CJK standards. The google-noto-cjk-serif-fonts package contains Google Noto Serif CJK fonts. } Source0: 04_NotoSerifCJKOTC.zip Source1: genfontconf.py # Adjust as necessary. Keeping the filename in sync with the package name is a good idea. # See the fontconfig templates in fonts-rpm-templates for information on how to # write good fontconfig files and choose the correct priority [number]. Source10: 65-%{fontpkgname}.conf # A container for additional subpackage declarations. %global fontpkgheader %{expand: Conflicts: google-noto-serif-cjk-vf-fonts } %fontpkg %prep %setup -c cp %{SOURCE1} . python3 genfontconf.py "ja" "serif" "Noto Serif CJK JP" \ "ko" "serif" "Noto Serif CJK KR" \ "zh-cn:zh-sg" "serif" "Noto Serif CJK SC" \ "zh-tw:cmn:hak:lzh:nan" "serif" "Noto Serif CJK TC" \ "zh-hk:zh-mo:yue" "serif" "Noto Serif CJK HK" \ | xmllint --format - |tee 65-1-google-noto-serif-cjk-fonts.conf %build %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog * Thu Dec 15 2022 Peng Wu - 20220807-1 - Initial Packaging - Migrate to SPDX license