google-noto-fonts/google-noto-fonts.spec.in
Takashi Iwai 91d45acb8b Accepting request 982316 from home:Pi-Cla:branches:M17N:fonts
update: 20220524 -> 20220607
- Noto Sans and Noto Sans Myanmar have been updated

fix(spec): add LICENSE to every package, remove redundant doc package
- It is likely a legal requirement that the license must be included with the package (rather than only recommends)
- Using the %license macro and including the license in every subpackage is the norm

fix(sh): prevent redundant .svn files from being compressed into archive
chore(spec): use install instead of mkdir and cp
chore(sh): fix typo

OBS-URL: https://build.opensuse.org/request/show/982316
OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/google-noto-fonts?expand=0&rev=51
2022-06-14 11:58:14 +00:00

67 lines
2.1 KiB
RPMSpec

#
# spec file for package google-noto-fonts
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define hyear 2022
%define hmonth 06
%define hday 07
%define src_name NotoFonts
# DO NOT EDIT THIS SPECFILE DIRECTLY, edit google-noto-fonts.spec.in and run generate-fonts-and-specfile.sh script
Name: google-noto-fonts
Version: %{hyear}%{hmonth}%{hday}
Release: 0
Summary: Noto Font Families
License: OFL-1.1
Group: System/X11/Fonts
Url: https://github.com/googlefonts/noto-fonts
# Generate Source0 via generate-fonts-and-specfile.sh
Source0: ttf.tar.gz
Source1: generate-fonts-and-specfile.sh
Source2: LICENSE
BuildRequires: fontpackages-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Noto's design goal is to achieve visual harmonization (e.g., compatible heights and stroke
thicknesses) across languages.
@SUBPACKAGE_HEADERS@
%prep
tar -xzf %{SOURCE0} -C .
cp %{SOURCE2} .
%build
%install
# Tifinagh fonts have duplicates in NotoSansTifinagh folder
# https://github.com/googlefonts/noto-fonts/issues/2177 and https://github.com/googlefonts/noto-fonts/issues/2326
rm ttf/NotoSansTifinagh/NotoSansTifinagh[!\-]*
# NotoSansDisplay is already provided by NotoSans
# Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315
rm -r ttf/NotoSansDisplay/
install -Dm 644 -t %{buildroot}%{_ttfontsdir} ttf/*/*.ttf
@SUBPACKAGE_SCRIPTLETS@
@SUBPACKAGE_FILELISTS@
%changelog