File deepin-opensymbol-fonts.spec of Package deepin-opensymbol-fonts
#
# spec file for package deepin-opensymbol-fonts
#
# Copyright (c) 2025 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 http://bugs.opensuse.org/
#
Name: deepin-opensymbol-fonts
Version: 2.2+git20170215.cf2404a
Release: 0
Summary: A replacement for MS Wingdings font family
License: SUSE-Permissive
Group: System/X11/Fonts
Url: https://github.com/linuxdeepin/deepin-opensymbol-fonts
Source: %{name}-%{version}.tar.xz
#PATCH-FIX-UPSTREAM marguerite@opensuse.org - generate space/uni000D/uni001D char with createChar() and set width.
Patch0: deepin-opensymbol-fontforge-erroneous.patch
#PATCH-FIX-UPSTREAM marguerite@opensuse.org - Do not use Microsoft family names, or fontconfig will suffer.
Patch1: deepin-opensymbol-family-names.patch
BuildRequires: fontforge
BuildRequires: python3
BuildRequires: fontpackages-devel
BuildRequires: xz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%reconfigure_fonts_prereq
%description
Deepin OpenSymbol fonts, a replacement for MS Wingdings font family.
%prep
%setup -q
%patch -P 0 -p1
%patch -P 1 -p1
%build
make
%install
mkdir -p %{buildroot}%{_ttfontsdir}
install -m 0644 build/*.ttf %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets
%files
%license license
%doc README.md
%{_ttfontsdir}
%changelog