File zen-kakugothic-fonts.spec of Package zen-kakugothic-fonts

#
# spec file for package zen-kakugothic-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 81443c39f8364063b747f2f1af778969d60acee8

Name:           zen-kakugothic-fonts
Version:        1.002
Release:        0
Summary:        ZenFonts.jp Kaku Gothic
License:        OFL-1.1
Url:            https://github.com/googlefonts/zen-kakugothic

#               Since there are no release packages nor Git tags, repository archive is used.
Source:         https://github.com/googlefonts/zen-kakugothic/archive/%{commit_id}.zip
BuildRequires:  fontpackages-devel
BuildRequires:  unzip
%reconfigure_fonts_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       zen-kakugothic-antique-fonts = %{version}
Requires:       zen-kakugothic-new-fonts = %{version}

%package -n zen-kakugothic-antique-fonts
Summary:        ZenFonts.jp Kaku Gothic Antique
%reconfigure_fonts_prereq

%package -n zen-kakugothic-new-fonts
Summary:        ZenFonts.jp Kaku Gothic New
%reconfigure_fonts_prereq

%description
Zen Kaku Gothic N is a basic Japanese san serif (Gothic) family. With
this font, you can express fine typesetting without any professional
detailed arrangements. Because of the unique yet simple design, it
gives naturally high legibility. Easy to use and read.

Zen Kaku Gothic A is a classical yet simple and stylish sans serif
family. Highly legible due to orthodox letterform design. Great for
various usage, from title to text, and even caption.

%description -n zen-kakugothic-new-fonts
Zen Kaku Gothic N is a basic Japanese san serif (Gothic) family. With
this font, you can express fine typesetting without any professional
detailed arrangements. Because of the unique yet simple design, it
gives naturally high legibility. Easy to use and read.

%description -n zen-kakugothic-antique-fonts
Zen Kaku Gothic A is a classical yet simple and stylish sans serif
family. Highly legible due to orthodox letterform design. Great for
various usage, from title to text, and even caption.

%prep
%setup -Tca0

%build

%install
c="%buildroot/%_ttfontsdir"
mkdir -p "$c"
cp -av zen-kakugothic-%{commit_id}/fonts/ttf/*.ttf "$c/"

%reconfigure_fonts_scriptlets
%reconfigure_fonts_scriptlets -n zen-kakugothic-antique-fonts
%reconfigure_fonts_scriptlets -n zen-kakugothic-new-fonts

%files
%defattr(-,root,root)
%doc zen-kakugothic-%{commit_id}/README.md zen-kakugothic-%{commit_id}/images/*.png
%license zen-kakugothic-%{commit_id}/OFL.txt

%files -n zen-kakugothic-antique-fonts
%defattr(-,root,root)
%dir %_ttfontsdir
%_ttfontsdir/ZenKakuGothicAntique-*.ttf

%files -n zen-kakugothic-new-fonts
%defattr(-,root,root)
%dir %_ttfontsdir
%_ttfontsdir/ZenKakuGothicNew-*.ttf

%changelog
openSUSE Build Service is sponsored by