jce revidoval tento gist . Přejít na revizi
1 file changed, 1 insertion, 1 deletion
atkinson-hyperlegible-mono.spec
| @@ -17,7 +17,7 @@ Version: 2.100 | |||
| 17 | 17 | Release: %autorelease | |
| 18 | 18 | URL: https://www.brailleinstitute.org/freefont/ | |
| 19 | 19 | ||
| 20 | - | Source0: https://github.com/googlefonts/%{fontname}/archive/%{shortcommit}.tar.gz | |
| 20 | + | Source0: https://github.com/googlefonts/atkinson-hyperlegible-next-mono/archive/%{shortcommit}.tar.gz | |
| 21 | 21 | Source1: 64-%{fontname}.xml | |
| 22 | 22 | ||
| 23 | 23 | BuildRequires: fontpackages-devel | |
jce revidoval tento gist . Přejít na revizi
2 files changed, 12 insertions, 17 deletions
atkinson-hyperlegible-mono.spec
| @@ -4,7 +4,6 @@ | |||
| 4 | 4 | %global shortcommit %{sub %{commit} 1 7} | |
| 5 | 5 | %global commitdate 20241120 | |
| 6 | 6 | %global fontname atkinson-hyperlegible-mono | |
| 7 | - | %global fontconf 64-%{fontname} | |
| 8 | 7 | ||
| 9 | 8 | %global fontdescription %{expand: | |
| 10 | 9 | Atkinson Hyperlegible Mono is an entirely new typeface inspired by the Atkinson | |
| @@ -19,7 +18,7 @@ Release: %autorelease | |||
| 19 | 18 | URL: https://www.brailleinstitute.org/freefont/ | |
| 20 | 19 | ||
| 21 | 20 | Source0: https://github.com/googlefonts/%{fontname}/archive/%{shortcommit}.tar.gz | |
| 22 | - | Source1: %{fontconf}.xml | |
| 21 | + | Source1: 64-%{fontname}.xml | |
| 23 | 22 | ||
| 24 | 23 | BuildRequires: fontpackages-devel | |
| 25 | 24 | ||
| @@ -29,25 +28,24 @@ BuildRequires: fontpackages-devel | |||
| 29 | 28 | %global fontlicenses OFL.txt | |
| 30 | 29 | %global fontdocs DESCRIPTION.en_us.html | |
| 31 | 30 | %global fonts fonts/otf/*.otf | |
| 32 | - | %global fontconfngs %{SOURCE1} | |
| 31 | + | %global fontconfs %{SOURCE1} | |
| 33 | 32 | ||
| 34 | - | %fontpkg -a | |
| 33 | + | %fontpkg | |
| 35 | 34 | ||
| 36 | - | %fontmetapkg | |
| 37 | 35 | ||
| 38 | 36 | %prep | |
| 39 | 37 | %setup -n atkinson-hyperlegible-next-mono-%{commit} | |
| 40 | 38 | ||
| 41 | 39 | %build | |
| 42 | - | %fontbuild -a | |
| 40 | + | %fontbuild | |
| 43 | 41 | ||
| 44 | 42 | %install | |
| 45 | 43 | %fontinstall | |
| 46 | 44 | ||
| 47 | 45 | %check | |
| 48 | - | %fontcheck -a | |
| 46 | + | %fontcheck | |
| 49 | 47 | ||
| 50 | - | %fontfiles -a | |
| 48 | + | %fontfiles | |
| 51 | 49 | ||
| 52 | 50 | %changelog | |
| 53 | 51 | %autochangelog | |
atkinson-hyperlegible-next.spec
| @@ -1,10 +1,7 @@ | |||
| 1 | - | # SPDX-License-Identifier: MIT | |
| 2 | - | ||
| 3 | 1 | %global commit 7925f50f649b3813257faf2f4c0b381011f434f1 | |
| 4 | 2 | %global shortcommit %{sub %{commit} 1 7} | |
| 5 | 3 | %global commitdate 20250222 | |
| 6 | 4 | %global fontname atkinson-hyperlegible-next | |
| 7 | - | %global fontconf 64-%{fontname} | |
| 8 | 5 | ||
| 9 | 6 | %global fontdescription %{expand: | |
| 10 | 7 | Atkinson Hyperlegible is a uniquely accessible typeface created by Braille | |
| @@ -22,7 +19,7 @@ Release: %autorelease | |||
| 22 | 19 | URL: https://www.brailleinstitute.org/freefont/ | |
| 23 | 20 | ||
| 24 | 21 | Source0: https://github.com/googlefonts/%{fontname}/archive/%{shortcommit}.tar.gz | |
| 25 | - | Source1: %{fontconf}.xml | |
| 22 | + | Source1: 64-%{fontname}.xml | |
| 26 | 23 | ||
| 27 | 24 | BuildRequires: fontpackages-devel | |
| 28 | 25 | ||
| @@ -32,24 +29,24 @@ BuildRequires: fontpackages-devel | |||
| 32 | 29 | %global fontlicenses OFL.txt | |
| 33 | 30 | %global fontdocs DESCRIPTION.en_us.html | |
| 34 | 31 | %global fonts fonts/otf/*.otf | |
| 32 | + | %global fontconfs %{SOURCE1} | |
| 35 | 33 | ||
| 36 | - | %fontpkg -a | |
| 34 | + | %fontpkg | |
| 37 | 35 | ||
| 38 | - | %fontmetapkg | |
| 39 | 36 | ||
| 40 | 37 | %prep | |
| 41 | 38 | %setup -n %{fontname}-%{commit} | |
| 42 | 39 | ||
| 43 | 40 | %build | |
| 44 | - | %fontbuild -a | |
| 41 | + | %fontbuild | |
| 45 | 42 | ||
| 46 | 43 | %install | |
| 47 | 44 | %fontinstall | |
| 48 | 45 | ||
| 49 | 46 | %check | |
| 50 | - | %fontcheck -a | |
| 47 | + | %fontcheck | |
| 51 | 48 | ||
| 52 | - | %fontfiles -a | |
| 49 | + | %fontfiles | |
| 53 | 50 | ||
| 54 | 51 | %changelog | |
| 55 | 52 | %autochangelog | |
jce revidoval tento gist . Přejít na revizi
1 file changed, 1 insertion, 1 deletion
atkinson-hyperlegible-mono.spec
| @@ -36,7 +36,7 @@ BuildRequires: fontpackages-devel | |||
| 36 | 36 | %fontmetapkg | |
| 37 | 37 | ||
| 38 | 38 | %prep | |
| 39 | - | %setup -n %{fontname}-%{commit} | |
| 39 | + | %setup -n atkinson-hyperlegible-next-mono-%{commit} | |
| 40 | 40 | ||
| 41 | 41 | %build | |
| 42 | 42 | %fontbuild -a | |
jce revidoval tento gist . Přejít na revizi
1 file changed, 16 insertions, 41 deletions
atkinson-hyperlegible-mono.spec
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | %global fontname atkinson-hyperlegible-mono | |
| 7 | 7 | %global fontconf 64-%{fontname} | |
| 8 | 8 | ||
| 9 | - | %global common_desc %{expand: | |
| 9 | + | %global fontdescription %{expand: | |
| 10 | 10 | Atkinson Hyperlegible Mono is an entirely new typeface inspired by the Atkinson | |
| 11 | 11 | Hyperlegible font. The monospaced font features characters that each occupy the | |
| 12 | 12 | same amount of horizontal space, allowing for them to be scanned quickly in | |
| @@ -14,65 +14,40 @@ table-based and coding environments. | |||
| 14 | 14 | } | |
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | - | Name: %{fontname}-fonts | |
| 18 | 17 | Version: 2.100 | |
| 19 | 18 | Release: %autorelease | |
| 20 | - | Summary: Monospace typeface made for legibility and comprehension with low-vision | |
| 21 | - | License: OFL-1.1 | |
| 22 | 19 | URL: https://www.brailleinstitute.org/freefont/ | |
| 23 | 20 | ||
| 24 | - | Source0: https://github.com/googlefonts/atkinson-hyperlegible-next-mono/archive/%{shortcommit}.tar.gz | |
| 25 | - | Source1: %{fontconf}.xml | |
| 21 | + | Source0: https://github.com/googlefonts/%{fontname}/archive/%{shortcommit}.tar.gz | |
| 22 | + | Source1: %{fontconf}.xml | |
| 26 | 23 | ||
| 27 | - | BuildArch: noarch | |
| 28 | 24 | BuildRequires: fontpackages-devel | |
| 29 | 25 | ||
| 30 | - | %global fontlicense OFL | |
| 31 | - | %global fontlicenses atkinson-hyperlegible-next-mono-%{commit}/OFL.txt | |
| 26 | + | %global fontfamily Atkinson Hyperlegible Mono | |
| 27 | + | %global fontsummary Monospace typeface made for low-vision legibility | |
| 28 | + | %global fontlicense OFL-1.1 | |
| 29 | + | %global fontlicenses OFL.txt | |
| 30 | + | %global fontdocs DESCRIPTION.en_us.html | |
| 31 | + | %global fonts fonts/otf/*.otf | |
| 32 | + | %global fontconfngs %{SOURCE1} | |
| 32 | 33 | ||
| 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. | |
| 34 | + | %fontpkg -a | |
| 47 | 35 | ||
| 36 | + | %fontmetapkg | |
| 48 | 37 | ||
| 49 | 38 | %prep | |
| 50 | - | %setup -n atkinson-hyperlegible-next-mono-%{commit} | |
| 39 | + | %setup -n %{fontname}-%{commit} | |
| 51 | 40 | ||
| 52 | 41 | %build | |
| 42 | + | %fontbuild -a | |
| 53 | 43 | ||
| 54 | 44 | %install | |
| 55 | - | install -m 0755 -d %{buildroot}%{_fontdir} | |
| 56 | - | install -m 0644 -p fonts/otf/*.otf %{buildroot}%{_fontdir} | |
| 57 | - | ||
| 58 | - | install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir} | |
| 59 | - | install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.xml | |
| 60 | - | ||
| 61 | - | for fconf in %{fontconf}.xml ; do | |
| 62 | - | ln -s %{_fontconfig_templatedir}/$fconf \ | |
| 63 | - | %{buildroot}%{_fontconfig_confdir}/$fconf | |
| 64 | - | done | |
| 65 | - | ||
| 66 | - | %_font_pkg -f %{fontconf}.xml AtkinsonHyperlegibleMono-*.otf | |
| 45 | + | %fontinstall | |
| 67 | 46 | ||
| 68 | 47 | %check | |
| 69 | 48 | %fontcheck -a | |
| 70 | 49 | ||
| 71 | 50 | %fontfiles -a | |
| 72 | 51 | ||
| 73 | - | %files common | |
| 74 | - | %doc DESCRIPTION.en_us.html %{fontname}-%{version}/DESCRIPTION.en_us.html | |
| 75 | - | ||
| 76 | - | ||
| 77 | 52 | %changelog | |
| 78 | - | %autochangelog | |
| 53 | + | %autochangelog | |
jce revidoval tento gist . Přejít na revizi
1 file changed, 12 insertions, 38 deletions
atkinson-hyperlegible-next.spec
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | %global fontname atkinson-hyperlegible-next | |
| 7 | 7 | %global fontconf 64-%{fontname} | |
| 8 | 8 | ||
| 9 | - | %global common_desc %{expand: | |
| 9 | + | %global fontdescription %{expand: | |
| 10 | 10 | Atkinson Hyperlegible is a uniquely accessible typeface created by Braille | |
| 11 | 11 | Institute of America. It has been developed specifically to increase legibility | |
| 12 | 12 | for readers with low vision, and to improve comprehension. | |
| @@ -17,65 +17,39 @@ kerning, refined curves, added symbols, and additional language support. | |||
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | - | Name: %{fontname}-fonts | |
| 21 | 20 | Version: 2.100 | |
| 22 | 21 | Release: %autorelease | |
| 23 | - | Summary: Second-gen font family made for legibility and comprehension with low-vision | |
| 24 | - | License: OFL-1.1 | |
| 25 | 22 | URL: https://www.brailleinstitute.org/freefont/ | |
| 26 | 23 | ||
| 27 | 24 | Source0: https://github.com/googlefonts/%{fontname}/archive/%{shortcommit}.tar.gz | |
| 28 | 25 | Source1: %{fontconf}.xml | |
| 29 | 26 | ||
| 30 | - | BuildArch: noarch | |
| 31 | 27 | BuildRequires: fontpackages-devel | |
| 32 | 28 | ||
| 33 | - | %global fontlicense OFL | |
| 34 | - | %global fontlicenses %{fontname}-%{commit}/OFL.txt | |
| 29 | + | %global fontfamily Atkinson Hyperlegible Next | |
| 30 | + | %global fontsummary Second-gen font family made for low-vision legibility | |
| 31 | + | %global fontlicense OFL-1.1 | |
| 32 | + | %global fontlicenses OFL.txt | |
| 33 | + | %global fontdocs DESCRIPTION.en_us.html | |
| 34 | + | %global fonts fonts/otf/*.otf | |
| 35 | 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. | |
| 36 | + | %fontpkg -a | |
| 50 | 37 | ||
| 38 | + | %fontmetapkg | |
| 51 | 39 | ||
| 52 | 40 | %prep | |
| 53 | 41 | %setup -n %{fontname}-%{commit} | |
| 54 | 42 | ||
| 55 | 43 | %build | |
| 44 | + | %fontbuild -a | |
| 56 | 45 | ||
| 57 | 46 | %install | |
| 58 | - | install -m 0755 -d %{buildroot}%{_fontdir} | |
| 59 | - | install -m 0644 -p fonts/otf/*.otf %{buildroot}%{_fontdir} | |
| 60 | - | ||
| 61 | - | install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir} | |
| 62 | - | install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.xml | |
| 63 | - | ||
| 64 | - | for fconf in %{fontconf}.xml ; do | |
| 65 | - | ln -s %{_fontconfig_templatedir}/$fconf \ | |
| 66 | - | %{buildroot}%{_fontconfig_confdir}/$fconf | |
| 67 | - | done | |
| 68 | - | ||
| 69 | - | %_font_pkg -f %{fontconf}.xml AtkinsonHyperlegibleNext-*.otf | |
| 47 | + | %fontinstall | |
| 70 | 48 | ||
| 71 | 49 | %check | |
| 72 | 50 | %fontcheck -a | |
| 73 | 51 | ||
| 74 | 52 | %fontfiles -a | |
| 75 | 53 | ||
| 76 | - | %files common | |
| 77 | - | %doc DESCRIPTION.en_us.html %{fontname}-%{version}/DESCRIPTION.en_us.html | |
| 78 | - | ||
| 79 | - | ||
| 80 | 54 | %changelog | |
| 81 | - | %autochangelog | |
| 55 | + | %autochangelog | |
jce revidoval tento gist . Přejít na revizi
Žádné změny
jce revidoval tento gist . Přejít na revizi
2 files changed, 6 insertions, 31 deletions
atkinson-hyperlegible-mono.spec
| @@ -15,8 +15,8 @@ table-based and coding environments. | |||
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | 17 | Name: %{fontname}-fonts | |
| 18 | - | Version: 1.0.0 | |
| 19 | - | Release: 0%{?dist} | |
| 18 | + | Version: 2.100 | |
| 19 | + | Release: %autorelease | |
| 20 | 20 | Summary: Monospace typeface made for legibility and comprehension with low-vision | |
| 21 | 21 | License: OFL-1.1 | |
| 22 | 22 | URL: https://www.brailleinstitute.org/freefont/ | |
| @@ -46,15 +46,6 @@ Requires: fontpackages-filesystem | |||
| 46 | 46 | This package consists of files used by other %{name} packages. | |
| 47 | 47 | ||
| 48 | 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 | 49 | %prep | |
| 59 | 50 | %setup -n atkinson-hyperlegible-next-mono-%{commit} | |
| 60 | 51 | ||
| @@ -63,7 +54,6 @@ This package contains Web Open Font Format version 2 files. | |||
| 63 | 54 | %install | |
| 64 | 55 | install -m 0755 -d %{buildroot}%{_fontdir} | |
| 65 | 56 | install -m 0644 -p fonts/otf/*.otf %{buildroot}%{_fontdir} | |
| 66 | - | install -m 0644 -p fonts/webfonts/*.woff2 %{buildroot}%{_fontdir} | |
| 67 | 57 | ||
| 68 | 58 | install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir} | |
| 69 | 59 | install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.xml | |
| @@ -74,7 +64,6 @@ for fconf in %{fontconf}.xml ; do | |||
| 74 | 64 | done | |
| 75 | 65 | ||
| 76 | 66 | %_font_pkg -f %{fontconf}.xml AtkinsonHyperlegibleMono-*.otf | |
| 77 | - | %_font_pkg -n web AtkinsonHyperlegibleMono*.woff2 | |
| 78 | 67 | ||
| 79 | 68 | %check | |
| 80 | 69 | %fontcheck -a | |
| @@ -82,10 +71,8 @@ done | |||
| 82 | 71 | %fontfiles -a | |
| 83 | 72 | ||
| 84 | 73 | %files common | |
| 85 | - | %defattr(0644,root,root,-) | |
| 86 | 74 | %doc DESCRIPTION.en_us.html %{fontname}-%{version}/DESCRIPTION.en_us.html | |
| 87 | 75 | ||
| 88 | 76 | ||
| 89 | 77 | %changelog | |
| 90 | - | %autochangelog | |
| 91 | - | ||
| 78 | + | %autochangelog | |
atkinson-hyperlegible-next.spec
| @@ -18,8 +18,8 @@ kerning, refined curves, added symbols, and additional language support. | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | 20 | Name: %{fontname}-fonts | |
| 21 | - | Version: 2.0.0 | |
| 22 | - | Release: 0%{?dist} | |
| 21 | + | Version: 2.100 | |
| 22 | + | Release: %autorelease | |
| 23 | 23 | Summary: Second-gen font family made for legibility and comprehension with low-vision | |
| 24 | 24 | License: OFL-1.1 | |
| 25 | 25 | URL: https://www.brailleinstitute.org/freefont/ | |
| @@ -49,15 +49,6 @@ Requires: fontpackages-filesystem | |||
| 49 | 49 | This package consists of files used by other %{name} packages. | |
| 50 | 50 | ||
| 51 | 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 | 52 | %prep | |
| 62 | 53 | %setup -n %{fontname}-%{commit} | |
| 63 | 54 | ||
| @@ -66,7 +57,6 @@ This package contains Web Open Font Format version 2 files. | |||
| 66 | 57 | %install | |
| 67 | 58 | install -m 0755 -d %{buildroot}%{_fontdir} | |
| 68 | 59 | install -m 0644 -p fonts/otf/*.otf %{buildroot}%{_fontdir} | |
| 69 | - | install -m 0644 -p fonts/webfonts/*.woff2 %{buildroot}%{_fontdir} | |
| 70 | 60 | ||
| 71 | 61 | install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir} | |
| 72 | 62 | install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.xml | |
| @@ -77,7 +67,6 @@ for fconf in %{fontconf}.xml ; do | |||
| 77 | 67 | done | |
| 78 | 68 | ||
| 79 | 69 | %_font_pkg -f %{fontconf}.xml AtkinsonHyperlegibleNext-*.otf | |
| 80 | - | %_font_pkg -n web AtkinsonHyperlegibleNext*.woff2 | |
| 81 | 70 | ||
| 82 | 71 | %check | |
| 83 | 72 | %fontcheck -a | |
| @@ -85,9 +74,8 @@ done | |||
| 85 | 74 | %fontfiles -a | |
| 86 | 75 | ||
| 87 | 76 | %files common | |
| 88 | - | %defattr(0644,root,root,-) | |
| 89 | 77 | %doc DESCRIPTION.en_us.html %{fontname}-%{version}/DESCRIPTION.en_us.html | |
| 90 | 78 | ||
| 91 | 79 | ||
| 92 | 80 | %changelog | |
| 93 | - | %autochangelog | |
| 81 | + | %autochangelog | |
jce revidoval tento gist . Přejít na revizi
Žádné změny
jce revidoval tento gist . Přejít na revizi
2 files changed, 184 insertions
atkinson-hyperlegible-mono.spec(vytvořil soubor)
| @@ -0,0 +1,91 @@ | |||
| 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 | + | ||
atkinson-hyperlegible-next.spec(vytvořil soubor)
| @@ -0,0 +1,93 @@ | |||
| 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 | |