2020-05-13 06:03:05 +02:00
|
|
|
#
|
2020-05-15 08:12:45 +02:00
|
|
|
# spec file for package saja-cascadia-code-fonts
|
2020-05-13 06:03:05 +02:00
|
|
|
#
|
2020-05-15 08:12:45 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2020-05-13 06:03:05 +02:00
|
|
|
# Copyright (c) 2019 Xu Zhao (i@xuzhao.net).
|
|
|
|
#
|
|
|
|
# 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 fontname cascadia-code
|
2020-05-15 08:12:45 +02:00
|
|
|
Name: saja-cascadia-code-fonts
|
|
|
|
Version: 2004.30
|
|
|
|
Release: 0
|
|
|
|
Summary: Monospace terminal fonts from Microsoft
|
|
|
|
License: OFL-1.1
|
|
|
|
Group: System/X11/Fonts
|
|
|
|
URL: https://github.com/microsoft/cascadia-code
|
|
|
|
Source0: https://github.com/microsoft/cascadia-code/releases/download/v%{version}/CascadiaCode_%{version}.zip
|
|
|
|
Source1: LICENSE.txt
|
|
|
|
Source2: OFL-FAQ.txt
|
|
|
|
BuildRequires: fontpackages-devel
|
|
|
|
BuildRequires: unzip
|
2020-05-13 06:03:05 +02:00
|
|
|
%reconfigure_fonts_prereq
|
2020-05-15 08:12:45 +02:00
|
|
|
BuildArch: noarch
|
2020-05-13 06:03:05 +02:00
|
|
|
|
|
|
|
%description
|
2020-05-15 08:12:45 +02:00
|
|
|
Cascadia Code is a monospaced font that was designed also with Visual Studio / Visual Studio Code in mind.
|
2020-05-13 06:03:05 +02:00
|
|
|
|
|
|
|
%prep
|
2020-05-15 08:12:45 +02:00
|
|
|
%setup -q -n otf
|
|
|
|
cp %{S:1} .
|
|
|
|
cp %{S:2} .
|
2020-05-13 06:03:05 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_ttfontsdir}/
|
2020-05-15 08:12:45 +02:00
|
|
|
install -m 0644 *.otf %{buildroot}%{_ttfontsdir}
|
2020-05-13 06:03:05 +02:00
|
|
|
|
|
|
|
%reconfigure_fonts_scriptlets
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_ttfontsdir}/
|
|
|
|
%{_ttfontsdir}/*
|
2020-05-15 08:12:45 +02:00
|
|
|
%license OFL-FAQ.txt LICENSE.txt
|
2020-05-13 06:03:05 +02:00
|
|
|
|
|
|
|
%changelog
|