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