Convert to new fonts packaging guidelines and update CI script

This commit is contained in:
Parag Nemade 2020-03-12 16:46:01 +05:30
parent be02565147
commit 9f5679048a
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
6 changed files with 40 additions and 59 deletions

5
.gitignore vendored
View File

@ -0,0 +1,5 @@
/RobotoSlab-Bold.ttf
/RobotoSlab-Light.ttf
/RobotoSlab-Regular.ttf
/RobotoSlab-Thin.ttf
/LICENSE.txt

View File

@ -1,27 +1,18 @@
%global fontconf 64-%{fontname}
%global fontname google-roboto-slab
%global commit0 90abd17b4f97671435798b6147b698aa9087612f
Name: google-roboto-slab-fonts
Version: 1.100263
Release: 0.11.20150923git%{?dist}
Summary: Google Roboto Slab fonts
License: ASL 2.0
Release: 0.12.20150923git%{?dist}
URL: https://www.google.com/fonts/specimen/Roboto+Slab
# There are no tar archive so let's pick all the individual source files from github
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: %{fontname}-fontconfig.conf
Source6: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
%global foundry google
%global fontlicense ASL 2.0
%global fontlicenses LICENSE.txt
%description
%global fontfamily Roboto Slab
%global fontsummary Google Roboto Slab fonts
%global fonts *.ttf
%global fontconfs %{SOURCE5}
%global fontdescription %{expand:
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
@ -30,33 +21,37 @@ 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.
Roboto family and the Roboto Condensed family.}
# There are no tar archive so let's pick all the individual source files from github
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: 64-%{fontpkgname}.conf
%fontpkg
%prep
%setup -q -c -T
cp -p %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
%build
# nothing to build here
%fontbuild
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p RobotoSlab-*.ttf %{buildroot}%{_fontdir}
%fontinstall
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE5} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-fontconfig.conf
ln -s %{_fontconfig_templatedir}/%{fontconf}-fontconfig.conf \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}-fontconfig.conf
%check
%fontcheck
install -m 0755 -d %{buildroot}%{_datadir}/appdata
install -m 0644 -p %{SOURCE6} %{buildroot}%{_datadir}/appdata
%_font_pkg -f %{fontconf}-fontconfig.conf RobotoSlab-*.ttf
%{_datadir}/appdata/%{fontname}.metainfo.xml
%license LICENSE.txt
%fontfiles
%changelog
* Thu Mar 12 2020 Parag Nemade <pnemade AT redhat DOT com> - 1.100263-0.12.20150923git
- Convert to new fonts packaging guidelines
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.100263-0.11.20150923git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 Parag Nemade <pnemade AT redhat DOT com> -->
<component type="font">
<id>google-roboto-slab</id>
<metadata_license>CC-BY-3.0</metadata_license>
<name>Roboto Slab</name>
<summary>Roboto Slab fonts</summary>
<description>
<p>
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.
</p>
<p>
This is the Roboto Slab family, which can be used alongside the normal
Roboto family and the Roboto Condensed family.
</p>
</description>
<updatecontact>pnemade_at_redhat_dot_com</updatecontact>
<url type="homepage">https://www.google.com/fonts/specimen/Roboto+Slab</url>
</component>

View File

@ -0,0 +1,5 @@
SHA512 (RobotoSlab-Bold.ttf) = fe38516787eaebfe4d6d0fc7d1875d798ba5d909b7b25834179c6d8cc6cafa4c40f0df257db44e33a45079e4372c48d499577c9e408a5996cb431f0f110d0f06
SHA512 (RobotoSlab-Light.ttf) = 0ea6ea918498eab70004a1df9cec60a571b497d8af48461b423ffad0f35e0de41b07160d6271434df521c3d0d49cf98bf2d1f3d6ec08e1d9bdca2c7823ad7a3b
SHA512 (RobotoSlab-Regular.ttf) = 0924311f107da3190e65225035bacce06a7665c2b7d8d8401b25add6dc1d2264ed9658fe97874909b0806236f6ac510cdd156cc97a15563d93fd9687b9e243c0
SHA512 (RobotoSlab-Thin.ttf) = e478f548d07259940e5ee2d33bdba19465262ef806ff99804b4a44618e7bd8cf52e54bff7ea46042e469b089b4be0512cd3778e3eff30e5e81128811b63ed642
SHA512 (LICENSE.txt) = 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8

View File

@ -5,7 +5,7 @@
- role: custom-test-fonts
required_packages:
- google-roboto-slab-fonts
path_prefix: /usr/share/fonts/google-roboto-slab
path_prefix: /usr/share/fonts/google-roboto-slab-fonts
package: google-roboto-slab-fonts
coverage:
- en