- Update to v4.0.2 and clean up spec file

OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/iosevka-fonts?expand=0&rev=9
This commit is contained in:
Lukas Kucharczyk 2020-12-07 09:23:37 +00:00 committed by Git OBS Bridge
parent 3df1d5fce9
commit cd9128fee0
27 changed files with 92 additions and 74 deletions

View File

@ -21,6 +21,7 @@ Quit your editor/program. Unzip and open the folder.
* **Linux** : Copy the TTF files to your fonts directory → Run `sudo fc-cache`.
- Arch Linux users can install the font from the AUR [here](https://aur.archlinux.org/packages/ttf-iosevka) using an AUR wrapper or by doing it manually. [All variants](https://aur.archlinux.org/packages/?O=0&SeB=nd&K=ttf-iosevka&SB=n&SO=a&PP=50&do_Search=Go).
- Void Linux users can install the font with `xbps-install font-iosevka`.
- Fedora Linux users can install the font(s) from the copr [here](https://copr.fedorainfracloud.org/coprs/peterwu/iosevka/). Run `dnf search iosevka` to discover available fonts and `dnf install` to install the chosen one(s).
* **FreeBSD**: The font can be installed with `pkg install iosevka`.
* **OpenBSD**: Run `pkg_info -Q iosevka` to see which Iosevka packages are available. Use `pkg_add` to install the chosen package(s).
@ -280,15 +281,25 @@ Please note that, due to the complex interactions when forming ligations, cherry
To build Iosevka you should:
1. Ensure that [`nodejs`](http://nodejs.org) (≥ 12.16.0) and [`ttfautohint`](http://www.freetype.org/ttfautohint/) are present.
2. Install necessary libs by `npm install`. If youve installed them, upgrade to the latest.
1. Ensure that [`nodejs`](http://nodejs.org) (≥ 12.16.0) and [`ttfautohint`](http://www.freetype.org/ttfautohint/) are present, and accessible from `PATH`.
2. Run `npm install`. This command will install **all** the NPM dependenceis, and will also validate whether external dependencies are present.
3. `npm run build -- contents::iosevka`.
You will find TTFs, as well as WOFF(2) web fonts and one Webfont CSS in the `dist/` directory.
### Using a Docker container
Refer to these [instructions.](https://github.com/ejuarezg/containers/tree/master/iosevka_font#container-method)
A Docker container handling the build environment for you can be found [here](https://github.com/avivace/fonts-iosevka).
To pull it from Docker Hub and start a standard build of the latest released version, run
```
docker run -it -v $(pwd):/build avivace/iosevka-build
```
Fonts files will be placed in the `dist` folder.
You can provide `private-build.plans.toml` for a customized build and/or specify the desired release appending `-e FONT_VERSION=X.X.X`. to the Docker command.
## Customized Build
@ -303,12 +314,14 @@ To create a custom build, you need:
1. `contents::<plan>` : TTF (Hinted and Unhinted), WOFF(2) and Web font CSS;
2. `ttf::<plan>` : TTF;
3. `ttf-unhinted::<plan>` : Unhinted TTF only;
4. `woff::<plan>` : TTF and WOFF only;
5. `woff2::<plan>` : TTF and WOFF2 only.
4. `webfont::<plan>` : Web fonts only (CSS + WOFF2);
5. `woff2::<plan>` : WOFF2 only.
### Configuring Custom Build
Configuration of build plans are organized under `[buildPlans.<plan name>]` sections in the `private-build-plans.toml`. Inside the plan, top-level properties include:
Configuration of build plans are organized under `[buildPlans.<plan name>]` sections in the `private-build-plans.toml`. You can use [the Customizer](https://be5invis.github.io/Iosevka/customizer) to create the build plan, and/or manulally edit them, following the instructions below.
Inside the plan, top-level properties include:
* `family`: String, defines the family name of your custom variant.
* `spacing`: Optional, String, denotes the spacing of the custom variant. Valid values include:
@ -393,6 +406,8 @@ Subsection `ligations` is used to customize the ligation set assigned to `calt`
- `gteq-as-co-arrow`: Treat `>=` as co-arrow.
- `html-comment`: Enable ligation for `<!--` and `<!---`.
- `colon-greater-as-colon-arrow`: Transform `:>` into `:` and a narrow arrow..
- `brace-bar`: Enable ligation for `{|` and `|}`.
- `brack-bar`: Enable ligation for `[|` and `|]`.
<!-- END Section-Cherry-Picking-Ligation-Sets -->

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c9f976331450ca232f5504c82d5f69fa5582b602dd369d568426db509b8409ae
size 31109713

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d5ef4dce862a8833c2ecfc6ac577a379c9096eae9954c73fb09edbafb249317
size 31519901

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9a1ab7ba00ceb6cc015e37c1d0bb744b073f95fade88ed12b85f40e6b78daba
size 31110952

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4017d50e0309d95bc13ffcb94ced878c01e73d6b59892d76f451241d6bed1efe
size 31520905

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b3fba3ef32480283ddf3694db57a298718bc0fef4d50b4533813aa50e3c1eb63
size 35888676

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3fbb169942901f53b0298f8b6fb42d8876f23ecf79418aa2bdd9b6c91c8af4ac
size 36299633

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:92bd171eccc70c5581e5b7b68dbc7112e1e9f19eea8f303ac3a6284939fc1f77
size 23800379

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:886dd2d1cb2818c9315c2f8876e28a92fcd7eb3f8b0bd65095a1d558b4797006
size 23999758

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:986109d2fe5e3fa8f0260e963552649fdb2e79a196aad2331046840eab15e9b7
size 23801265

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b11e94aad5a63622a84f410d9724e93da770747078014eae16c6e2d105c9747c
size 24000090

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5e40608bad84c5dd40216b7718f0cbf54d13d7fc394f3941a4c47f6bd1bb667
size 28352985

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86cee6915bb4b725f36a477835acb7ec892c149b82d7c6e2410487e4522b9d2b
size 28553214

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:63657b1050d2803799dbc9ee34acdc3473b93ff346307c0e686380796a88d5ec
size 28335909

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf823c3d9984a27e1ad93039d8a3e0198d27092f1ef27096f1604b1f2e0fcab0
size 28536882

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6632b257ff8ca8a88a0a19217f4669b757e699b4d851d0fc6c96107202ff2481
size 35866932

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1f1b9825a8ce56573bfd54a74f3a7816b68548e21299e72a18654ce8b2163d60
size 36280786

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3b460227f705e03fc7d310132e017edaece137bd547a6084d9140fe9f7d80cc6
size 31112087

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61429ca11077dc0162fd0e330118f53b8b0220cfa0c77c021718378c17f90373
size 31523900

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c43e806554c9ed28644afda142e96e280750c8e385e3a218d9dddc537893735
size 31113921

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5ae8107f2bde5645838143e82bad5562985f51ef00f8d8e5c02e3617b84f318
size 31525433

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77cd7a089b89857071d6b42ed502c0197601c2bb165ccfe6adf17dc83d4144a5
size 35897025

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90eac0c2c7a80a916d9dee9147bbb4aef5e2294179719d4724e7f86f13bbe795
size 36317862

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0dd8d58f6e036abd6918ace23b0276af3a12cddb66816d3f2efbf1626254cfd8
size 35874148

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:380c5f7e692f77e4e78a8777c4d021c5ad7fc96542f4fd8143c12f2dd12073a4
size 36296948

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 7 09:22:57 UTC 2020 - Lukas Kucharczyk <lukas.kucharczyk@suse.com>
- Update to v4.0.2
-------------------------------------------------------------------
Thu Nov 26 17:00:59 UTC 2020 - Lukas Kucharczyk <lukas.kucharczyk@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package iosevka-fonts
#
# Copyright (c) 2020 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@ -12,33 +12,32 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Name: iosevka-fonts
Version: 4.0.0
Release: 0
License: OFL-1.1
Summary: Slender typeface for code, from code
Url: https://typeof.net/Iosevka/
Group: System/X11/Fonts
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: unzip
BuildRequires: fontpackages-devel
BuildArch: noarch
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
@ -47,11 +46,11 @@ typeface family, designed for writing code, using in terminals, and preparing
technical documents.
%prep
for s in %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} %{S:8} %{S:9} %{S:10} %{S:11} %{S:12};
for s in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12};
do
unzip $s '*.ttf';
done
cp %{S:20} %{S:21} .
cp %{SOURCE20} %{SOURCE21} .
%build
declare -A family=( \
@ -139,10 +138,9 @@ install -d %{buildroot}%{_ttfontsdir}
install -m0644 *.ttf %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets
%clean
rm -rf %{buildroot}
%files
%doc README.md
%license LICENSE.md
%{_ttfontsdir}
%changelog