2020-05-19 14:32:14 +02:00
|
|
|
|
#
|
|
|
|
|
# spec file for package iosevka-fonts
|
|
|
|
|
#
|
2021-01-04 10:54:44 +01:00
|
|
|
|
# Copyright (c) 2021 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
|
|
|
|
#
|
|
|
|
|
|
2021-02-08 11:35:46 +01:00
|
|
|
|
|
2021-01-28 15:32:53 +01:00
|
|
|
|
%define _buildshell /bin/bash
|
2021-02-15 14:12:23 +01:00
|
|
|
|
%global fullversion %{version}
|
2020-12-07 10:23:37 +01:00
|
|
|
|
Name: iosevka-fonts
|
2021-03-08 10:53:42 +01:00
|
|
|
|
Version: 5.0.5
|
2021-01-04 10:54:44 +01:00
|
|
|
|
Release: 0
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Summary: Slender typeface for source code
|
2020-12-07 10:23:37 +01:00
|
|
|
|
License: OFL-1.1
|
|
|
|
|
Group: System/X11/Fonts
|
|
|
|
|
URL: https://typeof.net/Iosevka/
|
2021-01-27 11:14:20 +01:00
|
|
|
|
Source0: https://github.com/be5invis/Iosevka/releases/download/v%{fullversion}/ttc-iosevka-%{fullversion}.zip
|
|
|
|
|
Source1: https://github.com/be5invis/Iosevka/releases/download/v%{fullversion}/ttc-iosevka-slab-%{fullversion}.zip
|
|
|
|
|
Source2: https://github.com/be5invis/Iosevka/releases/download/v%{fullversion}/ttc-iosevka-curly-%{fullversion}.zip
|
|
|
|
|
Source3: https://github.com/be5invis/Iosevka/releases/download/v%{fullversion}/ttc-iosevka-curly-slab-%{fullversion}.zip
|
|
|
|
|
Source4: https://github.com/be5invis/Iosevka/releases/download/v%{fullversion}/ttc-iosevka-aile-%{fullversion}.zip
|
|
|
|
|
Source5: https://github.com/be5invis/Iosevka/releases/download/v%{fullversion}/ttc-iosevka-etoile-%{fullversion}.zip
|
2021-01-25 13:02:05 +01:00
|
|
|
|
Source6: https://raw.githubusercontent.com/be5invis/Iosevka/master/LICENSE.md
|
|
|
|
|
Source7: 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
|
2020-12-07 10:23:37 +01:00
|
|
|
|
BuildArch: noarch
|
2020-05-19 14:32:14 +02:00
|
|
|
|
%reconfigure_fonts_prereq
|
|
|
|
|
|
|
|
|
|
%description
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Iosevka is a 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
|
|
|
|
|
2020-12-30 20:20:10 +01:00
|
|
|
|
%package -n iosevka-slab-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Summary: Iosevka in monospace slab-serif style
|
2020-12-30 20:20:10 +01:00
|
|
|
|
|
|
|
|
|
%description -n iosevka-slab-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Iosevka is a 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-curly-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Summary: Iosevka in monospace curly style
|
2020-12-30 20:20:10 +01:00
|
|
|
|
|
|
|
|
|
%description -n iosevka-curly-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Iosevka is a 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-curly-slab-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Summary: Iosevka in monospace slab-serif curly style
|
2020-12-30 20:20:10 +01:00
|
|
|
|
|
|
|
|
|
%description -n iosevka-curly-slab-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Iosevka is a 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-aile-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Summary: Iosevka in quasi-proportional sans-serif style
|
2020-12-30 20:20:10 +01:00
|
|
|
|
|
|
|
|
|
%description -n iosevka-aile-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Iosevka is a 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-etoile-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Summary: Iosevka in quasi-proportional slab-serif style
|
2020-12-30 20:20:10 +01:00
|
|
|
|
|
|
|
|
|
%description -n iosevka-etoile-fonts
|
2021-01-28 15:32:53 +01:00
|
|
|
|
Iosevka is a 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
|
|
|
|
|
2020-05-19 14:32:14 +02:00
|
|
|
|
%prep
|
2021-02-08 11:35:46 +01:00
|
|
|
|
for s in %{_sourcedir}/*.zip; do
|
2021-01-28 15:32:53 +01:00
|
|
|
|
unzip $s '*.ttc'
|
2020-05-19 14:32:14 +02:00
|
|
|
|
done
|
2021-01-25 13:02:05 +01:00
|
|
|
|
cp %{SOURCE6} %{SOURCE7} .
|
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 \
|
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
|
|
|
|
|
|
2020-12-07 10:23:37 +01:00
|
|
|
|
%changelog
|