# Packaging template: multi-family fonts packaging. # # SPDX-License-Identifier: MIT # # This template documents spec declarations, used when packaging multiple font # families, from a single dedicated source archive. The source rpm is named # after the first (main) font family). Look up “fonts-3-sub” when the source # rpm needs to be named some other way. # # 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 # Version: 1.0.22 Release: 1 URL: https://github.com/jonz94/Sarasa-Gothic-Nerd-Fonts # The following declarations will be aliased to [variable]0 and reused for all # generated *-fonts packages unless overriden by a specific [variable][number] # declaration. %global foundry jonz94 %global fontlicense OFL %global fontdocs *.txt %global fontdocsex %{fontlicenses} # A text block that can be reused as part of the description of each generated # subpackage. %global common_description %{expand: Nerd fonts patched Sarasa Gothic font. } # Declaration for the subpackage containing the first font family. Also used as # source rpm info. All the [variable]0 declarations are equivalent and aliased # to [variable]. %global fontfamily Sarasa Fixed SC Nerd Font %global fonts *.ttf %global fontdescription %{expand: %{common_description} } # # Continue as necessary… Source0: https://github.com/jonz94/Sarasa-Gothic-Nerd-Fonts/releases/download/v1.0.22-0/sarasa-fixed-sc-nerd-font.zip # “fontpkg” will generate the font subpackage headers corresponding to the # elements declared above. # “fontpkg” accepts the following selection arguments: # – “-a” process everything # – “-z [number]” process a specific declaration block # If no flag is specified it will only process the zero/nosuffix block. %fontpkg -a # “fontmetapkg” will generate a font meta(sub)package header for all the font # subpackages generated in this spec. Optional arguments: # – “-n [name]” use [name] as metapackage name # – “-s [variable]” use the content of [variable] as metapackage summary # – “-d [variable]” use the content of [variable] as metapackage description # – “-z [numbers]” restrict metapackaging to [numbers] comma-separated list # of font package suffixes %fontmetapkg %package doc Summary: Optional documentation files of %{name} BuildArch: noarch %description doc This package provides optional documentation files shipped with %{name}. %prep %setup -c %build # “fontbuild” accepts the usual selection arguments: # – “-a” process everything # – “-z [number]” process a specific declaration block # If no flag is specified it will only process the zero/nosuffix block. %fontbuild -a %install # “fontinstall” accepts the usual selection arguments: # – “-a” process everything # – “-z [number]” process a specific declaration block # If no flag is specified it will only process the zero/nosuffix block. %fontinstall -a %check # “fontcheck” accepts the usual selection arguments: # – “-a” process everything # – “-z [number]” process a specific declaration block # If no flag is specified it will only process the zero/nosuffix block. %fontcheck -a # “fontfiles” accepts the usual selection arguments: # – “-a” process everything # – “-z [number]” process a specific declaration block # If no flag is specified it will only process the zero/nosuffix block %fontfiles -a %files doc %defattr(644, root, root, 0755) %license %doc %changelog