File gnu-unifont-ttf-fonts.spec of Package gnu-unifont-ttf-fonts

#
# spec file for package gnu-unifont-ttf-fonts
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define         fontdir %{_fontsdir}/truetype
Name:           gnu-unifont-ttf-fonts
Version:        13.0.06
Release:        0
Summary:        TrueType version of the GNU Unifont
License:        GPL-2.0-or-later
Group:          System/X11/Fonts
URL:            http://unifoundry.com/unifont.html
Source0:        https://ftp.gnu.org/gnu/unifont/unifont-%{version}/unifont-%{version}.ttf
Source1:        https://ftp.gnu.org/gnu/unifont/unifont-%{version}/unifont-%{version}.ttf.sig
Source2:        https://ftp.gnu.org/gnu/unifont/unifont-%{version}/unifont_csur-%{version}.ttf
Source3:        https://ftp.gnu.org/gnu/unifont/unifont-%{version}/unifont_csur-%{version}.ttf.sig
Source4:        https://ftp.gnu.org/gnu/unifont/unifont-%{version}/unifont_jp-%{version}.ttf
Source5:        https://ftp.gnu.org/gnu/unifont/unifont-%{version}/unifont_jp-%{version}.ttf.sig
Source6:        https://ftp.gnu.org/gnu/unifont/unifont-%{version}/unifont_upper-%{version}.ttf
Source7:        https://ftp.gnu.org/gnu/unifont/unifont-%{version}/unifont_upper-%{version}.ttf.sig
Source8:        %{name}.keyring
Source9:        http://unifoundry.com/LICENSE.txt
BuildRequires:  fontpackages-devel
BuildArch:      noarch
%reconfigure_fonts_prereq

%description
The GNU Unifont by Roman Czyborra.
The Standard Unifont TTF.
Glyphs above the Unicode Basic Multilingual Plane.
Unicode ConScript Unicode Registry (CSUR) PUA Glyphs.

%package -n gnu-unifont-jp-ttf-fonts
Summary:  Unifont Japanese TrueType Version
Group:    System/X11/Fonts
%reconfigure_fonts_prereq

%description -n gnu-unifont-jp-ttf-fonts
The GNU Unifont by Roman Czyborra.
Unifont Japanese TrueType Version.

%prep
cp %{SOURCE9} COPYING

%build

%install
install -Dm 0644 %{SOURCE0} %{buildroot}%{fontdir}/Unifont.ttf
install -Dm 0644 %{SOURCE2} %{buildroot}%{fontdir}/Unifont_CSUR.ttf
install -Dm 0644 %{SOURCE4} %{buildroot}%{fontdir}/Unifont_JP.ttf
install -Dm 0644 %{SOURCE6} %{buildroot}%{fontdir}/Unifont_Upper.ttf

%reconfigure_fonts_scriptlets
%reconfigure_fonts_scriptlets -n gnu-unifont-jp-ttf-fonts

%files
%license COPYING
%dir %{fontdir}
%{fontdir}/Unifont.ttf
%{fontdir}/Unifont_CSUR.ttf
%{fontdir}/Unifont_Upper.ttf

%files -n gnu-unifont-jp-ttf-fonts
%license COPYING
%{fontdir}/Unifont_JP.ttf

%changelog
openSUSE Build Service is sponsored by