File jetbrains-mono-nerd-fonts.spec of Package jetbrains-mono-nerd-fonts

#
# spec file for package jetbrains-mono-nerd-fonts
#
# Copyright (c) 2022 SUSE LINUX 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/
#


Name:           jetbrains-mono-nerd-fonts
Version:        2.1.0 
Release:        0
Summary:        Nerd Fonts patched JetBrains Mono font
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        MIT
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          System/X11/Fonts
Url:            https://github.com/ryanoasis/nerd-fonts
Source:         JetBrainsMono.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  unzip
BuildArch: noarch

%description
Nerd Fonts patched JetBrains Mono font.

%prep
%setup -c -q


%build


%install
install -dm 0755 %{buildroot}%{_datadir}/fonts/truetype
install -Dm 0644 *.ttf %{buildroot}%{_datadir}/fonts/truetype/


%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}


%files
%defattr(-,root,root)
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/*


%post
if [ -x /usr/bin/fc-cache ]
then
    /usr/bin/fc-cache || :
fi

%postun
if [ $1 -eq 0 -a -x /usr/bin/fc-cache ]
then
    /usr/bin/fc-cache || :
fi

%changelog
openSUSE Build Service is sponsored by