# 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: 003.03 Release: 24%{?dist} URL: http://ossipedia.ipa.go.jp/ipafont/ BuildRequires: fonts-rpm-macros >= 1:2.0.5-9 # The identifier of the entity, that released the font family. %global foundry IPA # The font family license identifier. Adjust as necessary. The OFL is our # recommended font license. %global fontlicense IPA # # 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 IPA_Font_License_Agreement_v1.0.txt # – documentation files %global fontdocs Readme_ipam00303.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 IPAMincho %global fontsummary Japanese Mincho-typeface OpenType font by IPA # # More shell glob lists: # – font family files %global fonts ipam.ttf # – fontconfig files %global fontconfs %{SOURCE10} # # A multi-line description block for the generated package. %global fontdescription %{expand: IPA Font is a Japanese OpenType fonts that is JIS X 0213:2004 compliant, provided by Information-technology Promotion Agency, Japan. This package contains Mincho style font. } # http://info.openlab.ipa.go.jp/ipafont/fontdata/%{archivename}.zip Source0: http://info.openlab.ipa.go.jp/ipafont/fontdata/ipam00303.zip # 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: 69-ipa-mincho-fonts.conf %fontpkg %prep %setup -q -n ipam00303 %build %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog * Tue Aug 23 2022 Akira TAGOH - 003.03-24 - Revise the spec file for new packaging guidelines. * Thu Jul 21 2022 Fedora Release Engineering - 003.03-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 003.03-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 003.03-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 003.03-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 003.03-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 003.03-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 003.03-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 5 2019 Akira TAGOH - 003.03-16 - Install metainfo files under %{_metainfodir}. * Fri Feb 01 2019 Fedora Release Engineering - 003.03-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 003.03-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 003.03-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 22 2018 Akira TAGOH - 003.03-12 - Update the priority to change the default font to Noto. * Wed Jul 26 2017 Fedora Release Engineering - 003.03-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 003.03-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 003.03-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 003.03-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Mar 20 2015 Akira TAGOH - 003.03-7 - Add metainfo file. * Sat Jun 07 2014 Fedora Release Engineering - 003.03-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 003.03-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 003.03-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Nov 23 2012 Akira TAGOH - the spec file cleanup * Fri Aug 17 2012 Akira TAGOH - 003.03-3 - Enable autohinting explicitly since the own hinting seems broken. * Thu Jul 19 2012 Fedora Release Engineering - 003.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Feb 03 2012 Akira TAGOH - 003.03-1 - New upstream release. * Fri Jan 13 2012 Fedora Release Engineering - 003.02-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 003.02-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue May 25 2010 Akira TAGOH - 003.02-4 - Improve the fontconfig config file to match ja as well. * Mon Apr 19 2010 Akira TAGOH - 003.02-3 - Get rid of compare="contains". * Fri Apr 16 2010 Akira TAGOH - 003.02-2 - Get rid of binding="same" from the fontconfig config file. (#578021) * Wed Feb 17 2010 Akira TAGOH - 003.02-1 - New upstream release. * Fri Jul 24 2009 Fedora Release Engineering - 003.01-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jun 5 2009 Akira TAGOH - 003.01-3 - Disable hinting. * Wed Apr 22 2009 Akira TAGOH - 003.01-2 - Correct the source URL. * Tue Apr 21 2009 Akira TAGOH - 003.01-1 - Initial package.