File fontworks-reggae-one-fonts.spec of Package fontworks-reggae-one-fonts

#
# spec file for package fontworks-reggae-one-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/
#


Name:           fontworks-reggae-one-fonts
Version:        1.100
Release:        0
Summary:        Reggae One
License:        OFL-1.1
Url:            https://github.com/fontworks-fonts/Reggae

#               Since there are no release packages but there are Git tags, repository archive is used.
Source:         https://github.com/fontworks-fonts/Reggae/archive/refs/tags/Version%{version}.zip
BuildRequires:  fontpackages-devel
BuildRequires:  unzip
%reconfigure_fonts_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Reggae is a very popular display font often used in Japanese boys'
magazines and digital content. The sharpened ends give off a dynamic
pulse, making this font ideal to express rhythm, movement and energy,
or for emphasis.

%prep
%setup -Tca0

%build

%install
c="%buildroot/%_ttfontsdir"
mkdir -p "$c"
cp -av Reggae-Version%{version}/fonts/ttf/*.ttf "$c/"

%reconfigure_fonts_scriptlets

%files
%defattr(-,root,root)
%dir %_ttfontsdir
%_ttfontsdir/*.ttf
%doc Reggae-Version%{version}/README.md Reggae-Version%{version}/README-JP.md Reggae-Version%{version}/documentation/ReggaeOne.pdf Reggae-Version%{version}/image_Reggae.png
%license Reggae-Version%{version}/OFL.txt

%changelog
openSUSE Build Service is sponsored by