File satsuyako-hina-mincho-fonts.spec of Package satsuyako-hina-mincho-fonts

#
# spec file for package satsuyako-hina-mincho-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 6fdbb79bb0a9150830f87ffca48842ea7f0ff2cf

Name:           satsuyako-hina-mincho-fonts
Version:        1.002
Release:        0
Summary:        Hina Mincho
License:        OFL-1.1
Url:            https://github.com/satsuyako/Hina-Mincho

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

%description
Hina Mincho is a Japanese Old-fashioned Mincho-style font.

%prep
%setup -Tca0

%build

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

%reconfigure_fonts_scriptlets

%files
%defattr(-,root,root)
%dir %_ttfontsdir
%_ttfontsdir/*.ttf
%doc Hina-Mincho-%{commit_id}/README.md Hina-Mincho-%{commit_id}/AUTHORS.txt Hina-Mincho-%{commit_id}/CONTRIBUTORS.txt Hina-Mincho-%{commit_id}/*.png
%license Hina-Mincho-%{commit_id}/OFL.txt

%changelog
openSUSE Build Service is sponsored by