From d9e04fd50943372aeb937bfa11c7d3ef76fb38a2 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Nov 11 2021 02:19:59 +0000 Subject: Convert this package to new fonts packaging guidelines Signed-off-by: Parag Nemade --- diff --git a/61-aajohan-comfortaa-fonts.conf b/61-aajohan-comfortaa-fonts.conf new file mode 100644 index 0000000..f7b8cce --- /dev/null +++ b/61-aajohan-comfortaa-fonts.conf @@ -0,0 +1,17 @@ + + + + + sans-serif + + Comfortaa + + + + Comfortaa + + sans-serif + + + + diff --git a/aajohan-comfortaa-fonts-fontconfig.conf b/aajohan-comfortaa-fonts-fontconfig.conf deleted file mode 100644 index 9f324cc..0000000 --- a/aajohan-comfortaa-fonts-fontconfig.conf +++ /dev/null @@ -1,17 +0,0 @@ - - - - - sans-serif - - Comfortaa - - - - Comfortaa - - sans-serif - - - - diff --git a/aajohan-comfortaa-fonts.spec b/aajohan-comfortaa-fonts.spec index 0c2cc76..208f263 100644 --- a/aajohan-comfortaa-fonts.spec +++ b/aajohan-comfortaa-fonts.spec @@ -1,66 +1,47 @@ -%global fontname aajohan-comfortaa -%global fontconf 61-%{fontname}.conf - -Name: %{fontname}-fonts Version: 3.101 -Release: 2%{?dist} -Summary: Modern style true type font +Release: 3%{?dist} +URL: https://www.deviantart.com/aajohan + +%global foundry Aajohan +%global fontlicense OFL +%global fontlicenses OFL.txt +%global fontdocs AUTHORS.txt CONTRIBUTORS.txt FONTLOG.txt DESCRIPTION.en_us.html README.md +%global fontdocsex %{fontlicenses} + +%global fontfamily Comfortaa +%global fontsummary Modern style true type font +%global fonts fonts/OTF/*.otf fonts/TTF/*.ttf +%global fontconfs %{SOURCE1} +%global fontdescription %{expand: +Comfortaa is a sans-serif font comfortable in every aspect with +Bold, Regular, and Thin variants. +It has very good European language coverage and decent Cyrillic coverage.} -License: OFL -URL: http://aajohan.deviantart.com Source0: https://github.com/googlefonts/comfortaa/archive/%{version}%{?prerelease}/%{name}-%{version}%{?prerelease}.tar.gz -Source1: %{name}-fontconfig.conf -Source2: %{fontname}.metainfo.xml +Source1: 61-%{fontpkgname}.conf -BuildArch: noarch -BuildRequires: fontpackages-devel -BuildRequires: libappstream-glib -Requires: fontpackages-filesystem - -%description -Comfortaa is a sans-serif font comfortable in every aspect with -Bold, Regular, and Thin variants. -It has very good European language coverage and decent Cyrillic coverage. +%fontpkg %prep %autosetup -n comfortaa-%{version} - -# Fixing -# wrong-file-end-of-line-encoding issue -# Thanks to Paul Flo Williams - -for file in *.txt; do - sed 's/\r//g' "$file" | \ - fold -s > "$file.new" && \ - touch -r "$file" "$file.new" && \ - mv "$file.new" "$file" -done +chmod 644 AUTHORS.txt CONTRIBUTORS.txt +%linuxtext FONTLOG.txt OFL.txt %build +%fontbuild %install -install -m 0755 -d %{buildroot}%{_fontdir} -install -m 0644 -p fonts/OTF/*.otf %{buildroot}%{_fontdir} -install -m 0644 -p fonts/TTF/*.ttf %{buildroot}%{_fontdir} -install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ - %{buildroot}%{_fontconfig_confdir} -install -m 0644 -p %{SOURCE1} \ - %{buildroot}%{_fontconfig_templatedir}/%{fontconf} - -ln -s %{_fontconfig_templatedir}/%{fontconf} \ - %{buildroot}%{_fontconfig_confdir}/%{fontconf} - -# Add AppStream metadata -install -Dm 0644 -p %{SOURCE2} \ - %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml +%fontinstall + %check -appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{fontname}.metainfo.xml +%fontcheck -%_font_pkg -f %{fontconf} *.{otf,ttf} -%doc FONTLOG.txt OFL.txt -%{_datadir}/appdata/%{fontname}.metainfo.xml +%fontfiles %changelog +* Wed Nov 10 2021 Parag Nemade - 3.101-3 +- Convert this package to new fonts packaging guidelines + * Wed Jul 21 2021 Fedora Release Engineering - 3.101-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/aajohan-comfortaa.metainfo.xml b/aajohan-comfortaa.metainfo.xml deleted file mode 100644 index c2dbdb0..0000000 --- a/aajohan-comfortaa.metainfo.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - aajohan-comfortaa - CC-BY-3.0 - Comfortaa - Modern style true type font - -

- Comfortaa is a sans-serif font comfortable in every aspect with - Bold, Regular, and Thin variants. - It has very good European language coverage and decent Cyrillic coverage. -

-
- pnemade_at_redhat_dot_com - http://aajohan.deviantart.com -
-