Convert to new fonts packaging guidelines and update CI script
This commit is contained in:
parent
be02565147
commit
9f5679048a
5
.gitignore
vendored
5
.gitignore
vendored
@ -0,0 +1,5 @@
|
|||||||
|
/RobotoSlab-Bold.ttf
|
||||||
|
/RobotoSlab-Light.ttf
|
||||||
|
/RobotoSlab-Regular.ttf
|
||||||
|
/RobotoSlab-Thin.ttf
|
||||||
|
/LICENSE.txt
|
@ -1,27 +1,18 @@
|
|||||||
%global fontconf 64-%{fontname}
|
|
||||||
%global fontname google-roboto-slab
|
|
||||||
%global commit0 90abd17b4f97671435798b6147b698aa9087612f
|
%global commit0 90abd17b4f97671435798b6147b698aa9087612f
|
||||||
|
|
||||||
Name: google-roboto-slab-fonts
|
|
||||||
Version: 1.100263
|
Version: 1.100263
|
||||||
Release: 0.11.20150923git%{?dist}
|
Release: 0.12.20150923git%{?dist}
|
||||||
Summary: Google Roboto Slab fonts
|
|
||||||
|
|
||||||
License: ASL 2.0
|
|
||||||
URL: https://www.google.com/fonts/specimen/Roboto+Slab
|
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
|
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
|
largely geometric. At the same time, the font features friendly and open
|
||||||
curves. While some grotesks distort their letterforms to force a rigid
|
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.
|
commonly found in humanist and serif types.
|
||||||
|
|
||||||
This is the Roboto Slab family, which can be used alongside the normal
|
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
|
%prep
|
||||||
|
%setup -q -c -T
|
||||||
cp -p %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
cp -p %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# nothing to build here
|
%fontbuild
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -m 0755 -d %{buildroot}%{_fontdir}
|
%fontinstall
|
||||||
install -m 0644 -p RobotoSlab-*.ttf %{buildroot}%{_fontdir}
|
|
||||||
|
|
||||||
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
%check
|
||||||
%{buildroot}%{_fontconfig_confdir}
|
%fontcheck
|
||||||
install -m 0644 -p %{SOURCE5} \
|
|
||||||
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-fontconfig.conf
|
|
||||||
ln -s %{_fontconfig_templatedir}/%{fontconf}-fontconfig.conf \
|
|
||||||
%{buildroot}%{_fontconfig_confdir}/%{fontconf}-fontconfig.conf
|
|
||||||
|
|
||||||
install -m 0755 -d %{buildroot}%{_datadir}/appdata
|
%fontfiles
|
||||||
install -m 0644 -p %{SOURCE6} %{buildroot}%{_datadir}/appdata
|
|
||||||
|
|
||||||
%_font_pkg -f %{fontconf}-fontconfig.conf RobotoSlab-*.ttf
|
|
||||||
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
||||||
%license LICENSE.txt
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
@ -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>
|
|
5
sources
5
sources
@ -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
|
@ -5,7 +5,7 @@
|
|||||||
- role: custom-test-fonts
|
- role: custom-test-fonts
|
||||||
required_packages:
|
required_packages:
|
||||||
- google-roboto-slab-fonts
|
- 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
|
package: google-roboto-slab-fonts
|
||||||
coverage:
|
coverage:
|
||||||
- en
|
- en
|
||||||
|
Loading…
Reference in New Issue
Block a user