File hack-fonts.spec of Package hack-fonts

# spec file for package hack-fonts
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 Alexander Evseev
# 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

%define realname Hack
%define extraver -ttf
%define srcext   zip
# Common info
Name:           hack-fonts
Version:        3.003
Release:        0
Summary:        A typeface designed for source code
License:        MIT AND SUSE-Bitstream-Vera
Group:          System/X11/Fonts
BuildRequires:  fontpackages-devel
BuildRequires:  unzip
Provides:       %{realname} = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

A typeface designed for source code

Hack includes monospaced regular, bold, oblique, and bold oblique sets to cover
all of your syntax highlighting needs.

Over 1500 glyphs that include lovingly tuned expanded Latin, modern Greek, and
Cyrillic character sets.

Powerline glyphs are included in the regular set. Patching is not necessary.
Install and go.

%setup -q -n %{realname}-%{version}%{?extraver} -c


mkdir -p %{buildroot}%{_ttfontsdir}
install -m644 ttf/*.ttf %{buildroot}%{_ttfontsdir}
install -d %{buildroot}%{_docdir}/%{name}
install -m644 %{S:1} %{S:2} %{buildroot}%{_docdir}/%{name}


%doc %{_docdir}/%{name}

openSUSE Build Service is sponsored by