Dernière activité 1765816268

RPM specfiles for Atkinson Hyperlegible Fedora packages

Révision fd700f8d07ceba1fa50d104a01d3a54a59665dad

atkinson-hyperlegible-mono.spec Brut
1# SPDX-License-Identifier: MIT
2
3%global commit 154d50362016cc3e873eb21d242cd0772384c8f9
4%global shortcommit %{sub %{commit} 1 7}
5%global commitdate 20241120
6%global fontname atkinson-hyperlegible-mono
7%global fontconf 64-%{fontname}
8
9%global common_desc %{expand:
10Atkinson Hyperlegible Mono is an entirely new typeface inspired by the Atkinson
11Hyperlegible font. The monospaced font features characters that each occupy the
12same amount of horizontal space, allowing for them to be scanned quickly in
13table-based and coding environments.
14}
15
16
17Name: %{fontname}-fonts
18Version: 2.100
19Release: %autorelease
20Summary: Monospace typeface made for legibility and comprehension with low-vision
21License: OFL-1.1
22URL: https://www.brailleinstitute.org/freefont/
23
24Source0: https://github.com/googlefonts/atkinson-hyperlegible-next-mono/archive/%{shortcommit}.tar.gz
25Source1: %{fontconf}.xml
26
27BuildArch: noarch
28BuildRequires: fontpackages-devel
29
30%global fontlicense OFL
31%global fontlicenses atkinson-hyperlegible-next-mono-%{commit}/OFL.txt
32
33Requires: %{name}-common = %{version}-%{release}
34
35%description
36%common_desc
37
38
39%package common
40Summary: Common files of %{name}
41Requires: fontpackages-filesystem
42
43%description common
44%common_desc
45
46This package consists of files used by other %{name} packages.
47
48
49%prep
50%setup -n atkinson-hyperlegible-next-mono-%{commit}
51
52%build
53
54%install
55install -m 0755 -d %{buildroot}%{_fontdir}
56install -m 0644 -p fonts/otf/*.otf %{buildroot}%{_fontdir}
57
58install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
59install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.xml
60
61for fconf in %{fontconf}.xml ; do
62 ln -s %{_fontconfig_templatedir}/$fconf \
63 %{buildroot}%{_fontconfig_confdir}/$fconf
64done
65
66%_font_pkg -f %{fontconf}.xml AtkinsonHyperlegibleMono-*.otf
67
68%check
69%fontcheck -a
70
71%fontfiles -a
72
73%files common
74%doc DESCRIPTION.en_us.html %{fontname}-%{version}/DESCRIPTION.en_us.html
75
76
77%changelog
78%autochangelog
atkinson-hyperlegible-next.spec Brut
1# SPDX-License-Identifier: MIT
2
3%global commit 7925f50f649b3813257faf2f4c0b381011f434f1
4%global shortcommit %{sub %{commit} 1 7}
5%global commitdate 20250222
6%global fontname atkinson-hyperlegible-next
7%global fontconf 64-%{fontname}
8
9%global common_desc %{expand:
10Atkinson Hyperlegible is a uniquely accessible typeface created by Braille
11Institute of America. It has been developed specifically to increase legibility
12for readers with low vision, and to improve comprehension.
13
14Atkinson Hyperlegible Next, a refined version of Atkinson Hyperlegible,
15improves on the original in every way. It features new weights, improved
16kerning, refined curves, added symbols, and additional language support.
17}
18
19
20Name: %{fontname}-fonts
21Version: 2.100
22Release: %autorelease
23Summary: Second-gen font family made for legibility and comprehension with low-vision
24License: OFL-1.1
25URL: https://www.brailleinstitute.org/freefont/
26
27Source0: https://github.com/googlefonts/%{fontname}/archive/%{shortcommit}.tar.gz
28Source1: %{fontconf}.xml
29
30BuildArch: noarch
31BuildRequires: fontpackages-devel
32
33%global fontlicense OFL
34%global fontlicenses %{fontname}-%{commit}/OFL.txt
35
36Requires: %{name}-common = %{version}-%{release}
37
38%description
39%common_desc
40
41
42%package common
43Summary: Common files of %{name}
44Requires: fontpackages-filesystem
45
46%description common
47%common_desc
48
49This package consists of files used by other %{name} packages.
50
51
52%prep
53%setup -n %{fontname}-%{commit}
54
55%build
56
57%install
58install -m 0755 -d %{buildroot}%{_fontdir}
59install -m 0644 -p fonts/otf/*.otf %{buildroot}%{_fontdir}
60
61install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
62install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.xml
63
64for fconf in %{fontconf}.xml ; do
65 ln -s %{_fontconfig_templatedir}/$fconf \
66 %{buildroot}%{_fontconfig_confdir}/$fconf
67done
68
69%_font_pkg -f %{fontconf}.xml AtkinsonHyperlegibleNext-*.otf
70
71%check
72%fontcheck -a
73
74%fontfiles -a
75
76%files common
77%doc DESCRIPTION.en_us.html %{fontname}-%{version}/DESCRIPTION.en_us.html
78
79
80%changelog
81%autochangelog