56 lines
2.4 KiB
RPMSpec
56 lines
2.4 KiB
RPMSpec
%global fontname google-roboto-slab
|
||
%global commit0 90abd17b4f97671435798b6147b698aa9087612f
|
||
|
||
Name: google-roboto-slab-fonts
|
||
Summary: Roboto Slab Font Project by Google
|
||
Version: 1.100263
|
||
Release: 0.9.20150923git
|
||
|
||
License: ASL 2.0
|
||
URL: https://www.google.com/fonts/specimen/Roboto+Slab
|
||
Source0: https://raw.githubusercontent.com/google/fonts/%{commit0}/apache/robotoslab/RobotoSlab-Regular.ttf
|
||
Source1: https://raw.githubusercontent.com/google/fonts/%{commit0}/apache/robotoslab/RobotoSlab-Bold.ttf
|
||
Source2: https://raw.githubusercontent.com/google/fonts/%{commit0}/apache/robotoslab/RobotoSlab-Light.ttf
|
||
Source3: https://raw.githubusercontent.com/google/fonts/%{commit0}/apache/robotoslab/RobotoSlab-Thin.ttf
|
||
Source4: https://raw.githubusercontent.com/google/fonts/%{commit0}/apache/robotoslab/LICENSE.txt
|
||
Source5: google-roboto-slab-fontconfig.conf
|
||
Source6: google-roboto-slab.metainfo.xml
|
||
BuildArch: noarch
|
||
|
||
BuildRequires: fontpackages-devel
|
||
|
||
%description
|
||
Roboto has a dual nature. It has a mechanical skeleton and the forms are largely geometric.
|
||
At the same time, the font features friendly and open curves. While some grotesks distort their
|
||
letterforms to force a rigid rhythm, Roboto doesn’t compromise, allowing letters to be settled
|
||
into their natural width. This makes for a more natural reading rhythm more commonly found in
|
||
humanist and serif types.
|
||
|
||
This is the Roboto Slab family, which can be used alongside the normal Roboto family and the
|
||
Roboto Condensed family.
|
||
|
||
%prep
|
||
cp -p %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
||
|
||
%build
|
||
|
||
%install
|
||
install -m 0755 -d %{buildroot}%{_fontdir}
|
||
install -m 0755 -d %{buildroot}%{_datadir}/appdata
|
||
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
|
||
|
||
install -m 0644 -p RobotoSlab-*.ttf %{buildroot}%{_fontdir}
|
||
install -m 0644 -p %{SOURCE5} %{buildroot}%{_fontconfig_templatedir}/64-google-roboto-slab-fontconfig.conf
|
||
install -m 0644 -p %{SOURCE6} %{buildroot}%{_datadir}/appdata
|
||
|
||
ln -s %{_fontconfig_templatedir}/64-google-roboto-slab-fontconfig.conf \
|
||
%{buildroot}%{_fontconfig_confdir}/64-google-roboto-slab-fontconfig.conf
|
||
|
||
%_font_pkg -f 64-google-roboto-slab-fontconfig.conf RobotoSlab-*.ttf
|
||
%license LICENSE.txt
|
||
%{_datadir}/appdata/google-roboto-slab.metainfo.xml
|
||
|
||
%changelog
|
||
* Thu Nov 15 2019 Lijin Yang <yanglijin@huawei.com> - 1.100263-0.9.20150923git
|
||
- Init package
|