# 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.640 Release: %{autorelease} URL: https://ektype.in/baloo-family.html # 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 ektype %global fontlicense OFL-1.1 %global fontlicenses OFL.txt %global fontdocs README.md AUTHORS.txt CONTRIBUTORS.txt Copyright.txt %global fontdocsex %{fontlicenses} # A text block that can be reused as part of the description of each generated # subpackage. %global common_description %{expand: The Baloo 2 project consists of nine font families with unique local names for each of the nine Indic scripts. Each family supports one Indic script plus Latin, Latin Extended, and Vietnamese. - Baloo 2 for Devanagari - Baloo Bhai 2 for Gujarati - Baloo Bhaina 2 for Odia - Baloo Chettan 2 for Malayalam - Baloo Da 2 for Bengali - Baloo Paaji 2 for Gurmukhi - Baloo Tamma 2 for Kannada - Baloo Tammudu 2 for Telugu - Baloo Thambi 2 for Tamil It took a team of committed type designers to rear Baloo and raise it to be the typeface we love. The Gurmukhi is designed by Shuchita Grover; Bangla by Noopur Datye and Sulekha Rajkumar; Odia by Yesha Goshar, Manish Minz, and Shuchita Grover; Gujarati by Noopur Datye and Supriya Tembe; Kannada by Divya Kowshik and Shuchita Grover; Telugu by Maithili Shingre and Omkar Shende; Malayalam by Maithili Shingre and Unnati Kotecha; and Tamil by Aadarsh Rajan. Baloo Devanagari and Latin are collaboratively designed by Ek Type. Font engineering and type design assistance by Girish Dalvi.} # 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 fontfamily0 Baloo 2 %global fontsummary0 Baloo 2 Devangari fonts %global fonts0 TTF/Baloo2*.ttf %global fontconfs0 %{SOURCE10} %global fontdescription0 %{expand: %{common_description} Devangari and latin fonts.} # Declaration for the subpackage containing the second font family. %global fontfamily1 Baloo Bhai 2 %global fontsummary1 Baloo 2 Gujarati fonts %global fonts1 TTF/BalooBhai2*.ttf %global fontconfs1 %{SOURCE11} %global fontdescription1 %{expand: %{common_description} Gujarati and latin fonts.} # Declaration for the subpackage containing the second font family. %global fontfamily2 Baloo Bhaina 2 %global fontsummary2 Baloo 2 Odia fonts %global fonts2 TTF/BalooBhaina2*.ttf %global fontconfs2 %{SOURCE12} %global fontdescription2 %{expand: %{common_description} Odia and latin fonts.} # Declaration for the subpackage containing the second font family. %global fontfamily3 Baloo Chettan 2 %global fontsummary3 Baloo 2 Malayalam fonts %global fonts3 TTF/BalooChettan2*.ttf %global fontconfs3 %{SOURCE13} %global fontdescription3 %{expand: %{common_description} Malayalam and latin fonts.} # Declaration for the subpackage containing the second font family. %global fontfamily4 Baloo Da 2 %global fontsummary4 Baloo 2 Bengali fonts %global fonts4 TTF/BalooDa2*.ttf %global fontconfs4 %{SOURCE14} %global fontdescription4 %{expand: %{common_description} Bengali and latin fonts.} # Declaration for the subpackage containing the second font family. %global fontfamily5 Baloo Paaji 2 %global fontsummary5 Baloo 2 Gumurkhi fonts %global fonts5 TTF/BalooPaaji2*.ttf %global fontconfs5 %{SOURCE15} %global fontdescription5 %{expand: %{common_description} Gumurkhi and latin fonts.} # Declaration for the subpackage containing the second font family. %global fontfamily6 Baloo Tamma 2 %global fontsummary6 Baloo 2 Kannada fonts %global fonts6 TTF/BalooTamma2*.ttf %global fontconfs6 %{SOURCE16} %global fontdescription6 %{expand: %{common_description} Kannada and latin fonts.} # Declaration for the subpackage containing the second font family. %global fontfamily7 Baloo Tammudu 2 %global fontsummary7 Baloo 2 Telugu fonts %global fonts7 TTF/BalooTammudu2*.ttf %global fontconfs7 %{SOURCE17} %global fontdescription7 %{expand: %{common_description} Telugu and latin fonts.} # Declaration for the subpackage containing the second font family. %global fontfamily8 Baloo Thambi 2 %global fontsummary8 Baloo 2 Tamil fonts %global fonts8 TTF/BalooThambi2*.ttf %global fontconfs8 %{SOURCE18} %global fontdescription8 %{expand: %{common_description} Tamil and latin fonts.} Source0: https://github.com/EkType/Baloo2/archive/%{version}/Baloo2-%{version}.tar.gz Source10: 60-ektype-baloo-2-fonts.conf Source11: 60-ektype-baloo-bhai-2-fonts.conf Source12: 60-ektype-baloo-bhaina-2-fonts.conf Source13: 60-ektype-baloo-chettan-2-fonts.conf Source14: 60-ektype-baloo-da-2-fonts.conf Source15: 60-ektype-baloo-paaji-2-fonts.conf Source16: 60-ektype-baloo-tamma-2-fonts.conf Source17: 60-ektype-baloo-tammudu-2-fonts.conf Source18: 60-ektype-baloo-thambi-2-fonts.conf BuildRequires: fonttools # “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 -n ektype-baloo-2-all %prep %setup -n Baloo2-%{version} %linuxtext *.txt %build # Create ttf files from ttx files for file in TTX/*; do ttx $file; done mkdir TTF mv TTX/*.ttf TTF # “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 %changelog %autochangelog