File fontworks-stick-fonts.spec of Package fontworks-stick-fonts

#
# spec file for package fontworks-stick-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 069a1101e3fd51e60205710157f8b6a996ffea61

Name:           fontworks-stick-fonts
Version:        1.100
Release:        0
Summary:        Stick
License:        OFL-1.1
Url:            https://github.com/fontworks-fonts/Stick

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

%description
Stick is an original pop-style font. The strokes of varying
intensity add momentum and the rounded dots create a lively and
dynamic feel.

%prep
%setup -Tca0

%build

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

%reconfigure_fonts_scriptlets

%files
%defattr(644,root,root,755)
%dir %_ttfontsdir
%_ttfontsdir/*.ttf
%doc Stick-%{commit_id}/README.md Stick-%{commit_id}/README-JP.md Stick-%{commit_id}/documentation/Stick.pdf Stick-%{commit_id}/image_Stick.png
%license Stick-%{commit_id}/OFL.txt

%changelog
openSUSE Build Service is sponsored by