File helsinkitypestudio-finlandica-fonts.spec of Package helsinkitypestudio-finlandica-fonts

#
# spec file for package helsinkitypestudio-finlandica-fonts
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%global git_hash f18a892
Name:           helsinkitypestudio-finlandica-fonts
Version:        1.64
Release:        0
Summary:        The official typeface of Finland
License:        OFL-1.1
Group:          System/X11/Fonts
URL:            https://github.com/HelsinkiTypeStudio/Finlandica
Source:         %{url}/tarball/%{git_hash}#/%{name}-%{version}.tar.gz
BuildRequires:  fontpackages-devel
BuildArch:      noarch
%reconfigure_fonts_prereq

%description
This is the official typeface of Finland designed by Helsinki Type
Studio. It has strong and compressed shapes. The typeface is reliable
in small sizes and has character in large headlines. The typeface is
part of a toolbox of assets for the promotion of Finland and
commissioned by the Prime minister’s office and Business Finland.

%prep
%autosetup -n HelsinkiTypeStudio-Finlandica-%{git_hash}

%build

%install
install -dm0755 %{buildroot}%{_ttfontsdir}
install -m0644 fonts/otf/*.otf %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets

%files
%dir %{_ttfontsdir}
%{_ttfontsdir}/*.otf
%defattr(0644,root,root)
%doc README.md {AUTHORS,CONTRIBUTORS}.txt documentation/*
%license OFL.txt

%changelog
openSUSE Build Service is sponsored by