File nerd-fonts.spec of Package nerd-fonts

#
# spec file for package nerd-fonts
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2023 Luciano Santos <luc14n0@opensuse.org>
#
# 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/
#


# TODO:
#   1) Convert Markdown files to text/html;
#   2) Provide FontNameNerdFont-${version} / nerdfont(fontname) = ${version}
#   4) Provide locale(), if necessary;
#   5) Contribute upstream the licensing updates we found;

# install.sh script relies on bashisms
%define         _buildshell /bin/bash

Name:           nerd-fonts
Version:        3.0.1
Release:        0
Summary:        An Iconic font aggregator, collection, and patcher
License:        OFL-1.1 AND MIT
URL:            https://nerdfonts.com
#GitHub:        https://github.com/ryanoasis/nerd-fonts
Source:         %{name}-%{version}.tar.zst
BuildRequires:  bash
BuildRequires:  fontpackages-devel
BuildRequires:  (pandoc-cli or pandoc)
BuildArch:      noarch
%reconfigure_fonts_prereq

%description
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

Which font? Pick your font family:

  * If you are limited to monospaced fonts (because of your terminal,
    etc) then pick a font with "Nerd Font Mono" (or "NFM").
  * If you want to have bigger icons (usually around 1.5 normal letters
    wide) pick a font without "Mono" i.e. "Nerd Font" (or "NF"). Most
    terminals support this, but ymmv.
  * If you work in a proportional context (GUI elements or edit a
    presentation etc) pick a font with "Nerd Font Propo" (or "NFP").

Ligatures are generally preserved in the patched fonts. If you have a
ligature-aware terminal and don't want ligatures you can (usually)
disable them in the terminal settings.

To know all the Nerd fonts available, you can use:

$ zypper se 'nerd-*-fonts'

# >>> Keep font sub-packages in alphabetical order >>>
%package -n nerd-3270-fonts
Summary:        The 3270 Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-3270-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the 3270 font,
in a modern format.

For more information: https://github.com/rbanffy/3270font

%files -n nerd-3270-fonts -f 3270.list
%license patched-fonts/3270/Condensed/LICENSE*
%doc patched-fonts/3270/README.md
%dir %{_ttfontsdir}

%package -n nerd-agave-fonts
Summary:        The Agave Nerd Font
License:        MIT
BuildArch:      noarch

%description -n nerd-agave-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Agave, a
succulent monospaced programming font.

For more information: https://github.com/blobject/agave

%files -n nerd-agave-fonts -f Agave.list
%license patched-fonts/Agave/LICENSE*
%doc patched-fonts/Agave/README.md
%dir %{_ttfontsdir}

%package -n nerd-anonymicepro-fonts
Summary:        The Anonymice Pro Nerd Font, based on Anonymous Pro
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-anonymicepro-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides Anonymice Pro Nerd Font, based on Anonymous
Pro, a family of four fixed-width fonts designed with coding in mind.

For more information:
  https://www.marksimonson.com/fonts/view/anonymous-pro

%files -n nerd-anonymicepro-fonts -f AnonymousPro.list
%license patched-fonts/AnonymousPro/Regular/OFL.txt
%doc patched-fonts/AnonymousPro/README.md
%dir %{_ttfontsdir}

%package -n nerd-arimo-fonts
Summary:        The Arimo Nerd Font
License:        Apache-2.0
BuildArch:      noarch

%description -n nerd-arimo-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Arimo font.

For more information: https://github.com/googlefonts/Arimo

%files -n nerd-arimo-fonts -f Arimo.list
%license patched-fonts/Arimo/Regular/LICENSE*
%doc patched-fonts/Arimo/README.md
%dir %{_ttfontsdir}

%package -n nerd-aurulent-sansmono-fonts
Summary:        The Aurulent Sans Mono Nerd Font
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-aurulent-sansmono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Aurulent Sans
Mono a sans serif font designed by Stephen G. Hartke who also
created Verily Serif.

%files -n nerd-aurulent-sansmono-fonts -f AurulentSansMono.list
%license patched-fonts/AurulentSansMono/SIL_Open_Font_License.txt
%doc patched-fonts/AurulentSansMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-bigblueterminal-fonts
Summary:        The BigBlue Terminal Nerd Font
License:        CC-BY-SA-4.0
BuildArch:      noarch

%description -n nerd-bigblueterminal-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on BigBlue Terminal,
a monospaced pixel font, designed for use in fixed-width textual
environments (consoles/terminals, text/code/hex editors and so on).
It follows the metrics and dimensions of Windows' old Terminal font
(at the 9pt/12px size), but the appearance is closer to the classic
IBM PC text mode character sets.

%files -n nerd-bigblueterminal-fonts -f BigBlueTerminal.list
%license patched-fonts/BigBlueTerminal/LICENSE*
%doc patched-fonts/BigBlueTerminal/README.md
%dir %{_ttfontsdir}

%package -n nerd-bitstromwera-fonts
Summary:        The Bitstrom Wera Nerd Font, based on Bitstream Vera Sans Mono
License:        Bitstream-Vera
BuildArch:      noarch

%description -n nerd-bitstromwera-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Bitstrom Wera Nerd Font, based on the
Bitstream Vera Sans Mono font.

%files -n nerd-bitstromwera-fonts -f BitstreamVeraSansMono.list
%license patched-fonts/BitstreamVeraSansMono/Regular/Bitstream_Vera_License.txt
%doc patched-fonts/BitstreamVeraSansMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-blexmono-fonts
Summary:        The Blex Mono Nerd Font, based on IBM Plex Mono
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-blexmono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Blex Mono Nerd Font, based on the IBM
Plex Mono font, IBM’s typeface.

For more information: https://github.com/IBM/plex

%files -n nerd-blexmono-fonts -f IBMPlexMono.list
%license patched-fonts/IBMPlexMono/Mono/LICENSE*
%doc patched-fonts/IBMPlexMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-caskaydiacove-fonts
Summary:        The Caskaydia Cove Nerd Font, based on Cascadia Code
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-caskaydiacove-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Caskaydia Cove Nerd Font, based on the
Cascadia Code font, a fun, new monospaced font that includes
programming ligatures.

For more information: https://github.com/microsoft/cascadia-code

%files -n nerd-caskaydiacove-fonts -f CascadiaCode.list
%license patched-fonts/CascadiaCode/Regular/LICENSE*
%doc patched-fonts/CascadiaCode/README.md
%dir %{_ttfontsdir}

