# # spec file for package iosevka-fonts # # Copyright (c) 2020 SUSE LLC # # 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/ # Name: iosevka-fonts Version: 4.2.0 Release: 1 Summary: Slender typeface for code, from code License: OFL-1.1 Group: System/X11/Fonts URL: https://typeof.net/Iosevka/ Source0: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-%{version}.zip Source1: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-slab-%{version}.zip Source2: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-curly-%{version}.zip Source3: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-curly-slab-%{version}.zip Source4: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-aile-%{version}.zip Source5: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-etoile-%{version}.zip Source6: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-sparkle-%{version}.zip Source7: https://raw.githubusercontent.com/be5invis/Iosevka/master/LICENSE.md Source8: https://raw.githubusercontent.com/be5invis/Iosevka/master/README.md BuildRequires: fontpackages-devel BuildRequires: unzip Recommends: iosevka-aile-fonts Recommends: iosevka-curly-fonts Recommends: iosevka-curly-slab-fonts Recommends: iosevka-etoile-fonts Recommends: iosevka-slab-fonts Recommends: iosevka-sparkle-fonts BuildArch: noarch %reconfigure_fonts_prereq %description Iosevka is an open-source, sans-serif + slab-serif, monospace + quasi‑proportional typeface family, designed for writing code, using in terminals, and preparing technical documents. %package -n iosevka-slab-fonts Summary: Monospace, Slab-serif %description -n iosevka-slab-fonts Iosevka is an open-source, sans-serif + slab-serif, monospace + quasi‑proportional typeface family, designed for writing code, using in terminals, and preparing technical documents. %package -n iosevka-curly-fonts Summary: Monospace, Curly Style %description -n iosevka-curly-fonts Iosevka is an open-source, sans-serif + slab-serif, monospace + quasi‑proportional typeface family, designed for writing code, using in terminals, and preparing technical documents. %package -n iosevka-curly-slab-fonts Summary: Monospace, Curly Style, Slab-serif %description -n iosevka-curly-slab-fonts Iosevka is an open-source, sans-serif + slab-serif, monospace + quasi‑proportional typeface family, designed for writing code, using in terminals, and preparing technical documents. %package -n iosevka-aile-fonts Summary: Quasi-proportional, Sans-serif %description -n iosevka-aile-fonts Iosevka is an open-source, sans-serif + slab-serif, monospace + quasi‑proportional typeface family, designed for writing code, using in terminals, and preparing technical documents. %package -n iosevka-etoile-fonts Summary: Quasi-proportional, Slab-serif %description -n iosevka-etoile-fonts Iosevka is an open-source, sans-serif + slab-serif, monospace + quasi‑proportional typeface family, designed for writing code, using in terminals, and preparing technical documents. %package -n iosevka-sparkle-fonts Summary: Quasi-proportional, Hybrid, like iA Writer’s Duo %description -n iosevka-sparkle-fonts Iosevka is an open-source, sans-serif + slab-serif, monospace + quasi‑proportional typeface family, designed for writing code, using in terminals, and preparing technical documents. %prep for s in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6}; do unzip $s '*.ttc'; done cp %{SOURCE7} %{SOURCE8} . %build declare -A family=( \ [iosevka]=Iosevka \ [iosevka-slab]=IosevkaSlab \ [iosevka-curly]=IosevkaCurly \ [iosevka-curly-slab]=IosevkaCurlySlab \ [iosevka-aile]=IosevkaAile \ [iosevka-etoile]=IosevkaEtoile \ [iosevka-sparkle]=IosevkaSparkle \ ) declare -A variant=( \ [bold]=Bold \ [heavy]=Heavy \ [light]=Light \ [medium]=Medium \ [regular]=Regular \ [thin]=Thin \ [extrabold]=Extrabold \ [extralight]=Extralight \ [semibold]=Semibold \ ) for f in ${!family[@]}; do for v in ${!variant[@]}; do mv $f-$v.ttc ${family[$f]}-${variant[$v]}.ttc done done %install install -d %{buildroot}%{_ttfontsdir} install -m0644 *.ttc %{buildroot}%{_ttfontsdir} %reconfigure_fonts_scriptlets %files %doc README.md %license LICENSE.md %dir %{_ttfontsdir} %{_ttfontsdir}/Iosevka-*.ttc %files -n iosevka-slab-fonts %doc README.md %license LICENSE.md %dir %{_ttfontsdir} %{_ttfontsdir}/IosevkaSlab-*.ttc %files -n iosevka-curly-fonts %doc README.md %license LICENSE.md %dir %{_ttfontsdir} %{_ttfontsdir}/IosevkaCurly-*.ttc %files -n iosevka-curly-slab-fonts %doc README.md %license LICENSE.md %dir %{_ttfontsdir} %{_ttfontsdir}/IosevkaCurlySlab-*.ttc %files -n iosevka-aile-fonts %doc README.md %license LICENSE.md %dir %{_ttfontsdir} %{_ttfontsdir}/IosevkaAile-*.ttc %files -n iosevka-etoile-fonts %doc README.md %license LICENSE.md %dir %{_ttfontsdir} %{_ttfontsdir}/IosevkaEtoile-*.ttc %files -n iosevka-sparkle-fonts %doc README.md %license LICENSE.md %dir %{_ttfontsdir} %{_ttfontsdir}/IosevkaSparkle-*.ttc %changelog