2020-05-19 14:32:14 +02:00
|
|
|
|
#
|
|
|
|
|
# spec file for package iosevka-fonts
|
|
|
|
|
#
|
2020-12-07 10:23:37 +01:00
|
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2020-05-19 14:32:14 +02:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2020-12-07 10:23:37 +01:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-05-19 14:32:14 +02:00
|
|
|
|
|
2020-12-07 10:23:37 +01:00
|
|
|
|
Name: iosevka-fonts
|
2020-12-14 08:00:28 +01:00
|
|
|
|
Version: 4.0.3
|
2020-12-07 10:23:37 +01:00
|
|
|
|
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
|
2020-05-19 14:32:14 +02:00
|
|
|
|
%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
|
2020-12-07 10:23:37 +01:00
|
|
|
|
for s in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12};
|
2020-05-19 14:32:14 +02:00
|
|
|
|
do
|
2020-11-22 22:21:52 +01:00
|
|
|
|
unzip $s '*.ttf';
|
2020-05-19 14:32:14 +02:00
|
|
|
|
done
|
2020-12-07 10:23:37 +01:00
|
|
|
|
cp %{SOURCE20} %{SOURCE21} .
|
2020-05-19 14:32:14 +02:00
|
|
|
|
|
|
|
|
|
%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
|
2020-11-22 22:21:52 +01:00
|
|
|
|
install -d %{buildroot}%{_ttfontsdir}
|
|
|
|
|
install -m0644 *.ttf %{buildroot}%{_ttfontsdir}
|
2020-05-19 14:32:14 +02:00
|
|
|
|
%reconfigure_fonts_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
2020-11-19 10:19:53 +01:00
|
|
|
|
%doc README.md
|
2020-05-19 14:32:14 +02:00
|
|
|
|
%license LICENSE.md
|
|
|
|
|
%{_ttfontsdir}
|
2020-12-07 10:23:37 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|