File motoya-kosugi-fonts.spec of Package motoya-kosugi-fonts
#
# spec file for package motoya-kosugi-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 75171a2738135ab888549e76a9037e826094f0ce
Name: motoya-kosugi-fonts
Version: 4.2
Release: 0
Summary: Kosugi fonts
License: Apache-2.0
Url: https://github.com/googlefonts/kosugi
# Since there are no release packages nor Git tags, repository archive is used.
Source: https://github.com/googlefonts/kosugi/archive/%{commit_id}.zip
BuildRequires: fontpackages-devel
BuildRequires: unzip
%reconfigure_fonts_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Kosugi is a Gothic design, with low stroke contrast and monospaced
metrics. 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 "MotoyaLCedar W3 mono", it is now available
under the name Kosugi. A Rounded version is available as Kosugi Maru.
%prep
%setup -Tca0
%build
%install
c="%buildroot/%_ttfontsdir"
mkdir -p "$c"
cp -av kosugi-%{commit_id}/fonts/ttf/*.ttf "$c/"
%reconfigure_fonts_scriptlets
%files
%defattr(-,root,root)
%dir %_ttfontsdir
%_ttfontsdir/*.ttf
%doc kosugi-%{commit_id}/README.md kosugi-%{commit_id}/AUTHORS.txt kosugi-%{commit_id}/CONTRIBUTORS.txt kosugi-%{commit_id}/documentation
%license kosugi-%{commit_id}/LICENSE.txt
%changelog