commit 01aca6f3bcbdc31fb746c1941e1097e6f10a36f0 Author: tigro Date: Mon Jun 26 10:35:07 2023 +0300 import changed/i9/gelasio-fonts-1.006-1.el9 diff --git a/SOURCES/gelasio-fontconfig.conf b/SOURCES/gelasio-fontconfig.conf new file mode 100644 index 0000000..b9a7c69 --- /dev/null +++ b/SOURCES/gelasio-fontconfig.conf @@ -0,0 +1,18 @@ + + + + + + Gelasio + + serif + + + + serif + + Gelasio + + + + diff --git a/SOURCES/gelasio-fonts-1.006.tar.xz b/SOURCES/gelasio-fonts-1.006.tar.xz new file mode 100644 index 0000000..f65b18e Binary files /dev/null and b/SOURCES/gelasio-fonts-1.006.tar.xz differ diff --git a/SOURCES/get-gelasio.sh b/SOURCES/get-gelasio.sh new file mode 100755 index 0000000..765cc66 --- /dev/null +++ b/SOURCES/get-gelasio.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Get upstream zip and make source tar.gz + +ARCHIVE="gelasio-fonts-1.006" +TMPDIR=$(mktemp -d --tmpdir=/var/tmp getgelasio-XXXXXXXXXX) +[ $? != 0 ] && exit 1 +umask 022 +pushd "$TMPDIR" + +wget -N -O $ARCHIVE.zip https://fonts.google.com/download?family=Gelasio +unzip $ARCHIVE.zip -d $ARCHIVE +tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE + +popd +mv "$TMPDIR/$ARCHIVE.tar.xz" . +rm -fr "$TMPDIR" diff --git a/SPECS/gelasio-fonts.spec b/SPECS/gelasio-fonts.spec new file mode 100644 index 0000000..24a4e03 --- /dev/null +++ b/SPECS/gelasio-fonts.spec @@ -0,0 +1,59 @@ +%global fontname gelasio +%global fontconf 62-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.006 +Release: 1%{?dist} +Summary: Gelasio serif family by Eben Sorkin + +Group: User Interface/X +License: OFL +URL: https://github.com/SorkinType/Gelasio +Source0: %{name}-%{version}.tar.xz +Source1: %{fontname}-fontconfig.conf +Source2: get-%{fontname}.sh + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Gelasio is designed to be metrics compatible with Georgia. Gelasio is +a "Reale" or Transitional design with many style cues coming from the +period immediately after the Romain du Roi type was introduced. Despite +sharing common letter widths the texture and feeling of the two typefaces +are different. Georgia is warmer and friendlier while Gelasio is cooler +and more formal. + +%prep +%setup -q + +%build + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.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} + +mv OFL.txt LICENSE +sed -i 's/\r$//' LICENSE + +%_font_pkg -f %{fontconf} *.ttf +%license LICENSE + +%changelog +* Fri Oct 30 2020 Dawid Zych - 1.006-1 +- Download font from Google Fonts + +* Wed Jan 11 2017 Dawid Zych - 1.0-2 +- Update fontconfig and it's priority. + +* Thu Jan 05 2017 Dawid Zych - 1.0-1 +- Initial packaging.