google-noto-fonts/google-noto-fonts.spec.in
Takashi Iwai cc9ee5bf82 Accepting request 978146 from home:Pi-Cla:branches:M17N:fonts
- Clarify sources

- Fix unversioned obsoletes
- Merge noto-sans-display-fonts into noto-sans-fonts
  - Fixes inconsistent font family names see Github issue #2315
- Bump version to 20220516
  - Start using OTF fonts to be in-line with Noto CJK and Emoji
  - No new fonts

- Update URL and source for zips
- Update to version 20220509
  - 96 new fonts, details at https://pastebin.com/ycnpAn88

OBS-URL: https://build.opensuse.org/request/show/978146
OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/google-noto-fonts?expand=0&rev=45
2022-05-20 08:12:35 +00:00

81 lines
2.3 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 05
%define hday 16
%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: otf.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.
%package doc
Summary: Noto Font Families License
Group: Documentation/Other
%description doc
License for Google's Noto fonts.
@SUBPACKAGE_HEADERS@
%prep
tar -xzf %{SOURCE0} -C .
cp %{SOURCE2} .
%build
%install
mkdir -p %{buildroot}%{_ttfontsdir}
# 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 otf/NotoSansTifinagh/NotoSansTifinagh[!\-]*
# NotoSansDisplay is already provided by NotoSans
# Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315
rm -r otf/NotoSansDisplay/
cp otf/*/*.otf %{buildroot}%{_ttfontsdir}/
@SUBPACKAGE_SCRIPTLETS@
%files doc
%defattr(0644,root,root,755)
%doc LICENSE
@SUBPACKAGE_FILELISTS@
%changelog