File ibm-plex.spec of Package ibm-plex
#
# spec file for package ibm-plex
#
# Copyright (c) 2023 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/
#
%global desc IBM Plex™ is the new corporate typeface for IBM worldwide and\
an open source project developed by the IBM Brand & Experience\
team (BX&D). Plex is an international typeface family designed\
to capture IBM’s brand spirit and history, and to illustrate\
the unique relationship between mankind and machine—a principal\
theme for IBM since the turn of the century. The result is a\
neutral, yet friendly Grotesque style typeface that balances\
design with the engineered details that make Plex™ distinctly\
IBM.\
\
The family includes a Sans, Sans Condensed, Mono, and Serif and\
has excellent legibility in print, web and mobile interfaces.\
Plex’s three designs work well independently, and even better\
together. Use the Sans as a contemporary compadre, the Serif for\
editorial storytelling, or the Mono to show code snippets. The\
unexpectedly expressive nature of the italics give you even\
more options for your designs.
Name: ibm-plex
Version: 6.3.0
Release: 0
Summary: IBM’s typeface, IBM Plex
License: OFL-1.1
Group: System/X11/Fonts
URL: https://github.com/IBM/plex
Source: %{url}/releases/download/v%{version}/OpenType.zip
BuildRequires: fontpackages-devel
BuildRequires: unzip
BuildArch: noarch
%reconfigure_fonts_prereq
%description
%{desc}
%package -n ibm-plex-sans-fonts
Summary: IBM Plex Sans Serif Fonts
%description -n ibm-plex-sans-fonts
%{desc}
This package contains IBM Plex Sans Serif typeface.
%package -n ibm-plex-serif-fonts
Summary: IBM Plex Serif Fonts
%description -n ibm-plex-serif-fonts
%{desc}
This package contains IBM Plex Serif typeface.
%package -n ibm-plex-mono-fonts
Summary: IBM Plex Monospaced Fonts
%description -n ibm-plex-mono-fonts
%{desc}
This package contains IBM Plex Mono typeface.
%prep
%autosetup -n OpenType
%build
# nope
%install
install -d %{buildroot}%{_ttfontsdir}
# Install font files
for fam in Mono Serif \
Sans{,-{Arabic,Condensed,Devanagari,Hebrew,JP/hinted,KR,Thai{,-Looped}}}; do
install -m0644 IBM-Plex-$fam/*.otf %{buildroot}%{_ttfontsdir}
done
%reconfigure_fonts_scriptlets -cn ibm-plex-sans-fonts
%reconfigure_fonts_scriptlets -cn ibm-plex-serif-fonts
%reconfigure_fonts_scriptlets -cn ibm-plex-mono-fonts
%files -n ibm-plex-sans-fonts
%license IBM-Plex-Sans/license.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/IBMPlexSans*.otf
%files -n ibm-plex-serif-fonts
%license IBM-Plex-Sans/license.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/IBMPlexSerif*.otf
%files -n ibm-plex-mono-fonts
%license IBM-Plex-Sans/license.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/IBMPlexMono*.otf
%changelog