%package -n nerd-codenewroman-fonts
Summary:        The Code New Roman Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-codenewroman-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Code New
Roman font, by Sam Radian.

All characters have the same width, like old typewriters, making
it a good choice for personal and business correspondance.

%files -n nerd-codenewroman-fonts -f CodeNewRoman.list
%license patched-fonts/CodeNewRoman/Regular/license*
%doc patched-fonts/CodeNewRoman/README.md
%dir %{_ttfontsdir}

%package -n nerd-comicshannsmono-fonts
Summary:        The Comic Shanns Mono Nerd Font
License:        MIT
BuildArch:      noarch

%description -n nerd-comicshannsmono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Comic Shanns
Mono, a legible monospace font, the very typeface you’ve been
trained to recognize since childhood. It's inspired by the Comic
Sans font.

  * Nerd Fonts corrects some issues of the font;
  * The font is based on Comic Shanns v1, by Shannon Miwa:
      https://github.com/shannpersand/comic-shanns;
  * The bold weight has been manually added by Nerd Fonts, inspired
    by Thai Pangsakulyanont's Comic Mono:
      https://github.com/dtinth/comic-mono-font

For more information: https://github.com/jesusmgg/comic-shanns-mono

%files -n nerd-comicshannsmono-fonts -f ComicShannsMono.list
%license patched-fonts/ComicShannsMono/LICENSE*
%doc patched-fonts/ComicShannsMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-cousine-fonts
Summary:        The Cousine Nerd Font
License:        Apache-2.0
BuildArch:      noarch

%description -n nerd-cousine-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Cousine font,
designed by Steve Matteson as an innovative, refreshing sans serif
design that is metrically compatible with Courier New.

For more information: https://fonts.google.com/specimen/Cousine

%files -n nerd-cousine-fonts -f Cousine.list
%license patched-fonts/Cousine/Regular/LICENSE*
%doc patched-fonts/Cousine/README.md
%dir %{_ttfontsdir}

%package -n nerd-daddytimemono-fonts
Summary:        The DaddyTimeMono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-daddytimemono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on DaddyTimeMono, a
monospaced font for programmers and other terminal groupies.

For more information: https://github.com/BourgeoisBear/DaddyTimeMono

%files -n nerd-daddytimemono-fonts -f DaddyTimeMono.list
%license patched-fonts/DaddyTimeMono/LICENSE*
%doc patched-fonts/DaddyTimeMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-dejavu-sansmono-fonts
Summary:        The DejaVu Sans Mono Nerd Font
# license-audit file states that DejaVuSansMono is under Free license. However,
# https://raw.githubusercontent.com/dejavu-fonts/dejavu-fonts/master/LICENSE
# shows it actually uses the Bitstream-Vera license, and so does
# patched-fonts/DejaVuSansMono/Regular/LICENSE.txt
License:        Bitstream-Vera
BuildArch:      noarch

%description -n nerd-dejavu-sansmono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on DejaVu Sans Mono,
a font family based on the Bitstream Vera fonts. Its purpose is to
provide a wider range of characters while maintaining the original
look and feel.

For more information: https://github.com/dejavu-fonts/dejavu-fonts

%files -n nerd-dejavu-sansmono-fonts -f DejaVuSansMono.list
%license patched-fonts/DejaVuSansMono/Regular/LICENSE*
%doc patched-fonts/DejaVuSansMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-droid-sansmono-fonts
Summary:        The Droid Sans Mono Nerd Font
License:        Apache-2.0
BuildArch:      noarch

%description -n nerd-droid-sansmono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Droid Sans Mono,
a contemporary font family designed for comfortable reading on
screen. The font is slightly condensed to maximize the amount of
text displayed on small screens.

A patched version from mt3 has been used. For more information:
  https://github.com/mt3

%files -n nerd-droid-sansmono-fonts -f DroidSansMono.list
%license patched-fonts/DroidSansMono/LICENSE*
%doc patched-fonts/DroidSansMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-fantasque-sansmono-fonts
Summary:        The Fantasque Sans Mono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-fantasque-sansmono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Fantasque Sans
Mono, a programming font designed with functionality in mind, and
with some wibbly-wobbly handwriting-like fuzziness that makes it
unassumingly cool.

For more information: https://github.com/belluzj/fantasque-sans

%files -n nerd-fantasque-sansmono-fonts -f FantasqueSansMono.list
%license patched-fonts/FantasqueSansMono/Regular/OFL.txt
%doc patched-fonts/FantasqueSansMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-fira-code-fonts
Summary:        The Fira Code Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-fira-code-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Fira Code, a free
monospaced font with programming ligatures.

For more information: https://github.com/tonsky/FiraCode

%files -n nerd-fira-code-fonts -f FiraCode.list
%license patched-fonts/FiraCode/Regular/LICENSE*
%doc patched-fonts/FiraCode/README.md
%dir %{_ttfontsdir}

%package -n nerd-fira-mono-fonts
Summary:        The Fira Mono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-fira-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Fira Mono
font, Mozilla's new typeface, used in Firefox OS.

For more information: https://github.com/mozilla/Fira

%files -n nerd-fira-mono-fonts -f FiraMono.list
%license patched-fonts/FiraMono/Regular/LICENSE*
%doc patched-fonts/FiraMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-go-mono-fonts
Summary:        The Go Mono Nerd Font
License:        BSD-3-Clause
BuildArch:      noarch

