# 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. # %global archivever 00401 Version: 004.01 Release: 14%{?dist} URL: https://moji.or.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_ipaexm00401.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 IPAexMincho %global fontsummary Japanese Mincho-typeface OpenType font by IPA %global fontpkgheader %{expand: Obsoletes: ipa-ex-mincho-fonts < %{version}-%{release} Provides: ipa-ex-mincho-fonts = %{version}-%{release} } # # More shell glob lists: # – font family files %global fonts ipaexm.ttf # – fontconfig files %global fontconfs %{SOURCE10} # # A multi-line description block for the generated package. %global fontdescription %{expand: IPAex 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. } # https://oscdl.ipa.go.jp/IPAexfont/%{archivename}.zip Source0: https://moji.or.jp/wp-content/ipafont/IPAexfont/ipaexm%{archivever}.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: 68-ipa-exmincho-fonts.conf %fontpkg %prep %setup -q -n ipaexm%{archivever} chmod 0644 Readme_ipaexm%{archivever}.txt sed -ie 's/\r//g' Readme_ipaexm%{archivever}.txt %build %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog * Thu Jan 19 2023 Fedora Release Engineering - 004.01-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Dec 16 2022 Akira TAGOH - 004.01-13 - Replace old ipa-ex-mincho-fonts. * Thu Dec 15 2022 Akira TAGOH - 004.01-12 - Fix the wrong-file-end-of-line-encoding in doc. - Add Japanese family name in config. * Fri Dec 9 2022 Akira TAGOH - 004.01-11 - Update URL and Source URL. * Wed Dec 7 2022 Akira TAGOH - 004.01-10 - Revise the spec file for new packaging guidelines * Thu Jul 21 2022 Fedora Release Engineering - 004.01-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 004.01-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 004.01-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 004.01-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 004.01-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 004.01-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 004.01-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 5 2019 Akira TAGOH - 004.01-2 - Install metainfo files under %%{_metainfodir}. * Fri May 17 2019 Akira TAGOH - 004.01-1 - New upstream release. * Fri Feb 01 2019 Fedora Release Engineering - 002.01-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 002.01-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 002.01-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 22 2018 Akira TAGOH - 002.01-10 - Update the priority to change the default font to Noto. * Wed Jul 26 2017 Fedora Release Engineering - 002.01-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 002.01-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 002.01-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 002.01-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Mar 20 2015 Akira TAGOH - 002.01-5 - Add metainfo file. * Sat Jun 07 2014 Fedora Release Engineering - 002.01-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 002.01-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 002.01-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Nov 23 2012 Akira TAGOH - the spec file cleanup * Fri Nov 9 2012 Akira TAGOH - 002.01-1 - New upstream release. * Fri Aug 17 2012 Akira TAGOH - 001.03-6 - Enable autohinting explicitly because it looks somewhat better. * Thu Jul 19 2012 Fedora Release Engineering - 001.03-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jul 4 2012 Akira TAGOH - 001.03-4 - Correct fontconfig config file. (#837528) * Fri Jan 13 2012 Fedora Release Engineering - 001.03-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 001.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Dec 6 2010 Akira TAGOH - 001.03-1 - New upstream release. * Fri May 28 2010 Akira TAGOH - 001.02-1 - New upstream release. * Mon May 17 2010 Akira TAGOH - 001.01-2 - Get rid of binding="same" from the fontconfig config file. * Mon Mar 1 2010 Akira TAGOH - 001.01-1 - Initial package.