File motoya-kosugi-maru-fonts.spec of Package motoya-kosugi-maru-fonts

#
# spec file for package motoya-kosugi-maru-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 bd22c671a9ffc10cc4313e6f2fd75f2b86d6b14b

Name:           motoya-kosugi-maru-fonts
Version:        4.2
Release:        0
Summary:        Kosugi Maru fonts
License:        Apache-2.0
Url:            https://github.com/googlefonts/kosugi-maru

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

%description
Kosugi Maru is a Gothic Rounded design, with low stroke contrast and
monospaced metrics, and rounded terminals. Initially developed by
MOTOYA and released for the Android platform under the Apache license,
the typeface is based on a design from the 1950s. It aims for beauty
and readability, and evokes the Japanese cedar trees that have
straight and thick trunks and branches. Originally available as
"MotoyaLMaru W3 mono", it is now available under the name Kosugi Maru.
A regular gothic version is available as Kosugi.

%prep
%setup -Tca0

%build

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

%reconfigure_fonts_scriptlets

%files
%defattr(-,root,root)
%dir %_ttfontsdir
%_ttfontsdir/*.ttf
%doc kosugi-maru-%{commit_id}/README.md kosugi-maru-%{commit_id}/AUTHORS.txt kosugi-maru-%{commit_id}/CONTRIBUTORS.txt kosugi-maru-%{commit_id}/documentation
%license kosugi-maru-%{commit_id}/LICENSE.txt

%changelog
openSUSE Build Service is sponsored by