%description -n nerd-go-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Go Mono, a font
created for the Go project (https://go.dev/blog/go-fonts).

For more information:
  https://go.googlesource.com/image/+/master/font/gofont/ttfs

%files -n nerd-go-mono-fonts -f Go-Mono.list
%license patched-fonts/Go-Mono/Regular/LICENSE*
%doc patched-fonts/Go-Mono/README.md
%dir %{_ttfontsdir}

%package -n nerd-gohu-fonts
Summary:        The Gohu Nerd Font
License:        WTFPL
BuildArch:      noarch

%description -n nerd-gohu-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Gohu, by Hugo
Chargois (http://font.gohu.eu) and Converted by Guilherme Maeda
(htpps://github.com/koemaeda). It's a font for programming and
terminal use. TrueType automatically traced, with available
bitmaps in heights of 11 and 14 pixels.

%files -n nerd-gohu-fonts -f Gohu.list
%license patched-fonts/Gohu/11/COPYING-LICENSE*
%doc patched-fonts/Gohu/README.md
%dir %{_ttfontsdir}

%package -n nerd-hack-fonts
Summary:        The Hack Nerd Font
License:        MIT
BuildArch:      noarch

%description -n nerd-hack-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Hack font, a
typeface designed for source code.

For more information: https://github.com/source-foundry/Hack

%files -n nerd-hack-fonts -f Hack.list
%license patched-fonts/Hack/Regular/LICENSE*
%doc patched-fonts/Hack/README.md
%dir %{_ttfontsdir}

%package -n nerd-hasklug-fonts
Summary:        The Hasklug Nerd Font, based on Hasklig
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-hasklug-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Hasklug Nerd Font, based on Hasklig, a
font with ligatures for programming (in Haskell) forked from Source
Code Pro (https://github.com/adobe-fonts/source-code-pro).

For more information: https://github.com/i-tu/Hasklig

%files -n nerd-hasklug-fonts -f Hasklig.list
%license patched-fonts/Hasklig/Regular/LICENSE*
%doc patched-fonts/Hasklig/README.md
%dir %{_ttfontsdir}

%package -n nerd-heavydata-fonts
Summary:        The Heavy Data Nerd Font
# HeavyData uses the "Vic Fieger" license which states:
#   The Vic Fieger fonts are freeware, to be downloaded and used by anyone who
#   wants them for free.
License:        SUSE-Freeware
BuildArch:      noarch

%description -n nerd-heavydata-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Heavy Data
font, by Vic Fieger (http://www.vicfieger.com/).

%files -n nerd-heavydata-fonts -f HeavyData.list
%license patched-fonts/HeavyData/Vic_Fieger_License.txt
%doc patched-fonts/HeavyData/README.md
%dir %{_ttfontsdir}

%package -n nerd-hurmit-fonts
Summary:        The Hurmit Nerd Font, based on Hermit
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-hurmit-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Hurmit Nerd Font, based on Hermit, a
monospace font designed to be clear, pragmatic and very readable.

For more information:
  https://pcaro.es/p/hermit and https://github.com/pcaro90/hermit

%files -n nerd-hurmit-fonts -f Hermit.list
%license patched-fonts/Hermit/Regular/LICENSE*
%doc patched-fonts/Hermit/README.md
%dir %{_ttfontsdir}

%package -n nerd-imwriting-fonts
Summary:        The iM-Writing Nerd Font, based on iA-Writer
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-imwriting-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the iM-Writing Nerd Font, based on iA-Writer,
a modification of IBM's Plex font. These are fonts from iA. Duo and
Quattro are almost monospaced but allow more room for some letters.

For more information:
  http://ia.net/topics/in-search-of-the-perfect-writing-font/ and
  https://github.com/iaolo/iA-Fonts

%files -n nerd-imwriting-fonts -f iA-Writer.list
%license patched-fonts/iA-Writer/Mono/Regular/LICENSE*
%doc patched-fonts/iA-Writer/README.md
%dir %{_ttfontsdir}

%package -n nerd-inconsolata-fonts
Summary:        The Inconsolata Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-inconsolata-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Inconsolata, an
open-source monospace font for code listings, originally by
raphlinus (https://github.com/raphlinus/).

For more information: https://github.com/googlefonts/Inconsolata

%files -n nerd-inconsolata-fonts -f Inconsolata.list
%license patched-fonts/Inconsolata/OFL.txt
%doc patched-fonts/Inconsolata/README.md
%dir %{_ttfontsdir}

%package -n nerd-inconsolatago-fonts
Summary:        The Inconsolata Go Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-inconsolatago-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Inconsolata
Go font, a modified version of Inconsolata with straight quotes.

There's not much information, apart from:
  "I also have an experimental version (tentatively titled
  InconsolataGo) with straight quotes in the inconsolata directory
  here." (http://levien.com/type/myfonts/inconsolata.html)

%files -n nerd-inconsolatago-fonts -f InconsolataGo.list
%license patched-fonts/InconsolataGo/Regular/OFL.txt
%doc patched-fonts/InconsolataGo/README.md
%dir %{_ttfontsdir}

%package -n nerd-inconsolatalgc-fonts
Summary:        The Inconsolata LGC Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-inconsolatalgc-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Inconsolata
LGC font, a modified version of Inconsolata with added the Cyrillic
alphabet, which directly descends from Inconsolata Hellenic
supporting modern Greek.

For more information: https://github.com/DeLaGuardo/Inconsolata-LGC

%files -n nerd-inconsolatalgc-fonts -f InconsolataLGC.list
%license patched-fonts/InconsolataGo/Regular/OFL.txt
%doc patched-fonts/InconsolataGo/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevka-fonts
Summary:        The Iosevka Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevka-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka font.
It contains Regular, Bold, Italic, Oblique, Light, Medium, and Heavy
normal (not proportional, nor monospace) fonts.

Iosevka is an open-source, sans-serif + slab-serif, monospace +
quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevka-fonts -f Iosevka.list
%license patched-fonts/Iosevka/Regular/LICENSE*
%doc patched-fonts/Iosevka/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevka-extra-fonts
Summary:        The Iosevka Extra Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevka-extra-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka font.
It contains extra-weight fonts (and not proportional, nor monospace)
not found in the non-extra package.


Iosevka is an open-source, sans-serif + slab-serif, monospace +
quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevka-extra-fonts -f Iosevka-Extra.list
%license patched-fonts/Iosevka/Regular/LICENSE*
%doc patched-fonts/Iosevka/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevka-mono-fonts
Summary:        The Iosevka Mono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevka-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka font.
It contains Regular, Bold, Italic, Oblique, Light, Medium, and Heavy
monospace fonts.

Iosevka is an open-source, sans-serif + slab-serif, monospace +
quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevka-mono-fonts -f Iosevka-Mono.list
%license patched-fonts/Iosevka/Regular/LICENSE*
%doc patched-fonts/Iosevka/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevka-mono-extra-fonts
Summary:        The Iosevka Mono Extra Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevka-mono-extra-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka font.
It contains extra-weight monospace fonts not found in the non-extra
package.

Iosevka is an open-source, sans-serif + slab-serif, monospace +
quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevka-mono-extra-fonts -f Iosevka-Mono-Extra.list
%license patched-fonts/Iosevka/Regular/LICENSE*
%doc patched-fonts/Iosevka/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevka-propo-fonts
Summary:        The Iosevka Propo Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevka-propo-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka font.
It contains Regular, Bold, Italic, Oblique, Light, Medium, and Heavy
proportional fonts.

Iosevka is an open-source, sans-serif + slab-serif, monospace +
quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevka-propo-fonts -f Iosevka-Propo.list
%license patched-fonts/Iosevka/Regular/LICENSE*
%doc patched-fonts/Iosevka/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevka-propo-extra-fonts
Summary:        The Iosevka Propo Extra Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevka-propo-extra-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka
font. It contains extra-weight proportional fonts not found in
the non-extra package.

Iosevka is an open-source, sans-serif + slab-serif, monospace +
quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevka-propo-extra-fonts -f Iosevka-Propo-Extra.list
%license patched-fonts/Iosevka/Regular/LICENSE*
%doc patched-fonts/Iosevka/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevkaterm-fonts
Summary:        The Iosevka Term Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevkaterm-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka Term
font. It contains Regular, Bold, Italic, Oblique, Light, Medium,
and Heavy normal (not proportional, nor monospace) fonts.

Iosevka Term is an open-source, sans-serif + slab-serif, monospace
+ quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevkaterm-fonts -f IosevkaTerm.list
%license patched-fonts/IosevkaTerm/Regular/LICENSE*
%doc patched-fonts/IosevkaTerm/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevkaterm-extra-fonts
Summary:        The Iosevka Term Extra Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevkaterm-extra-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka Term
font. It contains extra-weight fonts (and not proportional, nor
monospace) not found in the non-extra package.

Iosevka Term is an open-source, sans-serif + slab-serif, monospace
+ quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevkaterm-extra-fonts -f IosevkaTerm-Extra.list
%license patched-fonts/IosevkaTerm/Regular/LICENSE*
%doc patched-fonts/IosevkaTerm/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevkaterm-mono-fonts
Summary:        The Iosevka Term Mono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevkaterm-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka Term
font. It contains Regular, Bold, Italic, Oblique, Light, Medium,
and Heavy monospace fonts.

Iosevka Term is an open-source, sans-serif + slab-serif, monospace
+ quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevkaterm-mono-fonts -f IosevkaTerm-Mono.list
%license patched-fonts/IosevkaTerm/Regular/LICENSE*
%doc patched-fonts/IosevkaTerm/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevkaterm-mono-extra-fonts
Summary:        The Iosevka Term Mono Extra Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevkaterm-mono-extra-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka Term
font. It contains extra-weight monospace fonts not found in the
non-extra package.

Iosevka Term is an open-source, sans-serif + slab-serif, monospace
+ quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevkaterm-mono-extra-fonts -f IosevkaTerm-Mono-Extra.list
%license patched-fonts/IosevkaTerm/Regular/LICENSE*
%doc patched-fonts/IosevkaTerm/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevkaterm-propo-fonts
Summary:        The Iosevka Term Propo Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevkaterm-propo-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka Term
font. It contains Regular, Bold, Italic, Oblique, Light, Medium,
and Heavy proportional fonts.

Iosevka Term is an open-source, sans-serif + slab-serif, monospace
+ quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevkaterm-propo-fonts -f IosevkaTerm-Propo.list
%license patched-fonts/IosevkaTerm/Regular/LICENSE*
%doc patched-fonts/IosevkaTerm/README.md
%dir %{_ttfontsdir}

%package -n nerd-iosevkaterm-propo-extra-fonts
Summary:        The Iosevka Term Propo Extra Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-iosevkaterm-propo-extra-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Iosevka Term
font. It contains extra-weight proportional fonts not found in the
non-extra package.

Iosevka Term is an open-source, sans-serif + slab-serif, monospace
+ quasi‑proportional typeface family, designed for writing code,
using in terminals, and preparing technical documents.

For more information: https://github.com/be5invis/Iosevka

%files -n nerd-iosevkaterm-propo-extra-fonts -f IosevkaTerm-Propo-Extra.list
%license patched-fonts/IosevkaTerm/Regular/LICENSE*
%doc patched-fonts/IosevkaTerm/README.md
%dir %{_ttfontsdir}

%package -n nerd-jetbrains-mono-fonts
Summary:        The JetBrains Mono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-jetbrains-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the JetBrains
Mono font, a typeface made for developers.

For more information: https://github.com/JetBrains/JetBrainsMono

%files -n nerd-jetbrains-mono-fonts -f JetBrainsMono.list
%license patched-fonts/JetBrainsMono/Ligatures/Regular/OFL.txt
%doc patched-fonts/JetBrainsMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-lekton-fonts
Summary:        The Lekton Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-lekton-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Lekton, a font
that has been designed at ISIA Urbino, Italy, and is inspired by
some of the typefaces used on the Olivetti typewriters.

The "fi" and "fl" ligatures have been removed because the map to
only one advance width.

For more information: https://fonts.google.com/specimen/Lekton

%files -n nerd-lekton-fonts -f Lekton.list
%license patched-fonts/Lekton/Regular/SIL_Open_Font_License.txt
%doc patched-fonts/Lekton/README.md
%dir %{_ttfontsdir}

%package -n nerd-literation-mono-fonts
Summary:        The Literation Mono Nerd Font, based on Liberation
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-literation-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Literation Mono Nerd Font, based on the
Liberation (TM) fonts, a font family which aims at metric
compatibility with Arial, Times New Roman, and Courier New.

For more information:
  https://github.com/liberationfonts/liberation-fonts

%files -n nerd-literation-mono-fonts -f LiberationMono.list
%license patched-fonts/LiberationMono/LICENSE*
%doc patched-fonts/LiberationMono/README.md
%dir %{_ttfontsdir}

%dnl %package -n nerd-literationsans-fonts
%dnl Summary:        The Literation Sans Nerd Font, based on Liberation
%dnl License:        OFL-1.1-no-RFN
%dnl BuildArch:      noarch

%dnl %description -n nerd-literationsans-fonts
%dnl Nerd Fonts is a project that patches developer targeted fonts with
%dnl a high number of glyphs (icons). Specifically to add a high number
%dnl of extra glyphs from popular 'iconic fonts' such as Font Awesome,
%dnl Devicons, Octicons, Hack, Source Code Pro and others.

%dnl This package provides the Literation Sans Nerd Font, based on the
%dnl Liberation font.

%dnl %files -n nerd-literationsans-fonts -f LiberationSans.list
%dnl %license patched-fonts/LiberationMono/LICENSE*
%dnl %doc patched-fonts/LiberationMono/README.md
%dnl %dir %{_ttfontsdir}

%dnl %package -n nerd-literationserif-fonts
%dnl Summary:        The Literation Serif Nerd Font, based on Liberation
%dnl License:        OFL-1.1-no-RFN
%dnl BuildArch:      noarch

%dnl %description -n nerd-literationserif-fonts
%dnl Nerd Fonts is a project that patches developer targeted fonts with
%dnl a high number of glyphs (icons). Specifically to add a high number
%dnl of extra glyphs from popular 'iconic fonts' such as Font Awesome,
%dnl Devicons, Octicons, Hack, Source Code Pro and others.

%dnl This package provides the Literation Serif Nerd Font, based on the
%dnl Liberation font.

%dnl %files -n nerd-literationserif-fonts -f LiberationSerif.list
%dnl %license patched-fonts/LiberationMono/LICENSE*
%dnl %doc patched-fonts/LiberationMono/README.md
%dnl %dir %{_ttfontsdir}

%package -n nerd-lilex-fonts
Summary:        The Lilex Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-lilex-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Lilex, an open
source programming font.

For more information: https://github.com/mishamyrt/Lilex

%files -n nerd-lilex-fonts -f Lilex.list
%license patched-fonts/Lilex/Regular/LICENSE*
%doc patched-fonts/Lilex/README.md
%dir %{_ttfontsdir}

%package -n nerd-meslo-fonts
Summary:        The Meslo LG Nerd Font
License:        Apache-2.0
BuildArch:      noarch

%description -n nerd-meslo-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Meslo LG, a
customized version of Apple’s Menlo-Regular font (which is a
customized Bitstream Vera Sans Mono). A patched version, by opeik
(https://github.com/opeik) has been used here.

For more information: https://github.com/andreberg/Meslo-Font

%files -n nerd-meslo-fonts -f Meslo.list
%license patched-fonts/Meslo/M/Regular/LICENSE*
%doc patched-fonts/Meslo/README.md
%dir %{_ttfontsdir}

%package -n nerd-monofur-fonts
Summary:        The Monofur Nerd Font
License:        SUSE-Freeware
BuildArch:      noarch

%description -n nerd-monofur-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Monofur, a
monospaced geometric rounded sans serif font based on the
eurofurence typeface family. Designed by Tobias B. Koehler.

%files -n nerd-monofur-fonts -f Monofur.list
%license patched-fonts/Monofur/Regular/LICENSE*
%doc patched-fonts/Monofur/README.md
%dir %{_ttfontsdir}

%package -n nerd-monoid-fonts
Summary:        The Monoid Nerd Font
License:        MIT
BuildArch:      noarch

%description -n nerd-monoid-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Monoid, a
customisable coding font with alternates, ligatures and contextual
positioning. Crazy crisp at 12px/9pt.

For more information:
  https://larsenwork.com/monoid/ and
  https://github.com/larsenwork/monoid


%files -n nerd-monoid-fonts -f Monoid.list
%license patched-fonts/Monoid/Regular/LICENSE*
%doc patched-fonts/Monoid/README.md
%dir %{_ttfontsdir}

%package -n nerd-mononoki-fonts
Summary:        The Mononoki Nerd Font
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-mononoki-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Mononoki Nerd Font, based on Mononoki, a
font for programming and code review.

For more information: https://github.com/madmalik/mononoki

%files -n nerd-mononoki-fonts -f Mononoki.list
%license patched-fonts/Mononoki/Regular/LICENSE*
%doc patched-fonts/Mononoki/README.md
%dir %{_ttfontsdir}

%package -n nerd-mplus-fonts
Summary:        The M+ (M Plus) Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-mplus-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides non-code patched Nerd Fonts based on M+
(MPlus), a little nifty font family for everyday use.

For more information: https://github.com/coz-m/MPLUS_FONTS

%files -n nerd-mplus-fonts -f MPlus.list
%license patched-fonts/MPlus/M_Plus_1/OFL.txt
%doc patched-fonts/MPlus/README.md
%dir %{_ttfontsdir}

%package -n nerd-mplus-code-fonts
Summary:        The M+ (MPlus) Code Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-mplus-code-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides code patched Nerd Fonts based on M+ (MPlus),
a little nifty font family for everyday use.

For more information: https://github.com/coz-m/MPLUS_FONTS

%files -n nerd-mplus-code-fonts -f MPlus-Code.list
%license patched-fonts/MPlus/M_Plus_1_code/OFL.txt
%doc patched-fonts/MPlus/README.md
%dir %{_ttfontsdir}

%package -n nerd-noto-mono-fonts
Summary:        The Noto Mono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-noto-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides Mono patched Nerd Fonts based on the Noto
font, its goal is to provide a beautiful reading experience for
all languages.

The Noto Mono is an ancient font, nowadays the equivalent is Noto
Sans Mono. And the "ldot" ligatures have been removed because the
map to only one advance width.

For mor information: https://fonts.google.com/noto

%files -n nerd-noto-mono-fonts -f Noto-Mono.list
%license patched-fonts/Noto/Mono/LICENSE_OFL.txt
%doc patched-fonts/Noto/README.md
%dir %{_ttfontsdir}

%package -n nerd-noto-sans-fonts
Summary:        The Noto Sans Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-noto-sans-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides Sans patched Nerd Fonts based on the Noto
font, its goal is to provide a beautiful reading experience for
all languages.

The "ldot" ligatures have been removed because the map to only one
advance width.

For mor information: https://fonts.google.com/noto

%files -n nerd-noto-sans-fonts -f Noto-Sans.list
%license patched-fonts/Noto/Sans/LICENSE_OFL.txt
%doc patched-fonts/Noto/README.md
%dir %{_ttfontsdir}

%package -n nerd-noto-sansmono-fonts
Summary:        The Noto Sans-Mono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-noto-sansmono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides Sans Mono patched Nerd Fonts based on the
Noto font, its goal is to provide a beautiful reading experience
for all languages.

The "ldot" ligatures have been removed because the map to only one
advance width.

For mor information: https://fonts.google.com/noto

%files -n nerd-noto-sansmono-fonts -f Noto-Sans-Mono.list
%license patched-fonts/Noto/Sans-Mono/LICENSE_OFL.txt
%doc patched-fonts/Noto/README.md
%dir %{_ttfontsdir}

%package -n nerd-noto-serif-fonts
Summary:        The Noto Serif Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-noto-serif-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides Serif patched Nerd Fonts based on the Noto
font, its goal is to provide a beautiful reading experience for
all languages.

The Noto Mono is an ancient font, nowadays the equivalent is Noto
Sans Mono. And the "ldot" ligatures have been removed because the
map to only one advance width.

For mor information: https://fonts.google.com/noto

%files -n nerd-noto-serif-fonts -f Noto-Serif.list
%license patched-fonts/Noto/Serif/LICENSE_OFL.txt
%doc patched-fonts/Noto/README.md
%dir %{_ttfontsdir}

%package -n nerd-opendyslexic-fonts
Summary:        The OpenDyslexic Nerd Font
License:        Bitstream-Vera
BuildArch:      noarch

%description -n nerd-opendyslexic-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on OpenDyslexic, a
typeface that uses typeface shapes & features to help offset some
visual symptoms of Dyslexia.

The "ldot" ligatures has been removed because the map to only one
advance width.

For more information:
  https://opendyslexic.org and
  https://github.com/antijingoist/opendyslexic

%files -n nerd-opendyslexic-fonts -f OpenDyslexic.list
%license patched-fonts/OpenDyslexic/Regular/LICENSE*
%doc patched-fonts/OpenDyslexic/README.md
%dir %{_ttfontsdir}

%package -n nerd-overpass-fonts
Summary:        The Overpass Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-overpass-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Overpass, an open
source web font family.

The "fi", "fl", and "ldot" ligatures have been removed because the
map to only one advance width.

For more information: https://github.com/RedHatOfficial/Overpass

%files -n nerd-overpass-fonts -f Overpass.list
%license patched-fonts/Overpass/Mono/Regular/LICENSE*
%doc patched-fonts/Overpass/Mono/README.md
%dir %{_ttfontsdir}

%package -n nerd-profont-fonts
Summary:        The ProFont Nerd Font
License:        MIT
BuildArch:      noarch

%description -n nerd-profont-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the ProFont
TrueType, and has been converted to Windows TrueType format
by Mike Smith, with some tweaks added by "ardu".

Modifications include:
  - An Euro character;
  - Missing characters from the Latin 1 code page;
  - Full support for CodePage 850. These are mostly the famous
    block/box characters you know from DOS. Very useful if you
    use Mightnight Commander through PuTTY;
  - Fixed metrics so that point size of 9 works correctly. Until
    now you had to select 7 to obtain the native point size of 9;
  - Added some quick&dirty hinting for point size of 9. Most
    characters now match closely the look of the bitmap version.
    Don't expect it to look good on anything else than Windows...

For more information: http://tobiasjung.name/profont

%files -n nerd-profont-fonts -f ProFont.list
%license patched-fonts/ProFont/profontiix/LICENSE*
%doc patched-fonts/ProFont/README.md
%dir %{_ttfontsdir}

%package -n nerd-proggyclean-fonts
Summary:        The ProggyClean Nerd Font
License:        MIT
BuildArch:      noarch

%description -n nerd-proggyclean-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on ProggyClean. This
font is rather old and there seems to be a 2019 update named Proggy
Vector. But is there any interest?

The ProggyClean.ttf contains the Latin-1 character set (thought to
be ISO 8859-1). And the ProggyCleanCE.ttf can be used for the Czech
language, but it's assumed to be just Latin-2.

For more information:
  http://www.proggyfonts.net and
  https://github.com/bluescan/proggyfonts

%files -n nerd-proggyclean-fonts -f ProggyClean.list
%license patched-fonts/ProggyClean/Regular/Licence.txt
%doc patched-fonts/ProggyClean/README.md
%dir %{_ttfontsdir}

%package -n nerd-roboto-mono-fonts
Summary:        The Roboto Mono Nerd Font
License:        Apache-2.0
BuildArch:      noarch

%description -n nerd-roboto-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Roboto Mono
font.

For more information: https://github.com/googlefonts/RobotoMono

%files -n nerd-roboto-mono-fonts -f RobotoMono.list
%license patched-fonts/RobotoMono/Regular/LICENSE.txt
%doc patched-fonts/RobotoMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-saucecodepro-fonts
Summary:        The Sauce Code Pro Nerd Font, based on Source Code Pro
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-saucecodepro-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Sauce Code Pro Nerd Font. It's based on
Source Code Pro, a set of OpenType fonts that have been designed
to work well in user interface (UI) environments.

For more information:
  https://github.com/adobe-fonts/source-code-pro

%files -n nerd-saucecodepro-fonts -f SourceCodePro.list
%license patched-fonts/SourceCodePro/Regular/LICENSE.txt
%doc patched-fonts/SourceCodePro/README.md
%dir %{_ttfontsdir}

%package -n nerd-shuretech-mono-fonts
Summary:        The Shure Tech Mono Nerd Font, based on Share Tech Mono
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-shuretech-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Shure Tech Mono Nerd Font, based on the
Share Tech Mono font.

For more information:
  https://fonts.google.com/specimen/Share+Tech+Mono

%files -n nerd-shuretech-mono-fonts -f ShareTechMono.list
%license patched-fonts/ShareTechMono/OFL.txt
%doc patched-fonts/ShareTechMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-space-mono-fonts
Summary:        The Space Mono Nerd Font
License:        OFL-1.1-no-RFN
BuildArch:      noarch

%description -n nerd-space-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Space Mono, an
original fixed-width type family designed by Colophon Foundry for
Google Design.

For more information: https://fonts.google.com/specimen/Space+Mono

The "fi" and "fl" ligatures are removed because the map to only one
advance width.

%files -n nerd-space-mono-fonts -f SpaceMono.list
%license patched-fonts/SpaceMono/Regular/OFL.txt
%doc patched-fonts/SpaceMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-symbolsonly-fonts
Summary:        The Symbols Only Nerd Font
License:        Apache-2.0 AND CC-BY-4.0 AND MIT AND OFL-1.1-no-RFN AND SUSE-Freeware
BuildArch:      noarch

%description -n nerd-symbolsonly-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Symbols Only Nerd Fonts. It contains all
symbols used by Nerd Fonts and is intended to be used as fallback
or together with fontconfig - so that you do not need to individually
patch all the fonts. You're mileage may vary, though.

%files -n nerd-symbolsonly-fonts  -f NerdFontsSymbolsOnly.list
%license patched-fonts/SpaceMono/Regular/OFL.txt
%doc patched-fonts/SpaceMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-terminess-fonts
Summary:        The Terminess Nerd Font, based on Terminus
License:        OFL-1.1-RFN
BuildArch:      noarch

%description -n nerd-terminess-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides the Terminess Nerd Font, based on Terminus
TTF, which is a TrueType version of Terminus Font, a fixed-width
bitmap font optimized for long work with computers.

For more information:
  https://terminus-font.sourceforge.net and
  https://files.ax86.net/terminus-ttf

%files -n nerd-terminess-fonts -f Terminus.list
%license patched-fonts/Terminus/Regular/LICENSE*
%doc patched-fonts/Terminus/README.md
%dir %{_ttfontsdir}

%package -n nerd-tinos-fonts
Summary:        The Tinos Nerd Font
License:        Apache-2.0
BuildArch:      noarch

%description -n nerd-tinos-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Tinos font.

It was designed by Steve Matteson as an innovative, refreshing
serif design that is metrically compatible with Times New Roman
(TM). Tinos offers improved on-screen readability characteristics
and the pan-European WGL character set and solves the needs of
developers looking for width-compatible fonts to address document
portability across platforms.

For more information: https://fonts.google.com/specimen/Tinos

%files -n nerd-tinos-fonts -f Tinos.list
%license patched-fonts/Tinos/Regular/Apache_License.txt
%doc patched-fonts/Tinos/README.md
%dir %{_ttfontsdir}

%package -n nerd-ubuntu-fonts
Summary:        The Ubuntu Nerd Font
License:        SUSE-Ubuntu-Font-License-1.0
BuildArch:      noarch

%description -n nerd-ubuntu-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on the Ubuntu Font
Family, which are a set of matching new libre/open fonts in
development during 2010-2011. And with further expansion work and
bug fixing during 2015.

The technical font design work and implementation is being
undertaken by Dalton Maag.

For more information: http://font.ubuntu.com

%files -n nerd-ubuntu-fonts -f Ubuntu.list
%license patched-fonts/Ubuntu/Regular/LICENCE*
%doc patched-fonts/Ubuntu/README.md
%dir %{_ttfontsdir}

%package -n nerd-ubuntu-mono-fonts
Summary:        The Ubuntu Mono Nerd Font
License:        SUSE-Ubuntu-Font-License-1.0
BuildArch:      noarch

%description -n nerd-ubuntu-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides Mono patched Nerd Fonts based on the Ubuntu
Font Family, which are a set of matching new libre/open fonts in
development during 2010-2011. And with further expansion work and
bug fixing during 2015.

The technical font design work and implementation is being
undertaken by Dalton Maag.

For more information: http://font.ubuntu.com

%files -n nerd-ubuntu-mono-fonts -f UbuntuMono.list
%license patched-fonts/UbuntuMono/Regular/LICENCE*
%doc patched-fonts/UbuntuMono/README.md
%dir %{_ttfontsdir}

%package -n nerd-victor-mono-fonts
Summary:        The Victor Mono Nerd Font
License:        MIT
BuildArch:      noarch

%description -n nerd-victor-mono-fonts
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides patched Nerd Fonts based on Victor Mono, a
programming font with semi-connected cursive italics and symbol
ligatures.

For more information: https://rubjo.github.io/victor-mono

%files -n nerd-victor-mono-fonts -f VictorMono.list
%license patched-fonts/VictorMono/Regular/LICENSE*
%doc patched-fonts/VictorMono/README.md
%dir %{_ttfontsdir}

# <<< Keep font sub-packages in alphabetical order <<<

%package font-patcher
Summary:        Nerd Fonts' font patcher
# license-audit file states that Powerline Symbols is under Free License.
# However, raw.githubusercontent.com/powerline/powerline/develop/LICENSE shows
# it actually is under MIT's, and so does
# src/glyphs/powerline-symbols/LICENSE.txt
License:        CC-BY-SA-4.0 AND OFL-1.1 AND MIT AND Apache-2.0 and Unlicense
BuildArch:      noarch
Requires:       fontforge
Requires:       python3-base

%description font-patcher
Nerd Fonts is a project that patches developer targeted fonts with
a high number of glyphs (icons). Specifically to add a high number
of extra glyphs from popular 'iconic fonts' such as Font Awesome,
Devicons, Octicons, Hack, Source Code Pro and others.

This package provides Nerd Fonts' font patcher, a tool to help you
make your own Nerd Font by patching the additional glyphs to a
given font.

%files font-patcher
%license LICENSE
%doc readme.md license-audit.md
%{_datadir}/%{name}/FontPatcher.zip
# src/glyphs/octicons/LICENSE
# src/glyphs/font-awesome/LICENSE.txt
# src/glyphs/codicons/LICENSE.txt
# src/glyphs/materialdesign/LICENSE
# src/glyphs/powerline-symbols/LICENSE.txt
%dir %{_datadir}/%{name}

%prep
%autosetup -p1

#
# Replace spaces with underscore in file names
#
find patched-fonts/* -type f -name '* *' -exec rename -a ' ' '_' '{}' \;

#
# Fix installation directory
#
sed -i -r 's,( +font_dir)=("\$\{usr_font_dir}"),\1=%{buildroot}'\
'%{_ttfontsdir},' install.sh

#
# No need to keep ProFont's Windows fonts around
#
rm -rf patched-fonts/ProFont/ProFontWinTweaked/

%build
# Nothing to be done here.

%install
./install.sh --quiet
./install.sh --quiet --use-single-width-glyphs
./install.sh --quiet --use-proportional-glyphs

##
## Font Patcher
##

install -v -m 644 -D -t %{buildroot}%{_datadir}/%{name} FontPatcher.zip

##
## Make README and LICENSE files friendlier
##

# for file in $(ls -1d *.md); do
#     pandoc -f gmf -t html -o ${file}.html
#     pandoc -f gmf -t plain -o ${file}.txt
# done

## Fix naming scheme (upstream)
# AurulentSansMNerdFont-Regular.otf -> AurulentSansMonoNerdFont-Regular.otf
# DejaVuSansMNerdFont-Regular.ttf -> DejaVuSansMonoNerdFont-Regular.ttf
# DroidSansMNerdFont-Regular.otf -> DroidSansMonoNerdFont-Regular.otf

##
## Install NerdFontsSymbolsOnly
##

install -v -m 644 patched-fonts/NerdFontsSymbolsOnly/*.[ot]tf \
-D -t %{buildroot}%{_ttfontsdir}

##
## Iterate through the folders under patched-fonts directory to generate a list
## of fonts per folder, allowing us to split each of them to their respective
## installation directories (AKA packages)
##

for dir in $(ls -1d patched-fonts/*); do
    find ${dir} -type f -name '*.[ot]tf' > $(basename ${dir}).list
done

###
### Extra package splitting. Necessary to keep package size reasonable.
###

##
## Iosevka(Term)
##

# Iosevka (Term) have many extra weight fonts, making their final package a
# *bit* huge (around 167 MB). So, let's split them in two ways:
#   1) They have normal, mono and proportional "variants". We can use: iosevka,
#      iosevka-mono and iosevka-propo
#   2) As mentioned above, they have many extra weight, such as: Extra-Bold,
#      Extra-Light, Extra-Italic, Extra-Oblique, Extra-Light*, Semi-*, Thin*
#      and so on. We can bundle them all together in iosevka-mono-extra,
#      iosevka-extra, and iosevka-propo-extra.

# Italic Oblique Regular
# Bold Bold-Italic Bold-Oblique
# Heavy Heavy-Italic Heavy-Oblique
# Medium Medium-Italic Medium-Oblique
# Light Light-Italic Light-Oblique

# Semi-Bold Semi-Bold-Italic Semi-Bold-Oblique
# Thin Thin-Italic Thin-Oblique
# Extra-Bold Extra-Bold-Oblique Extra-Bold-Italic
# Extra-Light Extra-Light-Italic Extra-Light-Oblique

rm Iosevka.list
# Bold, Italic, Oblique and Regular:
iosevka_dirs="$(
    find patched-fonts/Iosevka/* -maxdepth 0 -type d \( \
        -name Bold\*   -or \
        -name Heavy\*  -or \
        -name Italic   -or \
        -name Light\*  -or \
        -name Medium\* -or \
        -name Oblique  -or \
        -name Regular      \
    \)
)"
# Extra weights:
iosevka_extra_dirs="$(
    find patched-fonts/Iosevka/* -maxdepth 0 -type d \( \
        ! -name Bold\*   -and \
        ! -name Heavy\*  -and \
        ! -name Italic   -and \
        ! -name Light\*  -and \
        ! -name Medium\* -and \
        ! -name Oblique  -and \
        ! -name Regular       \
    \)
)"

for subdir in "${iosevka_dirs}"; do
    find ${subdir}/* -type f -name IosevkaNerdFont-*.ttf \
        > Iosevka.list
    find ${subdir}/* -type f -name IosevkaNerdFontMono-*.ttf \
        > Iosevka-Mono.list
    find ${subdir}/* -type f -name IosevkaNerdFontPropo-*.ttf \
        > Iosevka-Propo.list
done

for subdir in "${iosevka_extra_dirs}"; do
    find ${subdir}/* -type f -name IosevkaNerdFont-*.ttf \
        > Iosevka-Extra.list
    find ${subdir}/* -type f -name IosevkaNerdFontMono-*.ttf \
        > Iosevka-Mono-Extra.list
    find ${subdir}/* -type f -name IosevkaNerdFontPropo-*.ttf \
        > Iosevka-Propo-Extra.list
done

# Bold, Italic, Oblique and Regular:
iosevkaterm_dirs="$(
    find patched-fonts/IosevkaTerm/* -maxdepth 0 -type d \( \
        -name Bold\*   -or \
        -name Heavy\*  -or \
        -name Italic   -or \
        -name Light\*  -or \
        -name Medium\* -or \
        -name Oblique  -or \
        -name Regular      \
    \)
)"
# Extra weights:
iosevkaterm_extra_dirs="$(
    find patched-fonts/IosevkaTerm/* -maxdepth 0 -type d \( \
        ! -name Bold\*   -and \
        ! -name Heavy\*  -and \
        ! -name Italic   -and \
        ! -name Light\*  -and \
        ! -name Medium\* -and \
        ! -name Oblique  -and \
        ! -name Regular       \
    \)
)"

for subdir in "${iosevkaterm_dirs}"; do
    find ${subdir}/* -type f -name IosevkaTermNerdFont-*.ttf \
        > IosevkaTerm.list
    find ${subdir}/* -type f -name IosevkaTermNerdFontMono-*.ttf \
        > IosevkaTerm-Mono.list
    find ${subdir}/* -type f -name IosevkaTermNerdFontPropo-*.ttf \
        > IosevkaTerm-Propo.list
done

for subdir in "${iosevkaterm_extra_dirs}"; do
    find ${subdir}/* -type f -name IosevkaTermNerdFont-*.ttf \
        > IosevkaTerm-Extra.list
    find ${subdir}/* -type f -name IosevkaTermNerdFontMono-*.ttf \
        > IosevkaTerm-Mono-Extra.list
    find ${subdir}/* -type f -name IosevkaTermNerdFontPropo-*.ttf \
        > IosevkaTerm-Propo-Extra.list
done

##
## LiberationMono
##

# LiterationMono, LiterationSans and LiterationSerif currently live under the
# same folder. So, LiberationMono.list endups up including all of them.
# But we want to split them to their own package.
#

## rm LiberationMono.list
## # A simple iteration through the font variants is enough here.
## for variant in Mono Sans Serif; do
##     find patched-fonts/LiberationMono/* -type f \
##         -name "Literation${variant}*.[ot]tf" > Liberation${variant}.list
## done

##
## M Plus
##

# Let's separate code and non-code M+ fonts.

rm MPlus.list
mplus_subdirs="
    1
    1_code
    2
    code_latin
    code_latin_expanded
"

for dir in ${mplus_subdirs}; do
    case "${dir}" in
        *code*)
            find patched-fonts/MPlus/M_Plus_${dir}/* -type f \
                -name "M+*NerdFont*.[ot]tf" >> MPlus-Code.list
            ;;
        *)
            find patched-fonts/MPlus/M_Plus_${dir}/* -type f \
                -name "M+*NerdFont*.[ot]tf" >> MPlus.list
            ;;
    esac
done

##
## Noto
##

# Noto fonts have Mono, Sans, Sans-Mono and Serif variants, which makes a
# single package large (around 80 MB).

rm Noto.list
# Iterate through the sub-directories, allowing FIND to filter the output.
for variant in Mono Sans Sans-Mono Serif; do
    # Little voodoo to match Sans-Mono directory name and SansM font name
    if [[ ${variant} = Sans-Mono ]]; then
        sansm_variant=${variant}
        sansm_name=SansM
        unset variant
    fi

    find patched-fonts/Noto/${variant:-${sansm_variant}}/* -type f \
        -name "Noto${variant:-${sansm_name}}NerdFont*.[ot]tf" \
            > Noto-${variant:-${sansm_variant}}.list
done

##
## Prepend _ttfontsdir for every font file after stripping the path injected by
## the FIND command call
##
##

sed -i -e 's:.*/::' -e 's:^:%{_ttfontsdir}/:' *.list

%files
%license LICENSE
%doc changelog.md readme.md license-audit.md
%dir %{_ttfontsdir}

%changelog
openSUSE Build Service is sponsored by