diff --git a/.gitignore b/.gitignore index e69de29..baf8c98 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,5 @@ +/RobotoSlab-Bold.ttf +/RobotoSlab-Light.ttf +/RobotoSlab-Regular.ttf +/RobotoSlab-Thin.ttf +/LICENSE.txt diff --git a/google-roboto-slab-fontconfig.conf b/64-google-roboto-slab-fonts.conf similarity index 100% rename from google-roboto-slab-fontconfig.conf rename to 64-google-roboto-slab-fonts.conf diff --git a/google-roboto-slab-fonts.spec b/google-roboto-slab-fonts.spec index a5f1ac8..bb755cc 100644 --- a/google-roboto-slab-fonts.spec +++ b/google-roboto-slab-fonts.spec @@ -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 - 1.100263-0.12.20150923git +- Convert to new fonts packaging guidelines + * Wed Jan 29 2020 Fedora Release Engineering - 1.100263-0.11.20150923git - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/google-roboto-slab.metainfo.xml b/google-roboto-slab.metainfo.xml deleted file mode 100644 index 4dcfc31..0000000 --- a/google-roboto-slab.metainfo.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - google-roboto-slab - CC-BY-3.0 - Roboto Slab - Roboto Slab fonts - -

- 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. -

-
- pnemade_at_redhat_dot_com - https://www.google.com/fonts/specimen/Roboto+Slab -
diff --git a/sources b/sources index e69de29..72def3f 100644 --- a/sources +++ b/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 diff --git a/tests/tests.yml b/tests/tests.yml index 5801d2b..a74deee 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -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