Convert this package to new fonts packaging guidelines
Signed-off-by: Parag Nemade <pnemade@fedoraproject.org>
This commit is contained in:
parent
66fc83d56a
commit
d9e04fd509
@ -1,5 +1,5 @@
|
|||||||
<?xml version ="1.0" encoding="UTF-8" ?>
|
<?xml version ="1.0" encoding="UTF-8" ?>
|
||||||
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||||
<fontconfig>
|
<fontconfig>
|
||||||
<alias>
|
<alias>
|
||||||
<family>sans-serif</family>
|
<family>sans-serif</family>
|
@ -1,66 +1,47 @@
|
|||||||
%global fontname aajohan-comfortaa
|
|
||||||
%global fontconf 61-%{fontname}.conf
|
|
||||||
|
|
||||||
Name: %{fontname}-fonts
|
|
||||||
Version: 3.101
|
Version: 3.101
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Modern style true type font
|
URL: https://www.deviantart.com/aajohan
|
||||||
|
|
||||||
License: OFL
|
%global foundry Aajohan
|
||||||
URL: http://aajohan.deviantart.com
|
%global fontlicense OFL
|
||||||
Source0: https://github.com/googlefonts/comfortaa/archive/%{version}%{?prerelease}/%{name}-%{version}%{?prerelease}.tar.gz
|
%global fontlicenses OFL.txt
|
||||||
Source1: %{name}-fontconfig.conf
|
%global fontdocs AUTHORS.txt CONTRIBUTORS.txt FONTLOG.txt DESCRIPTION.en_us.html README.md
|
||||||
Source2: %{fontname}.metainfo.xml
|
%global fontdocsex %{fontlicenses}
|
||||||
|
|
||||||
BuildArch: noarch
|
%global fontfamily Comfortaa
|
||||||
BuildRequires: fontpackages-devel
|
%global fontsummary Modern style true type font
|
||||||
BuildRequires: libappstream-glib
|
%global fonts fonts/OTF/*.otf fonts/TTF/*.ttf
|
||||||
Requires: fontpackages-filesystem
|
%global fontconfs %{SOURCE1}
|
||||||
|
%global fontdescription %{expand:
|
||||||
%description
|
|
||||||
Comfortaa is a sans-serif font comfortable in every aspect with
|
Comfortaa is a sans-serif font comfortable in every aspect with
|
||||||
Bold, Regular, and Thin variants.
|
Bold, Regular, and Thin variants.
|
||||||
It has very good European language coverage and decent Cyrillic coverage.
|
It has very good European language coverage and decent Cyrillic coverage.}
|
||||||
|
|
||||||
|
Source0: https://github.com/googlefonts/comfortaa/archive/%{version}%{?prerelease}/%{name}-%{version}%{?prerelease}.tar.gz
|
||||||
|
Source1: 61-%{fontpkgname}.conf
|
||||||
|
|
||||||
|
%fontpkg
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n comfortaa-%{version}
|
%autosetup -n comfortaa-%{version}
|
||||||
|
chmod 644 AUTHORS.txt CONTRIBUTORS.txt
|
||||||
# Fixing
|
%linuxtext FONTLOG.txt OFL.txt
|
||||||
# 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
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%fontbuild
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -m 0755 -d %{buildroot}%{_fontdir}
|
%fontinstall
|
||||||
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
|
|
||||||
%check
|
%check
|
||||||
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{fontname}.metainfo.xml
|
%fontcheck
|
||||||
|
|
||||||
%_font_pkg -f %{fontconf} *.{otf,ttf}
|
%fontfiles
|
||||||
%doc FONTLOG.txt OFL.txt
|
|
||||||
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 10 2021 Parag Nemade <pnemade@fedoraproject.org> - 3.101-3
|
||||||
|
- Convert this package to new fonts packaging guidelines
|
||||||
|
|
||||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.101-2
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.101-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- Copyright 2014 Parag Nemade <pnemade AT redhat DOT com> -->
|
|
||||||
<component type="font">
|
|
||||||
<id>aajohan-comfortaa</id>
|
|
||||||
<metadata_license>CC-BY-3.0</metadata_license>
|
|
||||||
<name>Comfortaa</name>
|
|
||||||
<summary>Modern style true type font</summary>
|
|
||||||
<description>
|
|
||||||
<p>
|
|
||||||
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.
|
|
||||||
</p>
|
|
||||||
</description>
|
|
||||||
<updatecontact>pnemade_at_redhat_dot_com</updatecontact>
|
|
||||||
<url type="homepage">http://aajohan.deviantart.com</url>
|
|
||||||
</component>
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user