File openmoji-fonts.spec of Package openmoji-fonts

# spec file for package openmoji-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

%define ttf_fontdir %{_datadir}/fonts/truetype
%define fontname     openmoji
Name:           openmoji-fonts
Version:        13.1.0+git.1605265744.4a80b536e
Release:        0
Summary:        OpenMoji fonts
License:        CC-BY-SA-4.0
Group:          System/X11/Fonts
Source:         %{fontname}-%{version}.tar.xz
BuildRequires:  %suseconfig_fonts_prereq
BuildRequires:  fontpackages-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

OpenMoji was developed with visual guidelines that are not linked to a
specific branding. In addition, the goal was to design emojis that
integrate well in combination with text.

%package -n OpenMoji-Black
Summary:        Black only color emoji
Group:          System/X11/Fonts

%description -n OpenMoji-Black
Black color only variation of Openmoji glyphs.

%package -n OpenMoji-Color
Summary:        Colorful emoji
Group:          System/X11/Fonts

%description -n OpenMoji-Color
Colorful variation of Openmoji glyphs.

%setup -n %{fontname}-%{version}


mkdir -p %{buildroot}%{_ttfontsdir}
install -m 0644 font/*.ttf %{buildroot}%{_ttfontsdir}/

%reconfigure_fonts_scriptlets -n OpenMoji-Black
%reconfigure_fonts_scriptlets -n OpenMoji-Color

%files -n OpenMoji-Black
%dir %{_ttfontsdir}/

%files -n OpenMoji-Color
%dir %{_ttfontsdir}/

%doc changelog.txt

openSUSE Build Service is sponsored by