import changed/i9/gelasio-fonts-1.006-1.el9

i8ce changed/i9/gelasio-fonts-1.006-1.el9
Arkady L. Shane 1 year ago
commit 01aca6f3bc

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>Gelasio</family>
<default>
<family>serif</family>
</default>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Gelasio</family>
</prefer>
</alias>
</fontconfig>

@ -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"

@ -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 <dawid.zych@yandex.com> - 1.006-1
- Download font from Google Fonts
* Wed Jan 11 2017 Dawid Zych <dawid.zych@yandex.com> - 1.0-2
- Update fontconfig and it's priority.
* Thu Jan 05 2017 Dawid Zych <dawid.zych@yandex.com> - 1.0-1
- Initial packaging.
Loading…
Cancel
Save