File ibm-plex-fonts.spec of Package ibm-plex-fonts
%define realname ibm-plex-fonts
%define srcext tar.bz2
# Common info
Name: %{realname}
Version: 0
Release: %{?extraver:0.}1%{?dist}
License: OFL-1.1
Group: System/X11/Fonts
URL: https://www.ibm.com/plex/
Summary: IBM’s typeface fonts
# Build-time parameters
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-root
Source: %{realname}-%{version}%{?extraver}.%{srcext}
%description
With four subfamilies, eight weights, two styles (roman & italic), and
100 Languages, IBM Plex™ can do just about anything you need it to.
Meet IBM Plex, our new corporate typeface. It’s global, it’s versatile
and it’s distinctly IBM.
We designed Plex carefully to both meet our needs as a global tech company and
express who we are as people. It took two years and a lot of work to get here,
but today we have a signature typeface we’re proud and excited to share with the
world. Plex is an open-source project (OFL) and free to download and use.
The Plex family comes in a Sans, Serif, Mono and Sans Condensed, all with roman
and true italics. The fonts have been designed to work well in user
interface (UI) environments as well as other mediums.
%package -n ibm-plex-mono-otf-fonts
Group: System/X11/Fonts
Summary: IBM’s mono typeface fonts (OTF)
%description -n ibm-plex-mono-otf-fonts
With four subfamilies, eight weights, two styles (roman & italic), and
100 Languages, IBM Plex™ can do just about anything you need it to.
Meet IBM Plex, our new corporate typeface. It’s global, it’s versatile
and it’s distinctly IBM.
We designed Plex carefully to both meet our needs as a global tech company and
express who we are as people. It took two years and a lot of work to get here,
but today we have a signature typeface we’re proud and excited to share with the
world. Plex is an open-source project (OFL) and free to download and use.
The Plex family comes in a Sans, Serif, Mono and Sans Condensed, all with roman
and true italics. The fonts have been designed to work well in user
interface (UI) environments as well as other mediums.
This package contains mono style fonts (OTF format).
%package -n ibm-plex-mono-ttf-fonts
Group: System/X11/Fonts
Summary: IBM’s mono typeface fonts (TTF)
%description -n ibm-plex-mono-ttf-fonts
With four subfamilies, eight weights, two styles (roman & italic), and
100 Languages, IBM Plex™ can do just about anything you need it to.
Meet IBM Plex, our new corporate typeface. It’s global, it’s versatile
and it’s distinctly IBM.
We designed Plex carefully to both meet our needs as a global tech company and
express who we are as people. It took two years and a lot of work to get here,
but today we have a signature typeface we’re proud and excited to share with the
world. Plex is an open-source project (OFL) and free to download and use.
The Plex family comes in a Sans, Serif, Mono and Sans Condensed, all with roman
and true italics. The fonts have been designed to work well in user
interface (UI) environments as well as other mediums.
This package contains mono style fonts (TTF format).
%package -n ibm-plex-sans-otf-fonts
Group: System/X11/Fonts
Summary: IBM’s sans typeface fonts (OTF)
%description -n ibm-plex-sans-otf-fonts
With four subfamilies, eight weights, two styles (roman & italic), and
100 Languages, IBM Plex™ can do just about anything you need it to.
Meet IBM Plex, our new corporate typeface. It’s global, it’s versatile
and it’s distinctly IBM.
We designed Plex carefully to both meet our needs as a global tech company and
express who we are as people. It took two years and a lot of work to get here,
but today we have a signature typeface we’re proud and excited to share with the
world. Plex is an open-source project (OFL) and free to download and use.
The Plex family comes in a Sans, Serif, Mono and Sans Condensed, all with roman
and true italics. The fonts have been designed to work well in user
interface (UI) environments as well as other mediums.
This package contains sans style fonts (OTF format).
%package -n ibm-plex-sans-ttf-fonts
Group: System/X11/Fonts
Summary: IBM’s sans typeface fonts (TTF)
%description -n ibm-plex-sans-ttf-fonts
With four subfamilies, eight weights, two styles (roman & italic), and
100 Languages, IBM Plex™ can do just about anything you need it to.
Meet IBM Plex, our new corporate typeface. It’s global, it’s versatile
and it’s distinctly IBM.
We designed Plex carefully to both meet our needs as a global tech company and
express who we are as people. It took two years and a lot of work to get here,
but today we have a signature typeface we’re proud and excited to share with the
world. Plex is an open-source project (OFL) and free to download and use.
The Plex family comes in a Sans, Serif, Mono and Sans Condensed, all with roman
and true italics. The fonts have been designed to work well in user
interface (UI) environments as well as other mediums.
This package contains sans style fonts (TTF format).
%package -n ibm-plex-serif-otf-fonts
Group: System/X11/Fonts
Summary: IBM’s sans-serif typeface fonts (OTF)
%description -n ibm-plex-serif-otf-fonts
With four subfamilies, eight weights, two styles (roman & italic), and
100 Languages, IBM Plex™ can do just about anything you need it to.
Meet IBM Plex, our new corporate typeface. It’s global, it’s versatile
and it’s distinctly IBM.
We designed Plex carefully to both meet our needs as a global tech company and
express who we are as people. It took two years and a lot of work to get here,
but today we have a signature typeface we’re proud and excited to share with the
world. Plex is an open-source project (OFL) and free to download and use.
The Plex family comes in a Sans, Serif, Mono and Sans Condensed, all with roman
and true italics. The fonts have been designed to work well in user
interface (UI) environments as well as other mediums.
This package contains sans-serif style fonts (OTF format).
%package -n ibm-plex-serif-ttf-fonts
Group: System/X11/Fonts
Summary: IBM’s sans-serif typeface fonts (TTF)
%description -n ibm-plex-serif-ttf-fonts
With four subfamilies, eight weights, two styles (roman & italic), and
100 Languages, IBM Plex™ can do just about anything you need it to.
Meet IBM Plex, our new corporate typeface. It’s global, it’s versatile
and it’s distinctly IBM.
We designed Plex carefully to both meet our needs as a global tech company and
express who we are as people. It took two years and a lot of work to get here,
but today we have a signature typeface we’re proud and excited to share with the
world. Plex is an open-source project (OFL) and free to download and use.
The Plex family comes in a Sans, Serif, Mono and Sans Condensed, all with roman
and true italics. The fonts have been designed to work well in user
interface (UI) environments as well as other mediums.
This package contains sans-serif style fonts (TTF format).
# Preparation step (unpackung and patching if necessary)
%prep
%setup -q -n %{realname}-%{version}%{?extraver}
%build
%{__chmod} a-x LICENSE.txt README.md
%install
%{__install} -d -m755 %{buildroot}%{_datadir}/fonts/truetype/
for dir in IBM-Plex-{Mono,Sans,Sans-Condensed,Serif}; do
%{__install} -m644 $dir/fonts/complete/ttf/*.ttf %{buildroot}%{_datadir}/fonts/truetype/
%{__install} -m644 $dir/fonts/complete/otf/*.otf %{buildroot}%{_datadir}/fonts/truetype/
done
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files -n ibm-plex-mono-otf-fonts
%defattr(-,root,root)
%doc LICENSE.txt README.md
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/IBMPlexMono-*.otf
%files -n ibm-plex-mono-ttf-fonts
%defattr(-,root,root)
%doc LICENSE.txt README.md
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/IBMPlexMono-*.ttf
%files -n ibm-plex-sans-otf-fonts
%defattr(-,root,root)
%doc LICENSE.txt README.md
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/IBMPlexSans-*.otf
%{_datadir}/fonts/truetype/IBMPlexSansCondensed-*.otf
%files -n ibm-plex-sans-ttf-fonts
%defattr(-,root,root)
%doc LICENSE.txt README.md
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/IBMPlexSans-*.ttf
%{_datadir}/fonts/truetype/IBMPlexSansCondensed-*.ttf
%files -n ibm-plex-serif-otf-fonts
%defattr(-,root,root)
%doc LICENSE.txt README.md
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/IBMPlexSerif-*.otf
%files -n ibm-plex-serif-ttf-fonts
%defattr(-,root,root)
%doc LICENSE.txt README.md
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/IBMPlexSerif-*.ttf
%post -n ibm-plex-mono-otf-fonts
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%postun -n ibm-plex-mono-otf-fonts
if [ $1 -eq 0 ] && [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%post -n ibm-plex-mono-ttf-fonts
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%postun -n ibm-plex-mono-ttf-fonts
if [ $1 -eq 0 ] && [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%post -n ibm-plex-sans-otf-fonts
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%postun -n ibm-plex-sans-otf-fonts
if [ $1 -eq 0 ] && [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%post -n ibm-plex-sans-ttf-fonts
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%postun -n ibm-plex-sans-ttf-fonts
if [ $1 -eq 0 ] && [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%post -n ibm-plex-serif-otf-fonts
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%postun -n ibm-plex-serif-otf-fonts
if [ $1 -eq 0 ] && [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%post -n ibm-plex-serif-ttf-fonts
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%postun -n ibm-plex-serif-ttf-fonts
if [ $1 -eq 0 ] && [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache || :
fi
%changelog