# # 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.0.2 Release: 0 Summary: Slender typeface for code, from code License: OFL-1.1 Group: System/X11/Fonts URL: https://typeof.net/Iosevka/ Source1: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-%{version}.zip Source2: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-fixed-%{version}.zip Source3: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-term-%{version}.zip Source4: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-slab-%{version}.zip Source5: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-fixed-slab-%{version}.zip Source6: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-term-slab-%{version}.zip Source7: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-curly-%{version}.zip Source8: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-fixed-curly-%{version}.zip Source9: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-term-curly-%{version}.zip Source10: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-curly-slab-%{version}.zip Source11: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-fixed-curly-slab-%{version}.zip Source12: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-term-curly-slab-%{version}.zip Source20: https://raw.githubusercontent.com/be5invis/Iosevka/master/LICENSE.md Source21: https://raw.githubusercontent.com/be5invis/Iosevka/master/README.md BuildRequires: fontpackages-devel BuildRequires: unzip 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. %prep for s in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12}; do unzip $s '*.ttf'; done cp %{SOURCE20} %{SOURCE21} . %build declare -A family=( \ [iosevka]=Iosevka \ [iosevka-fixed]=IosevkaFixed \ [iosevka-term]=IosevkaTerm \ [iosevka-slab]=IosevkaSlab \ [iosevka-fixed-slab]=IosevkaFixedSlab \ [iosevka-term-slab]=IosevkaTermSlab \ [iosevka-curly]=IosevkaCurly \ [iosevka-fixed-curly]=IosevkaFixedCurly \ [iosevka-term-curly]=IosevkaTermCurly \ [iosevka-curly-slab]=IosevkaCurlySlab \ [iosevka-fixed-curly-slab]=IosevkaFixedCurlySlab \ [iosevka-term-curly-slab]=IosevkaTermCurlySlab \ ) declare -A variant=( \ [bold]=Bold \ [bolditalic]=BoldItalic \ [boldoblique]=BoldOblique \ [extralight]=Extralight \ [extralightitalic]=ExtralightItalic \ [extralightoblique]=ExtralightOblique \ [heavy]=Heavy \ [heavyitalic]=HeavyItalic \ [heavyoblique]=HeavyOblique \ [italic]=Italic \ [light]=Light \ [lightitalic]=LightItalic \ [lightoblique]=LightOblique \ [medium]=Medium \ [mediumitalic]=MediumItalic \ [mediumoblique]=MediumOblique \ [oblique]=Oblique \ [regular]=Regular \ [thin]=Thin \ [thinitalic]=ThinItalic \ [thinoblique]=ThinOblique \ [extended]=Extended \ [extendedbold]=ExtendedBold \ [extendedbolditalic]=ExtendedBoldItalic \ [extendedboldoblique]=ExtendedBoldOblique \ [extendedextrabold]=ExtendedExtrabold \ [extendedextrabolditalic]=ExtendedExtraboldItalic \ [extendedextraboldoblique]=ExtendedExtraboldOblique \ [extendedextralight]=ExtendedExtralight \ [extendedextralightitalic]=ExtendedExtralightItalic \ [extendedextralightoblique]=ExtendedExtralightOblique \ [extendedheavy]=ExtendedHeavy \ [extendedheavyitalic]=ExtendedHeavyItalic \ [extendedheavyoblique]=ExtendedHeavyOblique \ [extendeditalic]=ExtendedItalic \ [extendedlight]=ExtendedLight \ [extendedlightitalic]=ExtendedLightItalic \ [extendedlightoblique]=ExtendedLightOblique \ [extendedmedium]=ExtendedMedium \ [extendedmediumitalic]=ExtendedMediumItalic \ [extendedmediumoblique]=ExtendedMediumOblique \ [extendedoblique]=ExtendedOblique \ [extendedsemibold]=ExtendedSemibold \ [extendedsemibolditalic]=ExtendedSemiboldItalic \ [extendedsemiboldoblique]=ExtendedSemiboldOblique \ [extendedthin]=ExtendedThin \ [extendedthinitalic]=ExtendedThinItalic \ [extendedthinoblique]=ExtendedThinOblique \ [extrabold]=Extrabold \ [extrabolditalic]=ExtraboldItalic \ [extraboldoblique]=ExtraboldOblique \ [semibold]=Semibold \ [semibolditalic]=SemiboldItalic \ [semiboldoblique]=SemiboldOblique \ ) for f in ${!family[@]}; do for v in ${!variant[@]}; do mv $f-$v.ttf ${family[$f]}-${variant[$v]}.ttf done done %install install -d %{buildroot}%{_ttfontsdir} install -m0644 *.ttf %{buildroot}%{_ttfontsdir} %reconfigure_fonts_scriptlets %files %doc README.md %license LICENSE.md %{_ttfontsdir} %changelog