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

#
# spec file for package zen-kurenaido-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 965c8adca85e247f8caa19fbe3ede6bef19485d7

Name:           zen-kurenaido-fonts
Version:        1.001
Release:        0
Summary:        ZenFonts.jp Kurenaido
License:        OFL-1.1
Url:            https://github.com/googlefonts/zen-kurenaido

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

%description
Zen Kurenaido is a new style of Japanese font with handwritten taste.
Omitted the brush-like elements from the design and left only with the
bone of the letter, resulting in a impression of ballpoint handwritten
letters.

%prep
%setup -Tca0

%build

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

%reconfigure_fonts_scriptlets

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

%changelog
openSUSE Build Service is sponsored by