File mishamyrt-lilex-fonts.spec of Package mishamyrt-lilex-fonts

#
# spec file for package mishamyrt-lilex-fonts
#
# Copyright (c) 2023 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/
#


%global desc Lilex is the modern programming font containing a set of ligatures for common\
programming multi-character combinations.
Name:           mishamyrt-lilex-fonts
Version:        2.300
Release:        0
Summary:        A programming font
License:        OFL-1.1
Group:          System/X11/Fonts
URL:            https://lilex.myrt.co/
Source0:        https://github.com/mishamyrt/Lilex/releases/download/%{version}/Lilex.zip
Source1:        https://github.com/mishamyrt/Lilex/raw/%{version}/LICENSE
Source2:        https://github.com/mishamyrt/Lilex/raw/%{version}/AUTHORS
Source3:        https://github.com/mishamyrt/Lilex/raw/%{version}/CHANGELOG.md
Source4:        https://github.com/mishamyrt/Lilex/raw/%{version}/README.md
BuildRequires:  fontpackages-devel
BuildRequires:  unzip
BuildArch:      noarch
%reconfigure_fonts_prereq

%description
%{desc}

%package -n mishamyrt-lilex-variable-fonts
Summary:        A programming font (variable version)

%description -n mishamyrt-lilex-variable-fonts
%{desc}

This package contains variable fonts.

%prep
%autosetup -c
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .

%build

%install
install -dm0755 %{buildroot}%{_ttfontsdir}
install -m0644 {ttf,variable}/*.ttf %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets

%files
%license LICENSE
%doc {CHANGELOG,README}.md AUTHORS
%dir %{_ttfontsdir}
%{_ttfontsdir}/*.ttf
%exclude %{_ttfontsdir}/*-VF.ttf

%files -n mishamyrt-lilex-variable-fonts
%license LICENSE
%doc {CHANGELOG,README}.md AUTHORS
%dir %{_ttfontsdir}
%{_ttfontsdir}/*-VF.ttf

%changelog
openSUSE Build Service is sponsored by