summaryrefslogtreecommitdiff
path: root/cascadia-code-nerd-fonts-mono.spec
blob: 4ec3d0c39efee2691a25dec6f0b4528aeeb2404d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Version:        3.0.2
Release:        1
URL:            https://github.com/ryanoasis/nerd-fonts
Summary:        A fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal
License:        LICENSE
Name:           cascadia-code-nerd-fonts-mono

Source0:        https://github.com/ryanoasis/nerd-fonts/releases/download/v%{version}/CascadiaCode.zip
Source1:        fontconfig.conf

Requires:       fontconfig
BuildArch:      noarch
BuildRequires:  fontpackages-devel

%description
Cascadia Code is a mono-spaced font designed to provide a fresh experience for
command line experiences and code editors. Notably, it supports programming
ligatures.

%prep
%autosetup -c
%{__rm} -vfr ./*Windows*.otf


%install
%{__install} -m 755 -d %{buildroot}%{_fontdir}
%{__install} -m 644 *.ttf %{buildroot}%{_fontdir}
%{__install} -m 755 -d %{buildroot}%{_fontconfig_templatedir}
%{__install} -m 755 -d %{buildroot}%{_fontconfig_confdir}/
%{__install} -m 644 %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/60-cascadia-code-nfm.conf
ln -fs %{_fontconfig_templatedir}/60-cascadia-code-nfm.conf %{buildroot}%{_fontconfig_confdir}/

%post
/usr/bin/fc-cache -f


%postun
/usr/bin/fc-cache -f

%files
%doc LICENSE
%doc readme.md
%dir %{_fontdir}
%{_fontdir}/*.ttf
%{_fontconfig_templatedir}/*.conf
%{_fontconfig_confdir}/*.conf


%changelog
* Sun Nov 13 2022 Astrawan Wayan <astrawan@icloud.com> - 2.2.2-1
- Initial package