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-12-30 20:20:10 +01:00
|
|
|
|
#
|
|
|
|
|
|
2020-05-19 14:32:14 +02:00
|
|
|
|
|
2020-12-07 10:23:37 +01:00
|
|
|
|
Name: iosevka-fonts
|
2020-12-29 21:20:43 +01:00
|
|
|
|
Version: 4.2.0
|
2020-12-30 20:20:10 +01:00
|
|
|
|
Release: 1
|
2020-12-07 10:23:37 +01:00
|
|
|
|
Summary: Slender typeface for code, from code
|
|
|
|
|
License: OFL-1.1
|
|
|
|
|
Group: System/X11/Fonts
|
|
|
|
|
URL: https://typeof.net/Iosevka/
|
2020-12-30 20:20:10 +01:00
|
|
|
|
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
|
2020-12-07 10:23:37 +01:00
|
|
|
|
BuildRequires: fontpackages-devel
|
|
|
|
|
BuildRequires: unzip
|
2020-12-30 20:20:10 +01:00
|
|
|
|
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
|
2020-12-07 10:23:37 +01:00
|
|
|
|
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.
|
|
|
|
|
|
2020-12-30 20:20:10 +01:00
|
|
|
|
%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.
|
|
|
|
|
|
2020-05-19 14:32:14 +02:00
|
|
|
|
%prep
|
2020-12-30 20:20:10 +01:00
|
|
|
|
for s in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6};
|
2020-05-19 14:32:14 +02:00
|
|
|
|
do
|
2020-12-29 21:20:43 +01:00
|
|
|
|
unzip $s '*.ttc';
|
2020-05-19 14:32:14 +02:00
|
|
|
|
done
|
2020-12-30 20:20:10 +01:00
|
|
|
|
cp %{SOURCE7} %{SOURCE8} .
|
2020-05-19 14:32:14 +02:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
declare -A family=( \
|
|
|
|
|
[iosevka]=Iosevka \
|
|
|
|
|
[iosevka-slab]=IosevkaSlab \
|
|
|
|
|
[iosevka-curly]=IosevkaCurly \
|
|
|
|
|
[iosevka-curly-slab]=IosevkaCurlySlab \
|
2020-12-30 20:20:10 +01:00
|
|
|
|
[iosevka-aile]=IosevkaAile \
|
|
|
|
|
[iosevka-etoile]=IosevkaEtoile \
|
|
|
|
|
[iosevka-sparkle]=IosevkaSparkle \
|
2020-05-19 14:32:14 +02:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
declare -A variant=( \
|
|
|
|
|
[bold]=Bold \
|
|
|
|
|
[heavy]=Heavy \
|
|
|
|
|
[light]=Light \
|
|
|
|
|
[medium]=Medium \
|
|
|
|
|
[regular]=Regular \
|
|
|
|
|
[thin]=Thin \
|
|
|
|
|
[extrabold]=Extrabold \
|
2020-12-29 21:20:43 +01:00
|
|
|
|
[extralight]=Extralight \
|
2020-05-19 14:32:14 +02:00
|
|
|
|
[semibold]=Semibold \
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
for f in ${!family[@]};
|
|
|
|
|
do
|
|
|
|
|
for v in ${!variant[@]};
|
|
|
|
|
do
|
2020-12-29 21:20:43 +01:00
|
|
|
|
mv $f-$v.ttc ${family[$f]}-${variant[$v]}.ttc
|
2020-05-19 14:32:14 +02:00
|
|
|
|
done
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%install
|
2020-11-22 22:21:52 +01:00
|
|
|
|
install -d %{buildroot}%{_ttfontsdir}
|
2020-12-29 21:20:43 +01:00
|
|
|
|
install -m0644 *.ttc %{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
|
2020-12-30 20:20:10 +01:00
|
|
|
|
%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
|
2020-12-07 10:23:37 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|