File nerdfonts.spec of Package nerdfonts
#
# spec file for package nerdfonts
#
# 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/
#
%define font_name @BUILD_FLAVOR@%{nil}
Name: nerdfonts-%{font_name}
Version: 3.4.0
Release: 0
Summary: Iconic font aggregator, collection, & patcher
License: Custom
URL: https://www.nerdfonts.com/
Source0: https://github.com/ryanoasis/nerd-fonts/releases/download/v%{version}/%{font_name}.tar.xz
Source1: fixfilelist.rb
BuildArch: noarch
BuildRequires: fontpackages-devel
BuildRequires: ruby
%reconfigure_fonts_prereq
%if "%{font_name}" == ""
ExclusiveArch: do_not_build
%endif
%description
3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
%prep
%autosetup -p1 -c
%build
%install
install -D -m 0644 -t %{buildroot}%{_ttfontsdir}/%{font_name}/ *.*tf
rm *.*tf
ruby %{SOURCE1} doclist
%reconfigure_fonts_scriptlets
%files -f doclist
%dir %{_ttfontsdir}/
%{_ttfontsdir}/%{font_name}/
%changelog