## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Packaging template: basic single-family fonts packaging. # # SPDX-License-Identifier: MIT # # This template documents the minimal set of spec declarations, necessary to # package a single font family, from a single dedicated source archive. # # It is part of the following set of packaging templates: # “fonts-0-simple”: basic single-family fonts packaging # “fonts-1-full”: less common patterns for single-family fonts packaging # “fonts-2-multi”: multi-family fonts packaging # “fonts-3-sub”: packaging fonts, released as part of something else # # A font family is composed of font files, that share a single design, and # differ ONLY in: # — Weight Bold, Black… # – Width∕Stretch Narrow, Condensed, Expanded… # — Slope/Slant Italic, Oblique # Optical sizing Caption… # # Those parameters correspond to the default axes of OpenType variable fonts: # https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg#registered-axis-tags # The variable fonts model is an extension of the WWS model described in the # WPF Font Selection Model whitepaper (2007): # https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/02/24/90/36/WPF%20Font%20Selection%20Model.pdf # # Do not rely on the naming upstream chose, to define family boundaries, it # will often be wrong. # # Declaration order is chosen to limit divergence between those templates, and # simplify cut and pasting. # Version: 2.003 Release: %autorelease URL: https://github.com/adobe-fonts/source-han-serif/ # EPEL BuildRequires: fonttools Conflicts: adobe-source-han-serif-cn-fonts Conflicts: adobe-source-han-serif-jp-fonts Conflicts: adobe-source-han-serif-kr-fonts Conflicts: adobe-source-han-serif-tw-fonts Obsoletes: adobe-source-han-serif-cn-fonts <= %{VERSION} Obsoletes: adobe-source-han-serif-jp-fonts <= %{VERSION} Obsoletes: adobe-source-han-serif-kr-fonts <= %{VERSION} Obsoletes: adobe-source-han-serif-tw-fonts <= %{VERSION} # The identifier of the entity, that released the font family. %global foundry adobe # 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.txt # – documentation files %global fontdocs %{nil} # – 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 Source Han Serif %global fontsummary Adobe OpenType Pan-CJK font family # # More shell glob lists: # – font family files %global fonts SourceHanSerif.ttc # – fontconfig files %global fontconfs %{SOURCE10} # # A multi-line description block for the generated package. %global fontdescription %{expand: Source Han Serif is an open source Pan-CJK typeface whose OpenType/CFF fonts and CID-based sources are covered under the terms of the SIL Open Font License, Version 1.1. } Source0: https://github.com/adobe-fonts/source-han-serif/releases/download/%{VERSION}R/01_SourceHanSerif.ttc.zip Source1: https://github.com/adobe-fonts/source-han-serif/raw/refs/tags/%{VERSION}R/LICENSE.txt # https://gitlab.gnome.org/GNOME/vte/-/work_items/347#note_2525066 Source2: use-typo-metrics.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-2-%{fontpkgname}.conf %fontpkg %prep %autosetup -c python3 %{SOURCE2} SourceHanSerif.ttc mv out.ttc SourceHanSerif.ttc %build %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog ## START: Generated by rpmautospec * Tue May 26 2026 Alice H - 2.003-1 - Initial Release ## END: Generated by rpmautospec