File meslo-lg-dz-fonts.spec of Package meslo-lg-dz-fonts
#
# spec file for package meslo-lg-dz-fonts
#
# Copyright (c) 2025 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/
#
Name: meslo-lg-dz-fonts
Version: 1.2.5
Release: 0
Summary: Meslo LG Font Family
License: Apache-2.0
Group: System/X11/Fonts
URL: https://github.com/andreberg/Meslo-Font
# Upstream source 1.2.1:
# https://github.com/andreberg/Meslo-Font
# Downstream source 1.2.5:
# https://github.com/regularhunter/Meslo-Font
Source0: Meslo_LG_DZ_v%{version}.zip
Source1: README.md
BuildRequires: fontpackages-devel
BuildRequires: unzip
BuildArch: noarch
%reconfigure_fonts_prereq
%description
Meslo LG is a customized version of Apple's Menlo-Regular font (which is
a customized Bitstream Vera Sans Mono). This is the dotted zero version
of Meslo LG which is called Meslo LG DZ.
%prep
%setup -qn "Meslo_LG_DZ_v%{version}"
cp %{SOURCE1} .
# %%doc doesn't work with spaces. Let's rename the file.
mv -f "About Meslo LG DZ v%{version}.pdf" About_Meslo_LG_DZ_v%{version}.pdf
%build
%install
mkdir -p "%{buildroot}/%{_ttfontsdir}"
install -Dpm 644 *.ttf "%{buildroot}/%{_ttfontsdir}/"
%reconfigure_fonts_scriptlets
%files
%doc About_Meslo_LG_DZ_v%{version}.pdf LICENSE COPYRIGHT README.md
%dir %{_ttfontsdir}
%{_ttfontsdir}/*.ttf
%changelog