File zen-antique-fonts.spec of Package zen-antique-fonts
#
# spec file for package zen-antique-fonts
#
# Copyright (c) 2024 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%global commit_id af987f5537d59874f18fa0797e64013eba31772a
Name: zen-antique-fonts
Version: 1.001
Release: 0
Summary: ZenFonts.jp Antique
License: OFL-1.1
Url: https://github.com/googlefonts/zen-antique
# Since there are no release packages nor Git tags, repository archive is used.
Source: https://github.com/googlefonts/zen-antique/archive/%{commit_id}.zip
BuildRequires: fontpackages-devel
BuildRequires: unzip
%reconfigure_fonts_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Zen Antique features two kinds of Antique Japanese with Kanji. The
impression of the weights (thickness) of strokes are different among
characters—Hiragana and Latin alphabets are slightly lighter, while
Katakana and Kanji are slightly heavier, which gives the unique rhythm
and taste in this font. “Zen Antique S” has slightly rounded effect on
the corners.
%prep
%setup -Tca0
%build
%install
c="%buildroot/%_ttfontsdir"
mkdir -p "$c"
cp -av zen-antique-%{commit_id}/fonts/ttf/*.ttf "$c/"
%reconfigure_fonts_scriptlets
%files
%defattr(-,root,root)
%dir %_ttfontsdir
%_ttfontsdir/*.ttf
%doc zen-antique-%{commit_id}/README.md zen-antique-%{commit_id}/images/*.png
%license zen-antique-%{commit_id}/OFL.txt
%changelog