File nerd-fonts-jetbrains-mono.spec of Package nerd-fonts-jetbrainsmono
#
# spec file for package specRPM_CREATION_NAME
#
# 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: nerd-fonts-jetbrains-mono
Version: 3.3.0
Release: 0
Summary: Nerd Fonts patched JetBrains Mono font
License: MIT
Group: System/X11/Fonts
Url: https://github.com/ryanoasis/nerd-fonts
Source: https://github.com/ryanoasis/nerd-fonts/releases/download/%{version}/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